compiletest: Filter test annotations from UI test output for revision tests
This commit is contained in:
parent
52e885628e
commit
9eb2de4b75
1 changed files with 1 additions and 1 deletions
|
@ -3110,7 +3110,7 @@ impl<'test> TestCx<'test> {
|
|||
|
||||
// Remove test annotations like `//~ ERROR text` from the output,
|
||||
// since they duplicate actual errors and make the output hard to read.
|
||||
normalized = Regex::new("\\s*//~.*").unwrap()
|
||||
normalized = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap()
|
||||
.replace_all(&normalized, "").into_owned();
|
||||
|
||||
for rule in custom_rules {
|
||||
|
|
Loading…
Reference in a new issue