]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/const_prop/issue_67019.main.ConstProp.panic-abort.diff
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / mir-opt / const_prop / issue_67019.main.ConstProp.panic-abort.diff
1 - // MIR for `main` before ConstProp
2 + // MIR for `main` after ConstProp
3
4 fn main() -> () {
5 let mut _0: ();
6 let _1: ();
7 let mut _2: ((u8, u8),);
8 let mut _3: (u8, u8);
9
10 bb0: {
11 StorageLive(_2);
12 StorageLive(_3);
13 - _3 = (const 1_u8, const 2_u8);
14 - _2 = (move _3,);
15 + _3 = const (1_u8, 2_u8);
16 + _2 = const ((1_u8, 2_u8),);
17 StorageDead(_3);
18 - _1 = test(move _2) -> [return: bb1, unwind unreachable];
19 + _1 = test(const ((1_u8, 2_u8),)) -> [return: bb1, unwind unreachable];
20 }
21
22 bb1: {
23 StorageDead(_2);
24 return;
25 }
26 + }
27 +
28 + alloc12 (size: 2, align: 1) {
29 + 01 02 │ ..
30 + }
31 +
32 + alloc11 (size: 2, align: 1) {
33 + 01 02 │ ..
34 + }
35 +
36 + alloc8 (size: 2, align: 1) {
37 + 01 02 │ ..
38 }
39