2023-09-20 16:43:33 -05:00
|
|
|
- // MIR for `unreachable_mut` before GVN
|
|
|
|
+ // MIR for `unreachable_mut` after GVN
|
2023-02-24 20:32:52 -06:00
|
|
|
|
|
|
|
fn unreachable_mut() -> ! {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: !;
|
|
|
|
let _1: &mut Never;
|
|
|
|
let mut _2: &mut Never;
|
2023-02-24 20:32:52 -06:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
2023-12-24 07:00:48 -06:00
|
|
|
StorageLive(_2);
|
2023-06-06 08:47:00 -05:00
|
|
|
- _2 = const 1_usize as &mut Never (Transmute);
|
2023-10-31 14:08:36 -05:00
|
|
|
- _1 = &mut (*_2);
|
2023-06-06 08:47:00 -05:00
|
|
|
+ _2 = const {0x1 as &mut Never};
|
2023-10-31 14:08:36 -05:00
|
|
|
+ _1 = const {0x1 as &mut Never};
|
2023-12-24 07:00:48 -06:00
|
|
|
StorageDead(_2);
|
2023-06-06 08:47:00 -05:00
|
|
|
unreachable;
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|