Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1ca8d60

Browse files
committed
Fix annotation filtering with revisions
1 parent 0125343 commit 1ca8d60

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

tests/compiletest.rs

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

113111
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 | |
8-
LL | |
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 | |
8-
LL | |
7+
LL | |
8+
LL | |
99
LL | | panic!();
1010
LL | | }
1111
| |_^ the program aborted execution

ui_test/src/rustc_stderr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Span {
117117
}
118118

119119
pub(crate) fn filter_annotations_from_rendered(rendered: &str) -> std::borrow::Cow<'_, str> {
120-
let annotations = Regex::new(r" *//(\[[^\]]\])?~.*").unwrap();
120+
let annotations = Regex::new(r" *//(\[[a-z,]+\])?~.*").unwrap();
121121
annotations.replace_all(rendered, "")
122122
}
123123

0 commit comments

Comments
 (0)