2023-02-24 20:32:52 -06:00
|
|
|
- // MIR for `unreachable_box` before ConstProp
|
|
|
|
+ // MIR for `unreachable_box` after ConstProp
|
|
|
|
|
|
|
|
fn unreachable_box() -> ! {
|
|
|
|
let mut _0: !; // return place in scope 0 at $DIR/transmute.rs:+0:36: +0:37
|
2023-05-09 07:42:39 -05:00
|
|
|
let _1: std::boxed::Box<Never>; // in scope 0 at $DIR/transmute.rs:+1:9: +1:10
|
2023-02-24 20:32:52 -06:00
|
|
|
scope 1 {
|
2023-05-09 07:42:39 -05:00
|
|
|
debug x => _1; // in scope 1 at $DIR/transmute.rs:+1:9: +1:10
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
scope 2 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-05-09 07:42:39 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/transmute.rs:+1:9: +1:10
|
|
|
|
- _1 = const 1_usize as std::boxed::Box<Never> (Transmute); // scope 2 at $DIR/transmute.rs:+1:34: +1:52
|
|
|
|
+ _1 = const Box::<Never>(Unique::<Never> {{ pointer: NonNull::<Never> {{ pointer: {0x1 as *const Never} }}, _marker: PhantomData::<Never> }}, std::alloc::Global); // scope 2 at $DIR/transmute.rs:+1:34: +1:52
|
2023-03-26 19:00:00 -05:00
|
|
|
+ // mir::Constant
|
|
|
|
+ // + span: no-location
|
|
|
|
+ // + literal: Const { ty: Box<Never>, val: Value(Scalar(0x0000000000000001)) }
|
2023-02-24 20:32:52 -06:00
|
|
|
unreachable; // scope 1 at $DIR/transmute.rs:+2:11: +2:13
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|