2020-04-04 12:15:01 -05:00
|
|
|
// MIR for `test2` after Inline
|
|
|
|
|
|
|
|
fn test2(_1: &dyn X) -> bool {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
let mut _0: bool;
|
|
|
|
let mut _2: &dyn X;
|
|
|
|
let mut _3: &dyn X;
|
|
|
|
scope 1 (inlined test) {
|
|
|
|
debug x => _2;
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = &(*_1);
|
2023-07-05 13:07:03 -05:00
|
|
|
_2 = move _3 as &dyn X (PointerCoercion(Unsize));
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
2023-07-16 08:11:10 -05:00
|
|
|
_0 = <dyn X as X>::y(move _2) -> [return: bb1, unwind continue];
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
}
|