]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir
Rollup merge of #94057 - lcnr:simplify_type-uwu, r=nikomatsakis
[rust.git] / src / test / mir-opt / retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir
1 // MIR for `std::ptr::drop_in_place` after SimplifyCfg-make_shim
2
3 fn std::ptr::drop_in_place(_1: *mut Test) -> () {
4     let mut _0: ();                      // return place in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
5     let mut _2: &mut Test;               // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
6     let mut _3: ();                      // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
7
8     bb0: {
9         Retag([raw] _1);                 // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
10         _2 = &mut (*_1);                 // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
11         _3 = <Test as Drop>::drop(move _2) -> bb1; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
12                                          // mir::Constant
13                                          // + span: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
14                                          // + literal: Const { ty: for<'r> fn(&'r mut Test) {<Test as Drop>::drop}, val: Value(Scalar(<ZST>)) }
15     }
16
17     bb1: {
18         return;                          // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
19     }
20 }