Skip to content

Commit 4b4f84f

Browse files
committed
Only error on unfixed diagnostics
1 parent 2d17597 commit 4b4f84f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3122,7 +3122,9 @@ impl<'test> TestCx<'test> {
31223122
self.fatal_proc_rec("failed to compile fixed code", &res);
31233123
}
31243124
if !res.stderr.is_empty() && !self.props.rustfix_only_machine_applicable {
3125-
self.fatal_proc_rec("fixed code is still producing diagnostics", &res);
3125+
if !json::rustfix_diagnostics_only(&res.stderr).is_empty() {
3126+
self.fatal_proc_rec("fixed code is still producing diagnostics", &res);
3127+
}
31263128
}
31273129
}
31283130
}

0 commit comments

Comments
 (0)