Skip to content

Commit 41318e9

Browse files
committed
compiletest: Do not deduplicate diagnostics in UI tests
1 parent c404ce6 commit 41318e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1864,12 +1864,14 @@ impl<'test> TestCx<'test> {
18641864
rustc.args(&["--error-format", "json"]);
18651865
}
18661866
rustc.arg("-Zui-testing");
1867+
rustc.arg("-Zdeduplicate-diagnostics=no");
18671868
}
18681869
Ui => {
18691870
if !self.props.compile_flags.iter().any(|s| s.starts_with("--error-format")) {
18701871
rustc.args(&["--error-format", "json"]);
18711872
}
18721873
rustc.arg("-Zui-testing");
1874+
rustc.arg("-Zdeduplicate-diagnostics=no");
18731875
}
18741876
MirOpt => {
18751877
rustc.args(&[

0 commit comments

Comments
 (0)