2023-02-24 20:32:52 -06:00
|
|
|
- // MIR for `transmute_ref_dst` before LowerIntrinsics
|
|
|
|
+ // MIR for `transmute_ref_dst` after LowerIntrinsics
|
|
|
|
|
|
|
|
fn transmute_ref_dst(_1: &T) -> *const T {
|
|
|
|
debug u => _1; // in scope 0 at $DIR/lower_intrinsics.rs:+0:44: +0:45
|
|
|
|
let mut _0: *const T; // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:54: +0:62
|
|
|
|
let mut _2: &T; // in scope 0 at $DIR/lower_intrinsics.rs:+1:34: +1:35
|
|
|
|
scope 1 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+1:34: +1:35
|
|
|
|
_2 = _1; // scope 1 at $DIR/lower_intrinsics.rs:+1:34: +1:35
|
2023-04-05 03:17:40 -05:00
|
|
|
- _0 = transmute::<&T, *const T>(move _2) -> [return: bb1, unwind unreachable]; // scope 1 at $DIR/lower_intrinsics.rs:+1:14: +1:36
|
2023-02-24 20:32:52 -06:00
|
|
|
- // mir::Constant
|
2023-06-01 01:58:20 -05:00
|
|
|
- // + span: $DIR/lower_intrinsics.rs:59:14: 59:33
|
2023-02-24 20:32:52 -06:00
|
|
|
- // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(&T) -> *const T {transmute::<&T, *const T>}, val: Value(<ZST>) }
|
|
|
|
+ _0 = move _2 as *const T (Transmute); // scope 1 at $DIR/lower_intrinsics.rs:+1:14: +1:36
|
|
|
|
+ goto -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:+1:14: +1:36
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:+1:35: +1:36
|
|
|
|
return; // scope 0 at $DIR/lower_intrinsics.rs:+2:2: +2:2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|