fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before Derefer 2+ // MIR for `main` after Derefer 3 4 fn main() -> () { 5 let mut _0: (); 6 let mut _1: (i32, i32); 7 let mut _3: &mut (i32, i32); 8 let mut _5: &mut (i32, &mut (i32, i32)); 9 let mut _7: &mut (i32, &mut (i32, &mut (i32, i32))); 10+ let mut _10: &mut (i32, &mut (i32, &mut (i32, i32))); 11+ let mut _11: &mut (i32, &mut (i32, i32)); 12+ let mut _12: &mut (i32, i32); 13+ let mut _13: &mut (i32, &mut (i32, &mut (i32, i32))); 14+ let mut _14: &mut (i32, &mut (i32, i32)); 15+ let mut _15: &mut (i32, i32); 16 scope 1 { 17 debug a => _1; 18 let mut _2: (i32, &mut (i32, i32)); 19 scope 2 { 20 debug b => _2; 21 let mut _4: (i32, &mut (i32, &mut (i32, i32))); 22 scope 3 { 23 debug c => _4; 24 let mut _6: (i32, &mut (i32, &mut (i32, &mut (i32, i32)))); 25 scope 4 { 26 debug d => _6; 27 let _8: &mut i32; 28 scope 5 { 29 debug x => _8; 30 let _9: &mut i32; 31 scope 6 { 32 debug y => _9; 33 } 34 } 35 } 36 } 37 } 38 } 39 40 bb0: { 41 StorageLive(_1); 42 _1 = (const 42_i32, const 43_i32); 43 StorageLive(_2); 44 StorageLive(_3); 45 _3 = &mut _1; 46 _2 = (const 99_i32, move _3); 47 StorageDead(_3); 48 StorageLive(_4); 49 StorageLive(_5); 50 _5 = &mut _2; 51 _4 = (const 11_i32, move _5); 52 StorageDead(_5); 53 StorageLive(_6); 54 StorageLive(_7); 55 _7 = &mut _4; 56 _6 = (const 13_i32, move _7); 57 StorageDead(_7); 58 StorageLive(_8); 59- _8 = &mut ((*((*((*(_6.1: &mut (i32, &mut (i32, &mut (i32, i32))))).1: &mut (i32, &mut (i32, i32)))).1: &mut (i32, i32))).1: i32); 60+ _10 = deref_copy (_6.1: &mut (i32, &mut (i32, &mut (i32, i32)))); 61+ _11 = deref_copy ((*_10).1: &mut (i32, &mut (i32, i32))); 62+ _12 = deref_copy ((*_11).1: &mut (i32, i32)); 63+ _8 = &mut ((*_12).1: i32); 64 StorageLive(_9); 65- _9 = &mut ((*((*((*(_6.1: &mut (i32, &mut (i32, &mut (i32, i32))))).1: &mut (i32, &mut (i32, i32)))).1: &mut (i32, i32))).1: i32); 66+ _13 = deref_copy (_6.1: &mut (i32, &mut (i32, &mut (i32, i32)))); 67+ _14 = deref_copy ((*_13).1: &mut (i32, &mut (i32, i32))); 68+ _15 = deref_copy ((*_14).1: &mut (i32, i32)); 69+ _9 = &mut ((*_15).1: i32); 70 _0 = const (); 71 StorageDead(_9); 72 StorageDead(_8); 73 StorageDead(_6); 74 StorageDead(_4); 75 StorageDead(_2); 76 StorageDead(_1); 77 return; 78 } 79 } 80