2022-04-30 11:10:33 -05:00
|
|
|
- // MIR for `foo` before Inline
|
|
|
|
+ // MIR for `foo` after Inline
|
|
|
|
|
|
|
|
fn foo() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: <IntFactory as Factory<T>>::Item;
|
2022-04-30 11:10:33 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
2023-06-23 11:53:09 -05:00
|
|
|
_1 = bar::<T>() -> [return: bb1, unwind continue];
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const ();
|
|
|
|
drop(_1) -> [return: bb2, unwind: bb3];
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
resume;
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|