Skip to content

Commit a64f9e7

Browse files
committed
Remove error annotations stderr
they still showed up in multiline messages
1 parent f3496cb commit a64f9e7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

tests/compiletest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ regexes! {
106106
"[^ `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
107107
// erase platform file paths
108108
"sys/[a-z]+/" => "sys/PLATFORM/",
109+
// erase error annotations
110+
"//(\\[[a-z,]+\\])?~.*" => "",
109111
}
110112

111113
fn ui(mode: Mode, path: &str) -> Result<()> {

tests/fail/function_calls/exported_symbol_bad_unwind2.both.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: abnormal termination: the program aborted execution
44
--> $DIR/exported_symbol_bad_unwind2.rs:LL:CC
55
|
66
LL | / extern "C-unwind" fn nounwind() {
7-
LL | | //[definition]~^ ERROR: abnormal termination: the program aborted execution
8-
LL | | //[both]~^^ ERROR: abnormal termination: the program aborted execution
7+
LL | |
8+
LL | |
99
LL | | panic!();
1010
LL | | }
1111
| |_^ the program aborted execution

tests/fail/function_calls/exported_symbol_bad_unwind2.definition.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: abnormal termination: the program aborted execution
44
--> $DIR/exported_symbol_bad_unwind2.rs:LL:CC
55
|
66
LL | / extern "C-unwind" fn nounwind() {
7-
LL | | //[definition]~^ ERROR: abnormal termination: the program aborted execution
8-
LL | | //[both]~^^ ERROR: abnormal termination: the program aborted execution
7+
LL | |
8+
LL | |
99
LL | | panic!();
1010
LL | | }
1111
| |_^ the program aborted execution

0 commit comments

Comments
 (0)