Skip to content

tests: fix: parallel frontend test failures: different alloc ids#156716

Open
heinwol wants to merge 5 commits into
rust-lang:mainfrom
heinwol:fix-ui-tests-alloc-id-parallel-frontend
Open

tests: fix: parallel frontend test failures: different alloc ids#156716
heinwol wants to merge 5 commits into
rust-lang:mainfrom
heinwol:fix-ui-tests-alloc-id-parallel-frontend

Conversation

@heinwol

@heinwol heinwol commented May 18, 2026

Copy link
Copy Markdown
Contributor

View all comments

Removed the //@ ignore-parallel-frontend different alloc ids directive from all the ui tests applicable and replaced it with //@ normalize-stderr so that all alloc ids mentions are converted into a single placeholder. Thus the tests are passed

Part of #154314

r? @petrochenkov

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 18, 2026
@rustbot

This comment has been minimized.

@heinwol heinwol force-pushed the fix-ui-tests-alloc-id-parallel-frontend branch 2 times, most recently from f681281 to 5abbf45 Compare May 18, 2026 14:41
@heinwol heinwol changed the title fix: parallel frontend test failures: different alloc ids tests: fix: parallel frontend test failures: different alloc ids May 18, 2026
Comment thread tests/ui/const-generics/issues/issue-100313.rs Outdated
@petrochenkov

Copy link
Copy Markdown
Contributor

--bless needs to be run in single-threaded mode to avoid reordering diagnostics in .stderr files.
@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 18, 2026
@rustbot

rustbot commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@heinwol heinwol force-pushed the fix-ui-tests-alloc-id-parallel-frontend branch from 5abbf45 to bb760c1 Compare May 18, 2026 15:14
@heinwol

heinwol commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 18, 2026
@petrochenkov

Copy link
Copy Markdown
Contributor

r? @RalfJung
Is this a reasonable normalization?

My assumptions were that

  • specific numbers of allocation IDs in const evaluation are not that important
  • it's hard to make the ID assignment order reproducible if various parts of const evaluator can run in parallel

So it's better to just normalize the IDs away and enable these tests during parallel frontend testing, instead of ignoring them or waiting for some potential fix in the compiler.

@rustbot rustbot assigned RalfJung and unassigned petrochenkov May 18, 2026
@rustbot

rustbot commented May 18, 2026

Copy link
Copy Markdown
Collaborator

RalfJung is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@petrochenkov

Copy link
Copy Markdown
Contributor

tests/rustdoc-gui/toggle-click-deadspace.goml

Spurious failure.

@RalfJung

RalfJung commented May 24, 2026

Copy link
Copy Markdown
Member

A while back @oli-obk wrote some code somewhere to renumber AllocId while ensuring different ID remain differentiable. Those are the IDs that you are currently seeing in the test output (ALLOC0 etc). This code now applies a second round of normalization on top of the already existing normalization, which seems a bit silly. So at the very least, if we anyway remove all alloc IDs from the result, we should remove that code (or rather, replace it by a simple normalization that we apply everywhere so that one doesn't have to add so many //@ normalize-stderr).

On the one hand it is a bit unfortunate if we have no way of testing whether we actually print consistent IDs. On the other hand these IDs are mostly meaningless and using them in diagnostics isn't great to begin with.
@rust-lang/wg-const-eval what do you think?

Comment thread tests/ui/const-ptr/out_of_bounds_read.rs Outdated
@oli-obk

oli-obk commented May 25, 2026

Copy link
Copy Markdown
Contributor

Seems fine as a short term solution. Having it as a global filter does seem better than repeating it.

There's basically two orthogonal things that we should probably do:

  • parent the AllocIds properly (like disambiguators for many things defined in one parent)
  • add spanned notes to errors pointing to where the alloc was created instead of rendering their name (this may be enough on its own)

@petrochenkov

petrochenkov commented May 25, 2026

Copy link
Copy Markdown
Contributor
  • add spanned notes to errors pointing to where the alloc was created instead of rendering their name (this may be enough on its own)

@heinwol could you try this today?
Hopefully, obtaining the "where the alloc was created" span is already possible in the current infra.

@oli-obk

oli-obk commented May 25, 2026

Copy link
Copy Markdown
Contributor

Hopefully, obtaining the "where the alloc was created" span is already possible in the current infra.

Unfortunately not. There are obvious ones like the ones pointing to statics or fns, but we don't have spans in AllocExtra of the compile_time_machine macro decl. I don't know about the perf impact of doing that, but with relative spans it could just be zero

@rust-log-analyzer

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member

Yeah getting span info is a Project on its own. It'd be nice to have but shouldn't block the parallel frontend IMO.

Personally I could live with normalizing all AllocId away.

@rust-log-analyzer

This comment has been minimized.

@heinwol heinwol force-pushed the fix-ui-tests-alloc-id-parallel-frontend branch from 054a0b1 to d5a7959 Compare June 9, 2026 07:47
@rustbot

This comment has been minimized.

@rustbot rustbot removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. has-merge-commits PR has merge commits, merge with caution. labels Jun 9, 2026
@heinwol heinwol force-pushed the fix-ui-tests-alloc-id-parallel-frontend branch from d5a7959 to 0228182 Compare June 9, 2026 07:55
@rustbot

This comment has been minimized.

@heinwol heinwol force-pushed the fix-ui-tests-alloc-id-parallel-frontend branch from 0228182 to fb5a0e4 Compare June 9, 2026 08:56
@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

heinwol added 5 commits June 9, 2026 16:33
in `tests/ui/consts/const-eval/raw-bytes.rs` as we now handle this in
our modified regex in `runtest`
Specifically, all `//@ ignore-parallel-frontend different alloc ids`
across other tests because they fail with our
normalization strategy: `ALLOC0` -> `ALLOC$ID`
@heinwol

heinwol commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@heinwol heinwol reopened this Jun 9, 2026
@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jun 9, 2026
@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Requested reviewer is already assigned to this pull request.

Please choose another assignee.

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job aarch64-gnu-llvm-21-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [mir-opt] tests/mir-opt/building/custom/consts.rs stdout ----
6     let mut _2: *mut i32;
7 
8     bb0: {
-         _1 = const {ALLOC0: &i32};
-         _2 = const {ALLOC1: *mut i32};
+         _1 = const {ALLOC$ID: &i32};
+         _2 = const {ALLOC$ID: *mut i32};
11         return;
12     }
13 }

14 
- ALLOC1 (static: T, size: 4, align: 4) {
+ ALLOC$ID (static: T, size: 4, align: 4) {
16     0a 0a 0a 0a                                     │ ....
17 }
18 

- ALLOC0 (static: S, size: 4, align: 4) {
+ ALLOC$ID (static: S, size: 4, align: 4) {
20     05 05 05 05                                     │ ....
21 }
22 


thread '[mir-opt] tests/mir-opt/building/custom/consts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/building/custom/consts.statics.built.after.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/building/issue_101867.rs stdout ----
71     }
72 }
73 
- ALLOC0 (size: 14, align: 1) {
+ ALLOC$ID (size: 14, align: 1) {
75     65 78 70 6c 69 63 69 74 20 70 61 6e 69 63       │ explicit panic
76 }
77 


thread '[mir-opt] tests/mir-opt/building/issue_101867.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/building/issue_101867.main.built.after.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/building/storage_live_dead_in_statics.rs stdout ----
199     }
200 }
201 
- ALLOC0 (size: 2, align: 1) {
+ ALLOC$ID (size: 2, align: 1) {
203     68 69                                           │ hi
204 }
205 


thread '[mir-opt] tests/mir-opt/building/storage_live_dead_in_statics.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/building/storage_live_dead_in_statics.XXX.built.after.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/building/user_type_annotations.rs stdout ----
76     }
77 }
78 
- ALLOC0 (size: 40, align: 1) {
+ ALLOC$ID (size: 40, align: 1) {
80     0x00 │ 69 6e 74 65 72 6e 61 6c 20 65 72 72 6f 72 3a 20 │ internal error: 
81     0x10 │ 65 6e 74 65 72 65 64 20 75 6e 72 65 61 63 68 61 │ entered unreacha
82     0x20 │ 62 6c 65 20 63 6f 64 65                         │ ble code


thread '[mir-opt] tests/mir-opt/building/user_type_annotations.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/building/user_type_annotations.let_else.built.after.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/byte_slice.rs stdout ----
23     }
24 }
25 
- ALLOC0 (size: 3, align: 1) {
+ ALLOC$ID (size: 3, align: 1) {
27     66 6f 6f                                        │ foo
28 }
29 


thread '[mir-opt] tests/mir-opt/byte_slice.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/const_allocation2.rs stdout ----
8     bb0: {
9         StorageLive(_1);
10         StorageLive(_2);
-         _2 = const {ALLOC9: &&[(Option<i32>, &[&u8])]};
+         _2 = const {ALLOC$ID: &&[(Option<i32>, &[&u8])]};
12         _1 = copy (*_2);
13         StorageDead(_2);
14         StorageDead(_1);

17     }
18 }
19 
- ALLOC9 (static: FOO, size: 16, align: 8) {
-     ╾ALLOC0<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+ ALLOC$ID (static: FOO, size: 16, align: 8) {
+     ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
22 }
23 
- ALLOC0 (size: 72, align: 8) {
-     0x00 │ 00 00 00 00 __ __ __ __ ╾ALLOC1<imm>╼ │ ....░░░░╾──────╼
+ ALLOC$ID (size: 72, align: 8) {
+     0x00 │ 00 00 00 00 __ __ __ __ ╾ALLOC$ID╼ │ ....░░░░╾──────╼
26     0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 __ __ __ __ │ ............░░░░
-     0x20 │ ╾ALLOC2<imm>╼ 02 00 00 00 00 00 00 00 │ ╾──────╼........
-     0x30 │ 01 00 00 00 2a 00 00 00 ╾ALLOC3<imm>╼ │ ....*...╾──────╼
+     0x20 │ ╾ALLOC$ID╼ 02 00 00 00 00 00 00 00 │ ╾──────╼........
+     0x30 │ 01 00 00 00 2a 00 00 00 ╾ALLOC$ID╼ │ ....*...╾──────╼
29     0x40 │ 03 00 00 00 00 00 00 00                         │ ........
30 }
31 

- ALLOC1 (size: 0, align: 8) {}
+ ALLOC$ID (size: 0, align: 8) {}
33 
- ALLOC2 (size: 16, align: 8) {
-     ╾ALLOC4<imm>╼ ╾ALLOC5<imm>╼ │ ╾──────╼╾──────╼
+ ALLOC$ID (size: 16, align: 8) {
+     ╾ALLOC$ID╼ ╾ALLOC$ID╼ │ ╾──────╼╾──────╼
36 }
37 
- ALLOC4 (size: 1, align: 1) {
+ ALLOC$ID (size: 1, align: 1) {
39     05                                              │ .
40 }
41 

- ALLOC5 (size: 1, align: 1) {
+ ALLOC$ID (size: 1, align: 1) {
43     06                                              │ .
44 }
45 

- ALLOC3 (size: 24, align: 8) {
-     0x00 │ ╾ALLOC6+0x3<imm>╼ ╾ALLOC7<imm>╼ │ ╾──────╼╾──────╼
-     0x10 │ ╾ALLOC8+0x2<imm>╼                         │ ╾──────╼
+ ALLOC$ID (size: 24, align: 8) {
+     0x00 │ ╾ALLOC$ID╼ ╾ALLOC$ID╼ │ ╾──────╼╾──────╼
+     0x10 │ ╾ALLOC$ID╼                         │ ╾──────╼
49 }
50 
- ALLOC6 (size: 4, align: 1) {
+ ALLOC$ID (size: 4, align: 1) {
52     2a 45 15 6f                                     │ *E.o
53 }
54 

- ALLOC7 (size: 1, align: 1) {
+ ALLOC$ID (size: 1, align: 1) {
56     2a                                              │ *
57 }
58 

- ALLOC8 (size: 4, align: 1) {
+ ALLOC$ID (size: 4, align: 1) {
60     2a 45 15 6f                                     │ *E.o
61 }
62 


thread '[mir-opt] tests/mir-opt/const_allocation2.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_allocation2.main.GVN.after.64bit.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_allocation3.rs stdout ----
8     bb0: {
9         StorageLive(_1);
10         StorageLive(_2);
-         _2 = const {ALLOC2: &&Packed};
+         _2 = const {ALLOC$ID: &&Packed};
12         _1 = copy (*_2);
13         StorageDead(_2);
14         StorageDead(_1);

17     }
18 }
19 
- ALLOC2 (static: FOO, size: 8, align: 8) {
-     ╾ALLOC0<imm>╼                         │ ╾──────╼
+ ALLOC$ID (static: FOO, size: 8, align: 8) {
+     ╾ALLOC$ID╼                         │ ╾──────╼
22 }
23 
- ALLOC0 (size: 180, align: 1) {
+ ALLOC$ID (size: 180, align: 1) {
25     0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
-     0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾ALLOC3<imm> (8 ptr bytes) │ ............╾───
+     0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾ALLOC$ID<imm> (8 ptr bytes) │ ............╾───
27     0x20 │ ──────────╼ 01 ef cd ab 00 00 00 00 00 00 00 00 │ ───╼............
28     0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
29     0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................

31     0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
32     0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
33     0x80 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ╾──── │ ..............╾─
-     0x90 │ ─────ALLOC4─────╼ 00 00 ╾ALLOC1+0x63<imm>╼ │ ─────╼..╾──────╼
+     0x90 │ ─────ALLOC$ID─────╼ 00 00 ╾ALLOC$ID╼ │ ─────╼..╾──────╼
35     0xa0 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36     0xb0 │ 00 00 00 00                                     │ ....
37 }

38 
- ALLOC3 (size: 4, align: 4) {
+ ALLOC$ID (size: 4, align: 4) {
40     2a 00 00 00                                     │ *...
41 }
42 

- ALLOC4 (fn: main)
+ ALLOC$ID (fn: main)
44 
- ALLOC1 (size: 100, align: 1) {
+ ALLOC$ID (size: 100, align: 1) {
46     0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
47     0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
48     0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................


thread '[mir-opt] tests/mir-opt/const_allocation3.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_allocation3.main.GVN.after.64bit.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_allocation.rs stdout ----
8     bb0: {
9         StorageLive(_1);
10         StorageLive(_2);
-         _2 = const {ALLOC9: &&[(Option<i32>, &[&str])]};
+         _2 = const {ALLOC$ID: &&[(Option<i32>, &[&str])]};
12         _1 = copy (*_2);
13         StorageDead(_2);
14         StorageDead(_1);

17     }
18 }
19 
- ALLOC9 (static: FOO, size: 16, align: 8) {
-     ╾ALLOC0<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+ ALLOC$ID (static: FOO, size: 16, align: 8) {
+     ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
22 }
23 
- ALLOC0 (size: 72, align: 8) {
-     0x00 │ 00 00 00 00 __ __ __ __ ╾ALLOC1<imm>╼ │ ....░░░░╾──────╼
+ ALLOC$ID (size: 72, align: 8) {
+     0x00 │ 00 00 00 00 __ __ __ __ ╾ALLOC$ID╼ │ ....░░░░╾──────╼
26     0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 __ __ __ __ │ ............░░░░
-     0x20 │ ╾ALLOC2<imm>╼ 02 00 00 00 00 00 00 00 │ ╾──────╼........
-     0x30 │ 01 00 00 00 2a 00 00 00 ╾ALLOC3<imm>╼ │ ....*...╾──────╼
+     0x20 │ ╾ALLOC$ID╼ 02 00 00 00 00 00 00 00 │ ╾──────╼........
+     0x30 │ 01 00 00 00 2a 00 00 00 ╾ALLOC$ID╼ │ ....*...╾──────╼
29     0x40 │ 03 00 00 00 00 00 00 00                         │ ........
30 }
31 

- ALLOC1 (size: 0, align: 8) {}
+ ALLOC$ID (size: 0, align: 8) {}
33 
- ALLOC2 (size: 32, align: 8) {
-     0x00 │ ╾ALLOC4<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
-     0x10 │ ╾ALLOC5<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+ ALLOC$ID (size: 32, align: 8) {
+     0x00 │ ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+     0x10 │ ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
37 }
38 
- ALLOC4 (size: 3, align: 1) {
+ ALLOC$ID (size: 3, align: 1) {
40     66 6f 6f                                        │ foo
41 }
42 

- ALLOC5 (size: 3, align: 1) {
+ ALLOC$ID (size: 3, align: 1) {
44     62 61 72                                        │ bar
45 }
46 

- ALLOC3 (size: 48, align: 8) {
-     0x00 │ ╾ALLOC6<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
-     0x10 │ ╾ALLOC7<imm>╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
-     0x20 │ ╾ALLOC8<imm>╼ 04 00 00 00 00 00 00 00 │ ╾──────╼........
+ ALLOC$ID (size: 48, align: 8) {
+     0x00 │ ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+     0x10 │ ╾ALLOC$ID╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
+     0x20 │ ╾ALLOC$ID╼ 04 00 00 00 00 00 00 00 │ ╾──────╼........
51 }
52 
- ALLOC6 (size: 3, align: 1) {
+ ALLOC$ID (size: 3, align: 1) {
54     6d 65 68                                        │ meh
55 }
56 

- ALLOC7 (size: 3, align: 1) {
+ ALLOC$ID (size: 3, align: 1) {
58     6d 6f 70                                        │ mop
59 }
60 

- ALLOC8 (size: 4, align: 1) {
+ ALLOC$ID (size: 4, align: 1) {
62     6d c3 b6 70                                     │ m..p
63 }
64 


thread '[mir-opt] tests/mir-opt/const_allocation.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_allocation.main.GVN.after.64bit.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_debuginfo.rs stdout ----
119       }
120   }
121   
-   ALLOC0 (size: 8, align: 4) { .. }
+   ALLOC$ID (size: 8, align: 4) { .. }
123   
-   ALLOC1 (size: 4, align: 2) { .. }
+   ALLOC$ID (size: 4, align: 2) { .. }
125   
-   ALLOC2 (size: 13, align: 1) { .. }
+   ALLOC$ID (size: 13, align: 1) { .. }
127   
128 


thread '[mir-opt] tests/mir-opt/const_debuginfo.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/const_promotion_extern_static.rs stdout ----
16 -         StorageLive(_3);
17 -         StorageLive(_4);
18 -         StorageLive(_5);
- -         _5 = const {ALLOC0: &i32};
+ -         _5 = const {ALLOC$ID: &i32};
20 -         _4 = &(*_5);
21 -         _3 = [move _4];
22 -         _2 = &_3;

40       }
41   }
42 - 
- - ALLOC0 (static: Y)
+ - ALLOC$ID (static: Y)
44   
45 


thread '[mir-opt] tests/mir-opt/const_promotion_extern_static.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/address_of_pair.rs stdout ----
44       }
45   }
46 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
48   
49 


thread '[mir-opt] tests/mir-opt/const_prop/address_of_pair.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/address_of_pair.fn0.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/checked_add.rs stdout ----
26       }
27   }
28 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
30   
31 


thread '[mir-opt] tests/mir-opt/const_prop/checked_add.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/checked_add.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/control_flow_simplification.rs stdout ----
18       }
19   }
20   
-   ALLOC0 (size: 14, align: 1) {
+   ALLOC$ID (size: 14, align: 1) {
22       65 78 70 6c 69 63 69 74 20 70 61 6e 69 63       │ explicit panic
23   }
24   


thread '[mir-opt] tests/mir-opt/const_prop/control_flow_simplification.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/control_flow_simplification.hello.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/indirect.rs stdout ----
31       }
32 + }
33 + 
- + ALLOC0 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
35 +     03 00                                           │ ..
36   }
37   


thread '[mir-opt] tests/mir-opt/const_prop/indirect.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/indirect.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/inherit_overflow.rs stdout ----
37       }
38 + }
39 + 
- + ALLOC0 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
41 +     00 01                                           │ ..
42   }
43   


thread '[mir-opt] tests/mir-opt/const_prop/inherit_overflow.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/inherit_overflow.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/issue_66971.rs stdout ----
28       }
29 + }
30 + 
- + ALLOC0 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
32 +     00 00                                           │ ..
33   }
34   


thread '[mir-opt] tests/mir-opt/const_prop/issue_66971.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/issue_66971.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/invalid_constant.rs stdout ----
63       }
64   }
65 + 
- + ALLOC0 (size: 4, align: 4) { .. }
+ + ALLOC$ID (size: 4, align: 4) { .. }
67 + 
- + ALLOC1 (size: 4, align: 4) { .. }
+ + ALLOC$ID (size: 4, align: 4) { .. }
69 + 
- + ALLOC2 (size: 4, align: 4) { .. }
+ + ALLOC$ID (size: 4, align: 4) { .. }
71   
72 


thread '[mir-opt] tests/mir-opt/const_prop/invalid_constant.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/invalid_constant.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/issue_67019.rs stdout ----
28       }
29 + }
30 + 
- + ALLOC0 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
32 +     01 02                                           │ ..
33 + }
34 + 

- + ALLOC1 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
36 +     01 02                                           │ ..
37   }
38   


thread '[mir-opt] tests/mir-opt/const_prop/issue_67019.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/issue_67019.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/maybe_uninit.rs stdout ----
18       }
19 + }
20 + 
- + ALLOC0 (size: 8, align: 1) {
+ + ALLOC$ID (size: 8, align: 1) {
22 +     __ __ __ __ __ __ __ __                         │ ░░░░░░░░
23 + }
24 + 

- + ALLOC1 (size: 1, align: 1) {
+ + ALLOC$ID (size: 1, align: 1) {
26 +     __                                              │ ░
27   }
28   


thread '[mir-opt] tests/mir-opt/const_prop/maybe_uninit.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/maybe_uninit.u8_array.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/mutable_variable_aggregate.rs stdout ----
26       }
27   }
28 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
30   
31 


thread '[mir-opt] tests/mir-opt/const_prop/mutable_variable_aggregate.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/mutable_variable_aggregate.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs stdout ----
33       }
34   }
35 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
37   
38 


thread '[mir-opt] tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/mutable_variable_no_prop.rs stdout ----
21           StorageLive(_2);
22           StorageLive(_3);
23           StorageLive(_4);
-           _4 = const {ALLOC0: *mut u32};
+           _4 = const {ALLOC$ID: *mut u32};
25           _3 = copy (*_4);
26           _1 = move _3;
27           StorageDead(_3);

37       }
38   }
39   
-   ALLOC0 (static: STATIC, size: 4, align: 4) {
+   ALLOC$ID (static: STATIC, size: 4, align: 4) {
41       42 42 42 42                                     │ BBBB
42   }
43   


thread '[mir-opt] tests/mir-opt/const_prop/mutable_variable_no_prop.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/mutable_variable_no_prop.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs stdout ----
48       }
49   }
50 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
52   
53 


thread '[mir-opt] tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/mutable_variable_unprop_assign.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/read_immutable_static.rs stdout ----
16           StorageLive(_1);
17           StorageLive(_2);
18           StorageLive(_3);
-           _3 = const {ALLOC0: &u8};
+           _3 = const {ALLOC$ID: &u8};
20 -         _2 = copy (*_3);
21 +         _2 = const 2_u8;
22           StorageLive(_4);

23           StorageLive(_5);
-           _5 = const {ALLOC0: &u8};
+           _5 = const {ALLOC$ID: &u8};
25 -         _4 = copy (*_5);
26 -         _1 = Add(move _2, move _4);
27 +         _4 = const 2_u8;

36       }
37   }
38   
-   ALLOC0 (static: FOO, size: 1, align: 1) {
+   ALLOC$ID (static: FOO, size: 1, align: 1) {
40       02                                              │ .
41   }
42   


thread '[mir-opt] tests/mir-opt/const_prop/read_immutable_static.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/read_immutable_static.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/return_place.rs stdout ----
19       }
20   }
21 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
23   
24 


thread '[mir-opt] tests/mir-opt/const_prop/return_place.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/return_place.add.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/transmute.rs stdout ----
21       }
22 + }
23 + 
- + ALLOC0 (size: 4, align: 4) {
+ + ALLOC$ID (size: 4, align: 4) {
25 +     __ __ __ __                                     │ ░░░░
26 + }
27 + 

- + ALLOC1 (size: 4, align: 4) {
+ + ALLOC$ID (size: 4, align: 4) {
29 +     __ __ __ __                                     │ ░░░░
30   }
31   


thread '[mir-opt] tests/mir-opt/const_prop/transmute.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/transmute.undef_union_as_integer.GVN.64bit.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/tuple_literal_propagation.rs stdout ----
31       }
32   }
33 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
35   
36 


thread '[mir-opt] tests/mir-opt/const_prop/tuple_literal_propagation.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/tuple_literal_propagation.main.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/const_prop/union.rs stdout ----
34       }
35   }
36 + 
- + ALLOC0 (size: 4, align: 4) { .. }
+ + ALLOC$ID (size: 4, align: 4) { .. }
38   
39 


thread '[mir-opt] tests/mir-opt/const_prop/union.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/union.main.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
  10: <compiletest::runtest::TestCx>::run_revision
  11: compiletest::runtest::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [mir-opt] tests/mir-opt/const_prop/union.rs stdout end ----
---- [mir-opt] tests/mir-opt/const_prop/while_let_loops.rs stdout ----
31   
32       bb1: {
33 -         switchInt(copy ((_3 as Some).0: u32)) -> [0: bb2, otherwise: bb3];
- +         switchInt(const Indirect { alloc_id: ALLOC0, offset: Size(4 bytes) }: u32) -> [0: bb2, otherwise: bb3];
+ +         switchInt(const Indirect { alloc_id: ALLOC$ID, offset: Size(4 bytes) }: u32) -> [0: bb2, otherwise: bb3];
35       }
36   
37       bb2: {

54       }
55 + }
56 + 
- + ALLOC0 (size: 8, align: 4) {
+ + ALLOC$ID (size: 8, align: 4) {
58 +     00 00 00 00 __ __ __ __                         │ ....░░░░
59   }
60   


thread '[mir-opt] tests/mir-opt/const_prop/while_let_loops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/const_prop/while_let_loops.change_loop_body.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/coroutine/coroutine.rs stdout ----
343       }
344   }
345   
-   ALLOC0 (size: 6, align: 1) {
+   ALLOC$ID (size: 6, align: 1) {
347       73 65 63 6f 6e 64                               │ second
348   }
349   

-   ALLOC1 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
351       66 69 72 73 74                                  │ first
352   }
353   


thread '[mir-opt] tests/mir-opt/coroutine/coroutine.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/coroutine/coroutine.main-{closure#0}.StateTransform.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/aggregate_copy.rs stdout ----
59       }
60   }
61 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
63   
64 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/aggregate_copy.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/dataflow-const-prop/aggregate_copy.foo.DataflowConstProp.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/checked.rs stdout ----
78       }
79   }
80 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
82 + 
- + ALLOC1 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
84   
85 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/checked.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
  10: <compiletest::runtest::TestCx>::run_revision
  11: compiletest::runtest::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [mir-opt] tests/mir-opt/dataflow-const-prop/checked.rs stdout end ----
---- [mir-opt] tests/mir-opt/dataflow-const-prop/default_boxed_slice.rs stdout ----
40 +         _4 = const std::ptr::Unique::<[bool; 0]> {{ pointer: NonNull::<[bool; 0]> {{ pointer: {0x1 as *const [bool; 0]} is !null }}, _marker: PhantomData::<[bool; 0]> }};
41           StorageDead(_5);
42 -         _3 = move _4 as std::ptr::Unique<[bool]> (PointerCoercion(Unsize, Implicit));
- +         _3 = const std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC0, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }};
+ +         _3 = const std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC$ID, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }};
44           StorageDead(_4);
45 -         _2 = Box::<[bool]>(copy _3, const std::alloc::Global);
- +         _2 = const Box::<[bool]>(std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC1, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }}, std::alloc::Global);
+ +         _2 = const Box::<[bool]>(std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC$ID, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }}, std::alloc::Global);
47           StorageDead(_3);
48 -         _1 = A { foo: move _2 };
- +         _1 = const A {{ foo: Box::<[bool]>(std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC2, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }}, std::alloc::Global) }};
+ +         _1 = const A {{ foo: Box::<[bool]>(std::ptr::Unique::<[bool]> {{ pointer: NonNull::<[bool]> {{ pointer: Indirect { alloc_id: ALLOC$ID, offset: Size(0 bytes) }: (*const [bool]) is !null }}, _marker: PhantomData::<[bool]> }}, std::alloc::Global) }};
50           StorageDead(_2);
51           _0 = const ();
52           drop(_1) -> [return: bb1, unwind: bb2];

62       }
63   }
64 + 
- + ALLOC2 (size: 16, align: 8) { .. }
+ + ALLOC$ID (size: 16, align: 8) { .. }
66 + 
- + ALLOC1 (size: 16, align: 8) { .. }
+ + ALLOC$ID (size: 16, align: 8) { .. }
68 + 
- + ALLOC0 (size: 16, align: 8) { .. }
+ + ALLOC$ID (size: 16, align: 8) { .. }
70   
71 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/default_boxed_slice.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/dataflow-const-prop/default_boxed_slice.main.GVN.64bit.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/enum.rs stdout ----
62       }
63   }
64 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
66   
67 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/enum.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/inherit_overflow.rs stdout ----
37       }
38 + }
39 + 
- + ALLOC0 (size: 2, align: 1) {
+ + ALLOC$ID (size: 2, align: 1) {
41 +     00 01                                           │ ..
42   }
43   


---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/repr_transparent.rs stdout ----
41       }
42 + }
43 + 
- + ALLOC0 (size: 4, align: 4) {
+ + ALLOC$ID (size: 4, align: 4) {
45 +     00 00 00 00                                     │ ....
46 + }
47 + 

- + ALLOC1 (size: 4, align: 4) {
+ + ALLOC$ID (size: 4, align: 4) {
49 +     00 00 00 00                                     │ ....
50   }
51   


---
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
  10: <compiletest::runtest::TestCx>::run_revision
  11: compiletest::runtest::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [mir-opt] tests/mir-opt/dataflow-const-prop/repr_transparent.rs stdout end ----
---- [mir-opt] tests/mir-opt/dataflow-const-prop/struct.rs stdout ----
111           _9 = copy (_10.2: &[f32]);
112           StorageDead(_10);
113           StorageLive(_14);
-           _14 = const {ALLOC0: &&SmallStruct};
+           _14 = const {ALLOC$ID: &&SmallStruct};
115           _31 = no_retag copy (*_14);
116           StorageLive(_11);
117           _32 = no_retag copy (*_14);

148           _21 = copy (_22.2: &[f32]);
149           StorageDead(_22);
150           StorageLive(_26);
-           _26 = const {ALLOC1: &&BigStruct};
+           _26 = const {ALLOC$ID: &&BigStruct};
152           _35 = no_retag copy (*_26);
153           StorageLive(_23);
154           _36 = no_retag copy (*_26);

195           return;
196       }
197   }
-   
- + ALLOC2 (size: 4, align: 4) { .. }
200 + 
-   ALLOC1 (static: BIG_STAT, size: 8, align: 8) { .. }
+ + ALLOC$ID (size: 4, align: 4) { .. }
202   
- - ALLOC2 (size: 32, align: 8) { .. }
- + ALLOC3 (size: 32, align: 8) { .. }
+   ALLOC$ID (static: BIG_STAT, size: 8, align: 8) { .. }
205   
- - ALLOC3 (size: 8, align: 4) { .. }
- + ALLOC4 (size: 8, align: 4) { .. }
+   ALLOC$ID (size: 32, align: 8) { .. }
208   
-   ALLOC0 (static: SMALL_STAT, size: 8, align: 8) { .. }
+   ALLOC$ID (size: 8, align: 4) { .. }
210   
- - ALLOC4 (size: 32, align: 8) { .. }
- + ALLOC5 (size: 32, align: 8) { .. }
+   ALLOC$ID (static: SMALL_STAT, size: 8, align: 8) { .. }
213   
- - ALLOC5 (size: 4, align: 4) { .. }
- + ALLOC6 (size: 4, align: 4) { .. }
+   ALLOC$ID (size: 32, align: 8) { .. }
+   
+   ALLOC$ID (size: 4, align: 4) { .. }
216   
217 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/struct.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/tuple.rs stdout ----
94       }
95   }
96 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
98 + 
- + ALLOC1 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
100 + 
- + ALLOC2 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
102 + 
- + ALLOC3 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
104   
105 


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/tuple.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/dataflow-const-prop/transmute.rs stdout ----
16       }
17 + }
18 + 
- + ALLOC0 (size: 1, align: 1) {
+ + ALLOC$ID (size: 1, align: 1) {
20 +     ff                                              │ .
21 + }
22 + 

- + ALLOC1 (size: 1, align: 1) {
+ + ALLOC$ID (size: 1, align: 1) {
24 +     ff                                              │ .
25   }
26   


thread '[mir-opt] tests/mir-opt/dataflow-const-prop/transmute.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/dataflow-const-prop/transmute.less_as_i8.DataflowConstProp.64bit.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/dead-store-elimination/place_mention.rs stdout ----
17       }
18   }
19   
-   ALLOC0 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
21       57 6f 72 6c 64                                  │ World
22   }
23   

-   ALLOC1 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
25       48 65 6c 6c 6f                                  │ Hello
26   }
27   


thread '[mir-opt] tests/mir-opt/dead-store-elimination/place_mention.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/enum_opt.rs stdout ----
66       }
67 + }
68 + 
- + ALLOC0 (size: 16, align: 8) {
+ + ALLOC$ID (size: 16, align: 8) {
70 +     05 20 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ . ..............
71   }
72   


thread '[mir-opt] tests/mir-opt/enum_opt.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/enum_opt.unin.EnumSizeOpt.64bit.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/funky_arms.rs stdout ----
167       }
168   }
169   
-   ALLOC0 (size: 16, align: 8) {
+   ALLOC$ID (size: 16, align: 8) {
171       00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ │ ........░░░░░░░░
172   }
173   


thread '[mir-opt] tests/mir-opt/funky_arms.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/funky_arms.float_to_exponential_common.GVN.64bit.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/gvn.rs stdout ----
47       }
48   }
49   
-   ALLOC0 (size: 14, align: 1) { .. }
+   ALLOC$ID (size: 14, align: 1) { .. }
51   
52 


thread '[mir-opt] tests/mir-opt/gvn.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/gvn.wrap_unwrap.GVN.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/gvn_loop.rs stdout ----
91       }
92   }
93 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
95   
96 


thread '[mir-opt] tests/mir-opt/gvn_loop.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/gvn_loop.loop_deref_mut.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/inline/inline_coroutine_body.rs stdout ----
318 +     }
319 + }
320 + 
- + ALLOC0 (size: 31, align: 1) {
+ + ALLOC$ID (size: 31, align: 1) {
322 +     0x00 │ 60 52 65 61 64 79 60 20 70 6f 6c 6c 65 64 20 61 │ `Ready` polled a
323 +     0x10 │ 66 74 65 72 20 63 6f 6d 70 6c 65 74 69 6f 6e    │ fter completion
324   }


thread '[mir-opt] tests/mir-opt/inline/inline_coroutine_body.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/inline/inline_coroutine_body.run2-{closure#0}.Inline.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/inline/inline_diverging.rs stdout ----
40       }
41 + }
42 + 
- + ALLOC0 (size: 14, align: 1) {
+ + ALLOC$ID (size: 14, align: 1) {
44 +     65 78 70 6c 69 63 69 74 20 70 61 6e 69 63       │ explicit panic
45   }
46   


thread '[mir-opt] tests/mir-opt/inline/inline_diverging.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/inline/inline_diverging.g.Inline.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/instsimplify/aggregate_array.rs stdout ----
11       }
12   }
13   
-   ALLOC0 (size: 1, align: 1) {
+   ALLOC$ID (size: 1, align: 1) {
15       61                                              │ a
16   }
17   


---
---- [mir-opt] tests/mir-opt/issue_76432.rs stdout ----
43       }
44   }
45   
-   ALLOC0 (size: 40, align: 1) {
+   ALLOC$ID (size: 40, align: 1) {
47       0x00 │ 69 6e 74 65 72 6e 61 6c 20 65 72 72 6f 72 3a 20 │ internal error: 
48       0x10 │ 65 6e 74 65 72 65 64 20 75 6e 72 65 61 63 68 61 │ entered unreacha
49       0x20 │ 62 6c 65 20 63 6f 64 65                         │ ble code


thread '[mir-opt] tests/mir-opt/issue_76432.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.panic-unwind.diff
stack backtrace:
---
---- [mir-opt] tests/mir-opt/issue_99325.rs stdout ----
281     }
282 }
283 
- ALLOC0 (size: 4, align: 1) {
+ ALLOC$ID (size: 4, align: 1) {
285     41 41 41 41                                     │ AAAA
286 }
287 


thread '[mir-opt] tests/mir-opt/issue_99325.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/issue_99325.main.built.after.64bit.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/no_drop_for_inactive_variant.rs stdout ----
42     }
43 }
44 
- ALLOC0 (size: 14, align: 1) {
+ ALLOC$ID (size: 14, align: 1) {
46     65 78 70 6c 69 63 69 74 20 70 61 6e 69 63       │ explicit panic
47 }
48 


thread '[mir-opt] tests/mir-opt/no_drop_for_inactive_variant.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/no_drop_for_inactive_variant.unwrap.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/no_spurious_drop_after_call.rs stdout ----
39     }
40 }
41 
- ALLOC0 (size: 0, align: 1) {}
+ ALLOC$ID (size: 0, align: 1) {}
43 


thread '[mir-opt] tests/mir-opt/no_spurious_drop_after_call.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.panic-unwind.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/pre-codegen/checked_ops.rs stdout ----
40     }
41 }
42 
- ALLOC0 (size: 8, align: 4) {
+ ALLOC$ID (size: 8, align: 4) {
44     00 00 00 00 __ __ __ __                         │ ....░░░░
45 }
46 


thread '[mir-opt] tests/mir-opt/pre-codegen/checked_ops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/pre-codegen/checked_ops.checked_shl.runtime-optimized.after.panic-unwind.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/pre-codegen/optimizes_into_variable.rs stdout ----
61       }
62   }
63 + 
- + ALLOC0 (size: 8, align: 4) { .. }
+ + ALLOC$ID (size: 8, align: 4) { .. }
65   
66 


thread '[mir-opt] tests/mir-opt/pre-codegen/optimizes_into_variable.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/pre-codegen/optimizes_into_variable.main.GVN.64bit.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/pre-codegen/range_iter.rs stdout ----
60     }
61 }
62 
- ALLOC0 (size: 8, align: 4) {
+ ALLOC$ID (size: 8, align: 4) {
64     00 00 00 00 __ __ __ __                         │ ....░░░░
65 }
66 


thread '[mir-opt] tests/mir-opt/pre-codegen/range_iter.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/pre-codegen/simple_option_map.rs stdout ----
45     }
46 }
47 
- ALLOC0 (size: 8, align: 4) {
+ ALLOC$ID (size: 8, align: 4) {
49     00 00 00 00 __ __ __ __                         │ ....░░░░
50 }
51 


thread '[mir-opt] tests/mir-opt/pre-codegen/simple_option_map.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/pre-codegen/simple_option_map.ezmap.runtime-optimized.after.mir
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/range/ssa_range.rs stdout ----
62       }
63   }
64   
-   ALLOC0 (size: 29, align: 1) {
+   ALLOC$ID (size: 29, align: 1) {
66       0x00 │ 61 73 73 65 72 74 69 6f 6e 20 66 61 69 6c 65 64 │ assertion failed
67       0x10 │ 3a 20 69 20 3c 20 76 2e 6c 65 6e 28 29          │ : i < v.len()
68   }


thread '[mir-opt] tests/mir-opt/range/ssa_range.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/range/ssa_range.on_assert.SsaRangePropagation.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/separate_const_switch.rs stdout ----
89       }
90   }
91   
-   ALLOC0 (size: 8, align: 4) {
+   ALLOC$ID (size: 8, align: 4) {
93       00 00 00 00 __ __ __ __                         │ ....░░░░
94   }
95   


thread '[mir-opt] tests/mir-opt/separate_const_switch.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/simplify_aggregate_to_copy_miscompile.rs stdout ----
54       }
55 + }
56 + 
- + ALLOC0 (size: 8, align: 4) {
+ + ALLOC$ID (size: 8, align: 4) {
58 +     00 00 00 00 __ __ __ __                         │ ....░░░░
59   }
60   


thread '[mir-opt] tests/mir-opt/simplify_aggregate_to_copy_miscompile.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/simplify_aggregate_to_copy_miscompile.foo.GVN.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/single_use_consts.rs stdout ----
34       }
35   }
36   
-   ALLOC0 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
38       77 6f 72 6c 64                                  │ world
39   }
40   

-   ALLOC1 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
42       74 6f 77 65 6c                                  │ towel
43   }
44   

-   ALLOC2 (size: 5, align: 1) {
+   ALLOC$ID (size: 5, align: 1) {
46       68 65 6c 6c 6f                                  │ hello
47   }
48   


thread '[mir-opt] tests/mir-opt/single_use_consts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
---
---- [mir-opt] tests/mir-opt/sroa/lifetimes.rs stdout ----
200       }
201   }
202   
-   ALLOC0 (size: 7, align: 1) {
+   ALLOC$ID (size: 7, align: 1) {
204       c0 01 20 c0 01 0a 00                            │ .. ....
205   }
206   


thread '[mir-opt] tests/mir-opt/sroa/lifetimes.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/sroa/lifetimes.foo.ScalarReplacementOfAggregates.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/sroa/structs.rs stdout ----
75       }
76   }
77   
-   ALLOC0 (size: 1, align: 1) {
+   ALLOC$ID (size: 1, align: 1) {
79       61                                              │ a
80   }
81   


thread '[mir-opt] tests/mir-opt/sroa/structs.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/sroa/structs.flat.ScalarReplacementOfAggregates.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14
---
---- [mir-opt] tests/mir-opt/unreachable_enum_branching.rs stdout ----
51       }
52   }
53   
-   ALLOC0 (size: 1, align: 1) {
+   ALLOC$ID (size: 1, align: 1) {
55       43                                              │ C
56   }
57   

-   ALLOC1 (size: 8, align: 1) {
+   ALLOC$ID (size: 8, align: 1) {
59       42 28 45 6d 70 74 79 29                         │ B(Empty)
60   }
61   

-   ALLOC2 (size: 8, align: 1) {
+   ALLOC$ID (size: 8, align: 1) {
63       41 28 45 6d 70 74 79 29                         │ A(Empty)
64   }
65   


thread '[mir-opt] tests/mir-opt/unreachable_enum_branching.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:73:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/unreachable_enum_branching.simple.UnreachableEnumBranching.panic-unwind.diff
stack backtrace:
   8: __rustc::rust_begin_unwind
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/std/src/panicking.rs:689:5
   9: core::panicking::panic_fmt
             at /rustc/0417c25868d6dfbd1c291dfeae950504faa6f790/library/core/src/panicking.rs:80:14

@petrochenkov

Copy link
Copy Markdown
Contributor

A lot of failures in mir-opt tests.
In those tests it's probably more important to have more specific alloc ids, and mir-opt tests are not run with the parallel frontend.
Let's only do this change in TestMode::Ui mode.
@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 9, 2026
// The alloc-id appears in pretty-printed allocations.
normalized = static_regex!(
r"╾─*a(lloc)?([0-9]+)(\+0x[0-9a-f]+)?(<imm>)?( \([0-9]+ ptr bytes\))?─*╼"
r"╾─*(?:a(?:lloc)?|A(:?LLOC)?)\d+(:?\+0x[[:alnum:]]+)?(:?<imm>)?(:? ?\(\d+ ptr bytes\))?─*╼"

@RalfJung RalfJung Jun 11, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you replaced 0-9a-f by :alnum:? That makes it less correct.

View changes since the review

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also there's ?:lloc and :?LLOC. I don't know either of these syntaxes, but the fact that they are different seems wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants