blob: 2d96f64aeb41f8c4b117289d0818935ee34f2592 [file] [log] [blame]
// MIR for `drop_in_place` before AddMovesForPackedDrops
fn drop_in_place(_1: *mut Vec<i32>) -> () {
let mut _0: (); // return place in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
let mut _2: &mut std::vec::Vec<i32>; // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
let mut _3: (); // in scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
bb0: {
goto -> bb7; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb1: {
return; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb2 (cleanup): {
resume; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb3: {
goto -> bb1; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb4 (cleanup): {
goto -> bb2; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb5 (cleanup): {
drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> bb4; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb6: {
drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb3, unwind: bb4]; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
}
bb7: {
_2 = &mut (*_1); // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
_3 = <Vec<i32> as Drop>::drop(move _2) -> [return: bb6, unwind: bb5]; // scope 0 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
// mir::Constant
// + span: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
// + literal: Const { ty: for<'r> fn(&'r mut std::vec::Vec<i32>) {<std::vec::Vec<i32> as std::ops::Drop>::drop}, val: Value(Scalar(<ZST>)) }
}
}