2024-04-07 11:23:16 -05:00
|
|
|
- // MIR for `borrowed` before CopyProp
|
|
|
|
+ // MIR for `borrowed` after CopyProp
|
|
|
|
|
2024-04-07 13:33:18 -05:00
|
|
|
fn borrowed(_1: T) -> bool {
|
2024-04-07 11:23:16 -05:00
|
|
|
let mut _0: bool;
|
2024-04-07 13:33:18 -05:00
|
|
|
let mut _2: T;
|
|
|
|
let mut _3: &T;
|
2024-04-07 11:23:16 -05:00
|
|
|
|
|
|
|
bb0: {
|
2024-01-02 17:04:52 -06:00
|
|
|
- _2 = _1;
|
2024-04-07 11:23:16 -05:00
|
|
|
_3 = &_1;
|
2024-04-07 13:33:18 -05:00
|
|
|
_0 = opaque::<&T>(_3) -> [return: bb1, unwind unreachable];
|
2024-04-07 11:23:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-04-07 13:33:18 -05:00
|
|
|
- _0 = opaque::<T>(_2) -> [return: bb2, unwind unreachable];
|
|
|
|
+ _0 = opaque::<T>(_1) -> [return: bb2, unwind unreachable];
|
2024-04-07 11:23:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|