]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir
Add #[const_trait] where needed in tests.
[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:+0:1: +0:56
5     let mut _2: &mut Test;               // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
6     let mut _3: ();                      // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
7
8     bb0: {
9         Retag([raw] _1);                 // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
10         _2 = &mut (*_1);                 // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
11         _3 = <Test as Drop>::drop(move _2) -> bb1; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
12                                          // mir::Constant
13                                          // + span: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
14                                          // + literal: Const { ty: for<'a> fn(&'a mut Test) {<Test as Drop>::drop}, val: Value(<ZST>) }
15     }
16
17     bb1: {
18         return;                          // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:+0:1: +0:56
19     }
20 }