fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `reraw` before CopyProp 2+ // MIR for `reraw` after CopyProp 3 4 fn reraw(_1: u8) -> () { 5 debug x => _1; 6 let mut _0: (); 7 let _2: &mut u8; 8 let _5: (); 9 let mut _6: &mut u8; 10 scope 1 { 11 debug a => _2; 12 let _3: *mut u8; 13 scope 2 { 14 debug b => _3; 15 let _4: &mut u8; 16 scope 3 { 17- debug c => _4; 18+ debug c => _2; 19 } 20 } 21 } 22 23 bb0: { 24- StorageLive(_2); 25 _2 = &mut _1; 26 StorageLive(_3); 27 _3 = &raw mut (*_2); 28- StorageLive(_4); 29- _4 = move _2; 30 StorageLive(_5); 31- StorageLive(_6); 32- _6 = move _4; 33- _5 = opaque::<&mut u8>(move _6) -> [return: bb1, unwind continue]; 34+ _5 = opaque::<&mut u8>(move _2) -> [return: bb1, unwind continue]; 35 } 36 37 bb1: { 38- StorageDead(_6); 39 StorageDead(_5); 40 _0 = const (); 41- StorageDead(_4); 42 StorageDead(_3); 43- StorageDead(_2); 44 return; 45 } 46 } 47