compiletest: Filter test annotations from UI test output for revision tests

This commit is contained in:
Mathias Blikstad 2019-03-16 09:53:09 +01:00
parent 52e885628e
commit 9eb2de4b75

View file

@ -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 {