fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before ConstDebugInfo 2+ // MIR for `main` after ConstDebugInfo 3 4 fn main() -> () { 5 let mut _0: (); 6 let _1: u8; 7 let mut _5: u8; 8 let mut _6: u8; 9 let mut _7: u8; 10 let mut _8: u8; 11 let mut _12: u32; 12 let mut _13: u32; 13 scope 1 { 14- debug x => _1; 15+ debug x => const 1_u8; 16 let _2: u8; 17 scope 2 { 18- debug y => _2; 19+ debug y => const 2_u8; 20 let _3: u8; 21 scope 3 { 22- debug z => _3; 23+ debug z => const 3_u8; 24 let _4: u8; 25 scope 4 { 26- debug sum => _4; 27+ debug sum => const 6_u8; 28 let _9: &str; 29 scope 5 { 30- debug s => _9; 31+ debug s => const "hello, world!"; 32 let _14: bool; 33 let _15: bool; 34 let _16: u32; 35 scope 6 { 36- debug ((f: (bool, bool, u32)).0: bool) => _14; 37- debug ((f: (bool, bool, u32)).1: bool) => _15; 38- debug ((f: (bool, bool, u32)).2: u32) => _16; 39+ debug ((f: (bool, bool, u32)).0: bool) => const true; 40+ debug ((f: (bool, bool, u32)).1: bool) => const false; 41+ debug ((f: (bool, bool, u32)).2: u32) => const 123_u32; 42 let _10: std::option::Option<u16>; 43 scope 7 { 44 debug o => _10; 45 let _17: u32; 46 let _18: u32; 47 scope 8 { 48- debug ((p: Point).0: u32) => _17; 49- debug ((p: Point).1: u32) => _18; 50+ debug ((p: Point).0: u32) => const 32_u32; 51+ debug ((p: Point).1: u32) => const 32_u32; 52 let _11: u32; 53 scope 9 { 54- debug a => _11; 55+ debug a => const 64_u32; 56 } 57 } 58 } 59 } 60 } 61 } 62 } 63 } 64 } 65 66 bb0: { 67 _1 = const 1_u8; 68 _2 = const 2_u8; 69 _3 = const 3_u8; 70 StorageLive(_4); 71 StorageLive(_5); 72 _5 = const 3_u8; 73 _4 = const 6_u8; 74 StorageDead(_5); 75 StorageLive(_9); 76 _9 = const "hello, world!"; 77 StorageLive(_14); 78 StorageLive(_15); 79 StorageLive(_16); 80 _14 = const true; 81 _15 = const false; 82 _16 = const 123_u32; 83 StorageLive(_10); 84 _10 = Option::<u16>::Some(const 99_u16); 85 _17 = const 32_u32; 86 _18 = const 32_u32; 87 StorageLive(_11); 88 _11 = const 64_u32; 89 StorageDead(_11); 90 StorageDead(_10); 91 StorageDead(_14); 92 StorageDead(_15); 93 StorageDead(_16); 94 StorageDead(_9); 95 StorageDead(_4); 96 return; 97 } 98 } 99