We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e8856 commit 9eb2de4Copy full SHA for 9eb2de4
src/tools/compiletest/src/runtest.rs
@@ -3110,7 +3110,7 @@ impl<'test> TestCx<'test> {
3110
3111
// Remove test annotations like `//~ ERROR text` from the output,
3112
// since they duplicate actual errors and make the output hard to read.
3113
- normalized = Regex::new("\\s*//~.*").unwrap()
+ normalized = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap()
3114
.replace_all(&normalized, "").into_owned();
3115
3116
for rule in custom_rules {
0 commit comments