Skip to content

Commit 9eb2de4

Browse files
committed
compiletest: Filter test annotations from UI test output for revision tests
1 parent 52e8856 commit 9eb2de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@ impl<'test> TestCx<'test> {
31103110

31113111
// Remove test annotations like `//~ ERROR text` from the output,
31123112
// since they duplicate actual errors and make the output hard to read.
3113-
normalized = Regex::new("\\s*//~.*").unwrap()
3113+
normalized = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap()
31143114
.replace_all(&normalized, "").into_owned();
31153115

31163116
for rule in custom_rules {

0 commit comments

Comments
 (0)