2023-05-10 05:23:07 -05:00
|
|
|
- // MIR for `caller` before Inline
|
|
|
|
+ // MIR for `caller` after Inline
|
|
|
|
|
|
|
|
fn caller(_1: Box<[i32]>) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
let mut _0: ();
|
|
|
|
let _2: ();
|
|
|
|
let mut _3: std::boxed::Box<[i32]>;
|
2022-08-01 15:51:58 -05:00
|
|
|
let mut _4: &mut std::boxed::Box<[i32]>;
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _5: ();
|
2022-08-01 15:51:58 -05:00
|
|
|
let mut _6: &mut std::boxed::Box<[i32]>;
|
|
|
|
let mut _7: ();
|
|
|
|
let mut _8: &mut std::boxed::Box<[i32]>;
|
|
|
|
let mut _9: ();
|
|
|
|
let mut _10: *const [i32];
|
2023-05-10 05:23:07 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = move _1;
|
2022-08-01 15:51:58 -05:00
|
|
|
_10 = (((_3.0: std::ptr::Unique<[i32]>).0: std::ptr::NonNull<[i32]>).0: *const [i32]);
|
|
|
|
_2 = callee(move (*_10)) -> [return: bb3, unwind: bb4];
|
2023-05-10 05:23:07 -05:00
|
|
|
}
|
|
|
|
|
2022-08-01 15:51:58 -05:00
|
|
|
bb1 (cleanup): {
|
|
|
|
resume;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
2023-05-10 05:23:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2022-08-01 15:51:58 -05:00
|
|
|
_4 = &mut _3;
|
|
|
|
_5 = <Box<[i32]> as Drop>::drop(move _4) -> [return: bb2, unwind: bb1];
|
2023-05-10 05:23:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4 (cleanup): {
|
2022-08-01 15:51:58 -05:00
|
|
|
_8 = &mut _3;
|
|
|
|
_9 = <Box<[i32]> as Drop>::drop(move _8) -> [return: bb1, unwind terminate];
|
2023-05-10 05:23:07 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|