2023-01-15 09:30:09 -06:00
|
|
|
- // MIR for `f` before CopyProp
|
|
|
|
+ // MIR for `f` after CopyProp
|
|
|
|
|
|
|
|
fn f(_1: T) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug a => _1;
|
|
|
|
let mut _0: ();
|
|
|
|
let _2: T;
|
|
|
|
let _3: ();
|
|
|
|
let mut _4: T;
|
|
|
|
let mut _5: T;
|
2023-01-15 09:30:09 -06:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
- debug b => _2;
|
|
|
|
+ debug b => _1;
|
2023-01-15 09:30:09 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- StorageLive(_2);
|
2024-08-18 16:26:34 -05:00
|
|
|
- _2 = copy _1;
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_3);
|
|
|
|
- StorageLive(_4);
|
2024-08-18 16:26:34 -05:00
|
|
|
- _4 = copy _1;
|
2023-06-06 08:47:00 -05:00
|
|
|
- StorageLive(_5);
|
2024-08-18 16:26:34 -05:00
|
|
|
- _5 = copy _2;
|
2023-06-23 11:53:09 -05:00
|
|
|
- _3 = g::<T>(move _4, move _5) -> [return: bb1, unwind continue];
|
2024-08-18 16:26:34 -05:00
|
|
|
+ _3 = g::<T>(copy _1, copy _1) -> [return: bb1, unwind continue];
|
2023-01-15 09:30:09 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- StorageDead(_5);
|
|
|
|
- StorageDead(_4);
|
|
|
|
StorageDead(_3);
|
|
|
|
_0 = const ();
|
|
|
|
- StorageDead(_2);
|
|
|
|
return;
|
2023-01-15 09:30:09 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|