2022-10-07 11:59:26 +00:00
|
|
|
- // MIR for `main` before Inline
|
|
|
|
+ // MIR for `main` after Inline
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: ();
|
|
|
|
+ scope 1 (inlined foo) {
|
|
|
|
+ let _2: D;
|
2022-10-07 11:59:26 +00:00
|
|
|
+ scope 2 {
|
2023-06-06 13:47:00 +00:00
|
|
|
+ debug _d => const D;
|
2022-10-07 11:59:26 +00:00
|
|
|
+ scope 3 {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_1);
|
|
|
|
- _1 = foo() -> [return: bb1, unwind unreachable];
|
|
|
|
+ StorageLive(_2);
|
2023-08-24 12:26:26 +00:00
|
|
|
+ asm!("", options(MAY_UNWIND)) -> [return: bb2, unwind terminate(abi)];
|
2022-10-07 11:59:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 13:47:00 +00:00
|
|
|
+ StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
2022-10-07 11:59:26 +00:00
|
|
|
+ }
|
|
|
|
+
|
2023-01-25 16:55:30 +00:00
|
|
|
+ bb2: {
|
2023-06-06 13:47:00 +00:00
|
|
|
+ drop(_2) -> [return: bb1, unwind unreachable];
|
2022-10-07 11:59:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|