2020-05-30 14:02:32 -05:00
|
|
|
- // MIR for `main` before ConstDebugInfo
|
|
|
|
+ // MIR for `main` after ConstDebugInfo
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: u8;
|
|
|
|
let mut _5: u8;
|
|
|
|
let mut _6: u8;
|
|
|
|
let mut _7: u8;
|
|
|
|
let mut _8: u8;
|
|
|
|
let mut _12: u32;
|
|
|
|
let mut _13: u32;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug x => _1;
|
|
|
|
+ debug x => const 1_u8;
|
|
|
|
let _2: u8;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 2 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug y => _2;
|
|
|
|
+ debug y => const 2_u8;
|
|
|
|
let _3: u8;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 3 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug z => _3;
|
|
|
|
+ debug z => const 3_u8;
|
|
|
|
let _4: u8;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 4 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug sum => _4;
|
|
|
|
+ debug sum => const 6_u8;
|
|
|
|
let _9: &str;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 5 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug s => _9;
|
|
|
|
+ debug s => const "hello, world!";
|
|
|
|
let _14: bool;
|
|
|
|
let _15: bool;
|
|
|
|
let _16: u32;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 6 {
|
2023-08-26 11:58:42 -05:00
|
|
|
- debug ((f: (bool, bool, u32)).0: bool) => _14;
|
|
|
|
- debug ((f: (bool, bool, u32)).1: bool) => _15;
|
|
|
|
- debug ((f: (bool, bool, u32)).2: u32) => _16;
|
|
|
|
+ debug ((f: (bool, bool, u32)).0: bool) => const true;
|
|
|
|
+ debug ((f: (bool, bool, u32)).1: bool) => const false;
|
|
|
|
+ debug ((f: (bool, bool, u32)).2: u32) => const 123_u32;
|
2023-06-06 08:47:00 -05:00
|
|
|
let _10: std::option::Option<u16>;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 7 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug o => _10;
|
|
|
|
let _17: u32;
|
|
|
|
let _18: u32;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 8 {
|
2023-08-26 11:58:42 -05:00
|
|
|
- debug ((p: Point).0: u32) => _17;
|
|
|
|
- debug ((p: Point).1: u32) => _18;
|
|
|
|
+ debug ((p: Point).0: u32) => const 32_u32;
|
|
|
|
+ debug ((p: Point).1: u32) => const 32_u32;
|
2023-06-06 08:47:00 -05:00
|
|
|
let _11: u32;
|
2020-05-30 14:02:32 -05:00
|
|
|
scope 9 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug a => _11;
|
|
|
|
+ debug a => const 64_u32;
|
2020-05-30 14:02:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_1 = const 1_u8;
|
|
|
|
_2 = const 2_u8;
|
|
|
|
_3 = const 3_u8;
|
|
|
|
StorageLive(_4);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = const 3_u8;
|
|
|
|
_4 = const 6_u8;
|
|
|
|
StorageDead(_5);
|
|
|
|
StorageLive(_9);
|
|
|
|
_9 = const "hello, world!";
|
|
|
|
StorageLive(_14);
|
|
|
|
StorageLive(_15);
|
|
|
|
StorageLive(_16);
|
|
|
|
_14 = const true;
|
|
|
|
_15 = const false;
|
|
|
|
_16 = const 123_u32;
|
|
|
|
StorageLive(_10);
|
|
|
|
_10 = Option::<u16>::Some(const 99_u16);
|
|
|
|
_17 = const 32_u32;
|
|
|
|
_18 = const 32_u32;
|
|
|
|
StorageLive(_11);
|
|
|
|
_11 = const 64_u32;
|
|
|
|
StorageDead(_11);
|
|
|
|
StorageDead(_10);
|
|
|
|
StorageDead(_14);
|
|
|
|
StorageDead(_15);
|
|
|
|
StorageDead(_16);
|
|
|
|
StorageDead(_9);
|
|
|
|
StorageDead(_4);
|
|
|
|
return;
|
2020-05-30 14:02:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|