|
8 | 8 | scope 1 { |
9 | 9 | debug _x => _1; // in scope 1 at $DIR/inline_into_box_place.rs:+1:9: +1:11 |
10 | 10 | } |
11 | | -+ scope 2 (inlined Vec::<u32>::new) { // at $DIR/inline_into_box_place.rs:7:38: 7:48 |
12 | | -+ scope 3 { |
13 | | -+ scope 4 (inlined Vec::<u32>::new_co) { // at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
14 | | -+ let mut _3: alloc::raw_vec::RawVec<u32>; // in scope 4 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
15 | | -+ } |
| 11 | ++ scope 2 (inlined Vec::<u32>::new) { // at $DIR/inline_into_box_place.rs:8:38: 8:48 |
| 12 | ++ scope 3 (inlined Vec::<u32>::new_co) { // at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
| 13 | ++ let mut _3: alloc::raw_vec::RawVec<u32>; // in scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
16 | 14 | + } |
17 | 15 | + } |
18 | | -+ scope 5 (inlined Box::<Vec<u32>>::new) { // at $DIR/inline_into_box_place.rs:7:29: 7:49 |
19 | | -+ debug x => _2; // in scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
20 | | -+ let mut _4: usize; // in scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
21 | | -+ let mut _5: usize; // in scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
22 | | -+ let mut _6: *mut u8; // in scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
23 | | -+ let mut _7: *const std::vec::Vec<u32>; // in scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
24 | | -+ scope 6 { |
| 16 | ++ scope 4 (inlined Box::<Vec<u32>>::new) { // at $DIR/inline_into_box_place.rs:8:29: 8:49 |
| 17 | ++ debug x => _2; // in scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 18 | ++ let mut _4: usize; // in scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 19 | ++ let mut _5: usize; // in scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 20 | ++ let mut _6: *mut u8; // in scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 21 | ++ let mut _7: *const std::vec::Vec<u32>; // in scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 22 | ++ scope 5 { |
25 | 23 | + } |
26 | 24 | + } |
27 | 25 |
|
28 | 26 | bb0: { |
29 | 27 | StorageLive(_1); // scope 0 at $DIR/inline_into_box_place.rs:+1:9: +1:11 |
30 | 28 | StorageLive(_2); // scope 0 at $DIR/inline_into_box_place.rs:+1:38: +1:48 |
31 | 29 | - _2 = Vec::<u32>::new() -> bb1; // scope 0 at $DIR/inline_into_box_place.rs:+1:38: +1:48 |
32 | | -+ StorageLive(_3); // scope 4 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
33 | | -+ _3 = const _; // scope 4 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
| 30 | ++ StorageLive(_3); // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
| 31 | ++ _3 = const _; // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
34 | 32 | // mir::Constant |
35 | | -- // + span: $DIR/inline_into_box_place.rs:7:38: 7:46 |
| 33 | +- // + span: $DIR/inline_into_box_place.rs:8:38: 8:46 |
36 | 34 | - // + user_ty: UserType(2) |
37 | 35 | - // + literal: Const { ty: fn() -> Vec<u32> {Vec::<u32>::new}, val: Value(<ZST>) } |
38 | 36 | + // + span: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
39 | 37 | + // + user_ty: UserType(0) |
40 | 38 | + // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Unevaluated(alloc::raw_vec::RawVec::<T, std::alloc::Global, CO_ALLOC_PREF>::NEW, [u32, Const { ty: usize, kind: Value(Leaf(0x0000000000000000)) }], None) } |
41 | | -+ _2 = Vec::<u32> { buf: move _3, len: const 0_usize }; // scope 4 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
42 | | -+ StorageDead(_3); // scope 4 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
43 | | -+ _4 = SizeOf(std::vec::Vec<u32>); // scope 6 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
44 | | -+ _5 = AlignOf(std::vec::Vec<u32>); // scope 6 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
45 | | -+ _6 = alloc::alloc::exchange_malloc(move _4, move _5) -> [return: bb3, unwind: bb4]; // scope 6 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 39 | ++ _2 = Vec::<u32> { buf: move _3, len: const 0_usize }; // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
| 40 | ++ StorageDead(_3); // scope 3 at $SRC_DIR/alloc/src/vec/mod.rs:LL:COL |
| 41 | ++ _4 = SizeOf(std::vec::Vec<u32>); // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 42 | ++ _5 = AlignOf(std::vec::Vec<u32>); // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 43 | ++ _6 = alloc::alloc::exchange_malloc(move _4, move _5) -> [return: bb3, unwind: bb4]; // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
46 | 44 | + // mir::Constant |
47 | 45 | + // + span: $SRC_DIR/alloc/src/boxed.rs:LL:COL |
48 | 46 | + // + literal: Const { ty: unsafe fn(usize, usize) -> *mut u8 {alloc::alloc::exchange_malloc}, val: Value(<ZST>) } |
|
51 | 49 | bb1: { |
52 | 50 | - _1 = Box::<Vec<u32>>::new(move _2) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/inline_into_box_place.rs:+1:29: +1:49 |
53 | 51 | - // mir::Constant |
54 | | -- // + span: $DIR/inline_into_box_place.rs:7:29: 7:37 |
| 52 | +- // + span: $DIR/inline_into_box_place.rs:8:29: 8:37 |
55 | 53 | - // + user_ty: UserType(1) |
56 | 54 | - // + literal: Const { ty: fn(Vec<u32>) -> Box<Vec<u32>> {Box::<Vec<u32>>::new}, val: Value(<ZST>) } |
57 | 55 | + StorageDead(_1); // scope 0 at $DIR/inline_into_box_place.rs:+2:1: +2:2 |
|
69 | 67 | bb3: { |
70 | 68 | - StorageDead(_1); // scope 0 at $DIR/inline_into_box_place.rs:+2:1: +2:2 |
71 | 69 | - return; // scope 0 at $DIR/inline_into_box_place.rs:+2:2: +2:2 |
72 | | -+ _1 = ShallowInitBox(move _6, std::vec::Vec<u32>); // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
73 | | -+ _7 = (((_1.0: std::ptr::Unique<std::vec::Vec<u32>>).0: std::ptr::NonNull<std::vec::Vec<u32>>).0: *const std::vec::Vec<u32>); // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
74 | | -+ (*_7) = move _2; // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 70 | ++ _1 = ShallowInitBox(move _6, std::vec::Vec<u32>); // scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 71 | ++ _7 = (((_1.0: std::ptr::Unique<std::vec::Vec<u32>>).0: std::ptr::NonNull<std::vec::Vec<u32>>).0: *const std::vec::Vec<u32>); // scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 72 | ++ (*_7) = move _2; // scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
75 | 73 | + StorageDead(_2); // scope 0 at $DIR/inline_into_box_place.rs:+1:48: +1:49 |
76 | 74 | + _0 = const (); // scope 0 at $DIR/inline_into_box_place.rs:+0:11: +2:2 |
77 | 75 | + drop(_1) -> [return: bb1, unwind: bb2]; // scope 0 at $DIR/inline_into_box_place.rs:+2:1: +2:2 |
78 | 76 | } |
79 | 77 |
|
80 | 78 | bb4 (cleanup): { |
81 | 79 | - resume; // scope 0 at $DIR/inline_into_box_place.rs:+0:1: +2:2 |
82 | | -+ drop(_2) -> bb2; // scope 5 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 80 | ++ drop(_2) -> bb2; // scope 4 at $SRC_DIR/alloc/src/boxed.rs:LL:COL |
83 | 81 | } |
84 | 82 | } |
85 | 83 |
|
0 commit comments