]> git.proxmox.com Git - rustc.git/blame - tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / mir-opt / const_prop / mutable_variable_aggregate_mut_ref.main.ConstProp.diff
CommitLineData
f9f354fc
XL
1- // MIR for `main` before ConstProp
2+ // MIR for `main` after ConstProp
3
4 fn main() -> () {
fe692bf9
FG
5 let mut _0: ();
6 let mut _1: (i32, i32);
f9f354fc 7 scope 1 {
fe692bf9
FG
8 debug x => _1;
9 let _2: &mut (i32, i32);
f9f354fc 10 scope 2 {
fe692bf9
FG
11 debug z => _2;
12 let _3: (i32, i32);
f9f354fc 13 scope 3 {
fe692bf9 14 debug y => _3;
f9f354fc
XL
15 }
16 }
17 }
18
19 bb0: {
fe692bf9
FG
20 StorageLive(_1);
21 _1 = (const 42_i32, const 43_i32);
22 StorageLive(_2);
23 _2 = &mut _1;
24 ((*_2).1: i32) = const 99_i32;
25 StorageLive(_3);
26 _3 = _1;
27 _0 = const ();
28 StorageDead(_3);
29 StorageDead(_2);
30 StorageDead(_1);
31 return;
f9f354fc
XL
32 }
33 }
34