File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -143,4 +143,7 @@ pub const MIRI_DEFAULT_ARGS: &[&str] = &[
143
143
"-Zmir-keep-place-mention" ,
144
144
"-Zmir-opt-level=0" ,
145
145
"-Zmir-enable-passes=-CheckAlignment" ,
146
+ // Deduplicating diagnostics means we miss events when tracking what happens during an
147
+ // execution. Let's not do that.
148
+ "-Zdeduplicate-diagnostics=no" ,
146
149
] ;
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ note: erroneous constant encountered
10
10
LL | let _x = UNALIGNED_READ;
11
11
| ^^^^^^^^^^^^^^
12
12
13
+ note: erroneous constant encountered
14
+ --> $DIR/const-ub-checks.rs:LL:CC
15
+ |
16
+ LL | let _x = UNALIGNED_READ;
17
+ | ^^^^^^^^^^^^^^
18
+ |
19
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
20
+
13
21
error: aborting due to 1 previous error
14
22
15
23
For more information about this error, try `rustc --explain E0080`.
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ note: erroneous constant encountered
10
10
LL | println!("{}", FOO);
11
11
| ^^^
12
12
13
+ note: erroneous constant encountered
14
+ --> $DIR/erroneous_const2.rs:LL:CC
15
+ |
16
+ LL | println!("{}", FOO);
17
+ | ^^^
18
+ |
19
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
20
+
13
21
note: erroneous constant encountered
14
22
--> $DIR/erroneous_const2.rs:LL:CC
15
23
|
You can’t perform that action at this time.
0 commit comments