summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir
blob: b58794183551586af63c1dd96dee7948b52bd87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// MIR for `std::ptr::drop_in_place` before AddMovesForPackedDrops

fn std::ptr::drop_in_place(_1: *mut Vec<i32>) -> () {
    let mut _0: ();
    let mut _2: &mut std::vec::Vec<i32>;
    let mut _3: ();

    bb0: {
        goto -> bb6;
    }

    bb1: {
        return;
    }

    bb2 (cleanup): {
        resume;
    }

    bb3: {
        goto -> bb1;
    }

    bb4 (cleanup): {
        drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb2, unwind terminate(cleanup)];
    }

    bb5: {
        drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb3, unwind: bb2];
    }

    bb6: {
        _2 = &mut (*_1);
        _3 = <Vec<i32> as Drop>::drop(move _2) -> [return: bb5, unwind: bb4];
    }
}