Skip to content

Commit

Permalink
compiletest: Do not deduplicate diagnostics in UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Jan 9, 2020
1 parent c404ce6 commit 41318e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,12 +1864,14 @@ impl<'test> TestCx<'test> {
rustc.args(&["--error-format", "json"]);
}
rustc.arg("-Zui-testing");
rustc.arg("-Zdeduplicate-diagnostics=no");
}
Ui => {
if !self.props.compile_flags.iter().any(|s| s.starts_with("--error-format")) {
rustc.args(&["--error-format", "json"]);
}
rustc.arg("-Zui-testing");
rustc.arg("-Zdeduplicate-diagnostics=no");
}
MirOpt => {
rustc.args(&[
Expand Down

0 comments on commit 41318e9

Please sign in to comment.