@@ -4,8 +4,9 @@ fn droppy() -> () {
4
4
let mut _0 : (); // return place in scope 0 at $DIR/enum_cast.rs:+0:13: +0:13
5
5
let _1 : (); // in scope 0 at $DIR/enum_cast.rs:+1:5: +6:6
6
6
let _2 : Droppy; // in scope 0 at $DIR/enum_cast.rs:+2:13: +2:14
7
- let mut _4 : isize; // in scope 0 at $DIR/enum_cast.rs:+5:17: +5:18
8
- let _5 : Droppy; // in scope 0 at $DIR/enum_cast.rs:+7:9: +7:10
7
+ let _4 : Droppy; // in scope 0 at $DIR/enum_cast.rs:+5:17: +5:18
8
+ let mut _5 : isize; // in scope 0 at $DIR/enum_cast.rs:+5:17: +5:18
9
+ let _6 : Droppy; // in scope 0 at $DIR/enum_cast.rs:+7:9: +7:10
9
10
scope 1 {
10
11
debug x => _2; // in scope 1 at $DIR/enum_cast.rs:+2:13 : +2:14
11
12
scope 2 {
@@ -16,7 +17,7 @@ fn droppy() -> () {
16
17
}
17
18
}
18
19
scope 4 {
19
- debug z => _5 ; // in scope 4 at $DIR/enum_cast.rs:+7:9 : +7:10
20
+ debug z => _6 ; // in scope 4 at $DIR/enum_cast.rs:+7:9 : +7:10
20
21
}
21
22
22
23
bb0 : {
@@ -25,30 +26,41 @@ fn droppy() -> () {
25
26
_2 = Droppy::C; // scope 0 at $DIR/enum_cast.rs:+2:17 : +2:26
26
27
FakeRead(ForLet(None), _2); // scope 0 at $DIR/enum_cast.rs:+2:13 : +2:14
27
28
StorageLive(_3); // scope 3 at $DIR/enum_cast.rs:+5:13 : +5:14
28
- _4 = discriminant(_2); // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:27
29
- _3 = move _4 as usize (IntToInt); // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:27
29
+ StorageLive(_4); // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:18
30
+ _4 = move _2; // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:18
31
+ _5 = discriminant(_4); // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:27
32
+ _3 = move _5 as usize (IntToInt); // scope 3 at $DIR/enum_cast.rs:+5:17 : +5:27
33
+ drop(_4) -> [return : bb1, unwind: bb4]; // scope 3 at $DIR/enum_cast.rs:+5:26: +5:27
34
+ }
35
+
36
+ bb1 : {
37
+ StorageDead(_4); // scope 3 at $DIR/enum_cast.rs:+5:26 : +5:27
30
38
FakeRead(ForLet(None), _3); // scope 3 at $DIR/enum_cast.rs:+5:13 : +5:14
31
39
_1 = const (); // scope 0 at $DIR/enum_cast.rs:+1:5 : +6:6
32
40
StorageDead(_3); // scope 1 at $DIR/enum_cast.rs:+6:5 : +6:6
33
- drop(_2) -> [return : bb1 , unwind: bb3 ]; // scope 0 at $DIR/enum_cast.rs:+6:5: +6:6
41
+ drop(_2) -> [return : bb2 , unwind: bb5 ]; // scope 0 at $DIR/enum_cast.rs:+6:5: +6:6
34
42
}
35
43
36
- bb1 : {
44
+ bb2 : {
37
45
StorageDead(_2); // scope 0 at $DIR/enum_cast.rs:+6:5 : +6:6
38
46
StorageDead(_1); // scope 0 at $DIR/enum_cast.rs:+6:5 : +6:6
39
- StorageLive(_5 ); // scope 0 at $DIR/enum_cast.rs:+7:9 : +7:10
40
- _5 = Droppy::B; // scope 0 at $DIR/enum_cast.rs:+7:13 : +7:22
41
- FakeRead(ForLet(None), _5 ); // scope 0 at $DIR/enum_cast.rs:+7:9 : +7:10
47
+ StorageLive(_6 ); // scope 0 at $DIR/enum_cast.rs:+7:9 : +7:10
48
+ _6 = Droppy::B; // scope 0 at $DIR/enum_cast.rs:+7:13 : +7:22
49
+ FakeRead(ForLet(None), _6 ); // scope 0 at $DIR/enum_cast.rs:+7:9 : +7:10
42
50
_0 = const (); // scope 0 at $DIR/enum_cast.rs:+0:13 : +8:2
43
- drop(_5 ) -> [return : bb2 , unwind: bb3 ]; // scope 0 at $DIR/enum_cast.rs:+8:1: +8:2
51
+ drop(_6 ) -> [return : bb3 , unwind: bb5 ]; // scope 0 at $DIR/enum_cast.rs:+8:1: +8:2
44
52
}
45
53
46
- bb2 : {
47
- StorageDead(_5 ); // scope 0 at $DIR/enum_cast.rs:+8:1 : +8:2
54
+ bb3 : {
55
+ StorageDead(_6 ); // scope 0 at $DIR/enum_cast.rs:+8:1 : +8:2
48
56
return; // scope 0 at $DIR/enum_cast.rs:+8:2 : +8:2
49
57
}
50
58
51
- bb3 (cleanup) : {
59
+ bb4 (cleanup) : {
60
+ drop(_2) -> bb5; // scope 0 at $DIR/enum_cast.rs:+6:5 : +6:6
61
+ }
62
+
63
+ bb5 (cleanup) : {
52
64
resume; // scope 0 at $DIR/enum_cast.rs:+0:1 : +8:2
53
65
}
54
66
}
0 commit comments