Skip to content
Permalink
Browse files

compiletest: Do not deduplicate diagnostics in UI tests

  • Loading branch information
petrochenkov committed Jan 8, 2020
1 parent c404ce6 commit 41318e9a267024fb36162382e26944d235aa71cd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/tools/compiletest/src/runtest.rs
@@ -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(&[

0 comments on commit 41318e9

Please sign in to comment.
You can’t perform that action at this time.