@@ -14,7 +14,7 @@ fn main() -> () {
14
14
StorageLive(_1); // scope 0 at $DIR/box_expr.rs:7:9 : 7:10
15
15
StorageLive(_2); // scope 0 at $DIR/box_expr.rs:7:13 : 7:25
16
16
_2 = Box(S); // scope 0 at $DIR/box_expr.rs:7:13 : 7:25
17
- (*_2) = const S::new() -> [return : bb2 , unwind: bb3 ]; // scope 0 at $DIR/box_expr.rs:7:17: 7:25
17
+ (*_2) = const S::new() -> [return : bb1 , unwind: bb7 ]; // scope 0 at $DIR/box_expr.rs:7:17: 7:25
18
18
// ty::Const
19
19
// + ty : fn() -> S {S::new}
20
20
// + val : Value(Scalar(<ZST>))
@@ -23,25 +23,17 @@ fn main() -> () {
23
23
// + literal : Const { ty: fn() -> S {S::new}, val: Value(Scalar(<ZST>)) }
24
24
}
25
25
26
- bb1 (cleanup) : {
27
- resume; // scope 0 at $DIR/box_expr.rs:6:1 : 9:2
28
- }
29
-
30
- bb2 : {
26
+ bb1 : {
31
27
_1 = move _2; // scope 0 at $DIR/box_expr.rs:7:13 : 7:25
32
- drop(_2) -> bb4; // scope 0 at $DIR/box_expr.rs:7:24 : 7:25
33
- }
34
-
35
- bb3 (cleanup) : {
36
- drop(_2) -> bb1; // scope 0 at $DIR/box_expr.rs:7:24 : 7:25
28
+ drop(_2) -> bb2; // scope 0 at $DIR/box_expr.rs:7:24 : 7:25
37
29
}
38
30
39
- bb4 : {
31
+ bb2 : {
40
32
StorageDead(_2); // scope 0 at $DIR/box_expr.rs:7:24 : 7:25
41
33
StorageLive(_3); // scope 1 at $DIR/box_expr.rs:8:5 : 8:12
42
34
StorageLive(_4); // scope 1 at $DIR/box_expr.rs:8:10 : 8:11
43
35
_4 = move _1; // scope 1 at $DIR/box_expr.rs:8:10 : 8:11
44
- _3 = const std::mem::drop::<std::boxed::Box<S>>(move _4) -> [return : bb5 , unwind: bb7 ]; // scope 1 at $DIR/box_expr.rs:8:5: 8:12
36
+ _3 = const std::mem::drop::<std::boxed::Box<S>>(move _4) -> [return : bb3 , unwind: bb5 ]; // scope 1 at $DIR/box_expr.rs:8:5: 8:12
45
37
// ty::Const
46
38
// + ty : fn(std::boxed::Box<S>) {std::mem::drop::<std::boxed::Box<S>>}
47
39
// + val : Value(Scalar(<ZST>))
@@ -50,7 +42,7 @@ fn main() -> () {
50
42
// + literal : Const { ty: fn(std::boxed::Box<S>) {std::mem::drop::<std::boxed::Box<S>>}, val: Value(Scalar(<ZST>)) }
51
43
}
52
44
53
- bb5 : {
45
+ bb3 : {
54
46
StorageDead(_4); // scope 1 at $DIR/box_expr.rs:8:11 : 8:12
55
47
StorageDead(_3); // scope 1 at $DIR/box_expr.rs:8:12 : 8:13
56
48
_0 = const (); // scope 0 at $DIR/box_expr.rs:6:11 : 9:2
@@ -60,19 +52,27 @@ fn main() -> () {
60
52
// mir::Constant
61
53
// + span : $DIR/box_expr.rs:6:11: 9:2
62
54
// + literal : Const { ty: (), val: Value(Scalar(<ZST>)) }
63
- drop(_1) -> bb8; // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
55
+ drop(_1) -> bb4; // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
56
+ }
57
+
58
+ bb4 : {
59
+ StorageDead(_1); // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
60
+ return; // scope 0 at $DIR/box_expr.rs:9:2 : 9:2
61
+ }
62
+
63
+ bb5 (cleanup) : {
64
+ drop(_4) -> bb6; // scope 1 at $DIR/box_expr.rs:8:11 : 8:12
64
65
}
65
66
66
67
bb6 (cleanup) : {
67
- drop(_1) -> bb1 ; // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
68
+ drop(_1) -> bb8 ; // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
68
69
}
69
70
70
71
bb7 (cleanup) : {
71
- drop(_4 ) -> bb6 ; // scope 1 at $DIR/box_expr.rs:8:11 : 8:12
72
+ drop(_2 ) -> bb8 ; // scope 0 at $DIR/box_expr.rs:7:24 : 7:25
72
73
}
73
74
74
- bb8 : {
75
- StorageDead(_1); // scope 0 at $DIR/box_expr.rs:9:1 : 9:2
76
- return; // scope 0 at $DIR/box_expr.rs:9:2 : 9:2
75
+ bb8 (cleanup) : {
76
+ resume; // scope 0 at $DIR/box_expr.rs:6:1 : 9:2
77
77
}
78
78
}
0 commit comments