@@ -30,7 +30,7 @@ fn main() -> () {
30
30
StorageLive(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:11 : 21:22
31
31
_4 = &(_1.1 : Test1); // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:11: 21:22
32
32
_5 = discriminant((*_4)); // scope 1 at $DIR/uninhabited_enum_branching2.rs:22:9 : 22:20
33
- switchInt(move _5) -> [0_isize : bb2, 1_isize: bb3, 2_isize: bb4 , otherwise: bb1]; // scope 1 at $DIR/uninhabited_enum_branching2.rs:22:9: 22:20
33
+ switchInt(move _5) -> [2_isize : bb2 , otherwise: bb1]; // scope 1 at $DIR/uninhabited_enum_branching2.rs:22:9: 22:20
34
34
}
35
35
36
36
bb1 : {
@@ -44,35 +44,10 @@ fn main() -> () {
44
44
// + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [68], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [1], len: Size { raw: 1 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 1 }) }
45
45
_3 = &(*_8); // scope 1 at $DIR/uninhabited_enum_branching2.rs:25:21 : 25:24
46
46
StorageDead(_8); // scope 1 at $DIR/uninhabited_enum_branching2.rs:25:23 : 25:24
47
- goto -> bb5 ; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
47
+ goto -> bb3 ; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
48
48
}
49
49
50
50
bb2 : {
51
- _3 = const "A(Empty)"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:22:24 : 22:34
52
- // ty::Const
53
- // + ty : &str
54
- // + val : Value(Slice { data: Allocation { bytes: [65, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 })
55
- // mir::Constant
56
- // + span : $DIR/uninhabited_enum_branching2.rs:22:24: 22:34
57
- // + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [65, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 }) }
58
- goto -> bb5; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
59
- }
60
-
61
- bb3 : {
62
- StorageLive(_6); // scope 1 at $DIR/uninhabited_enum_branching2.rs:23:24 : 23:34
63
- _6 = const "B(Empty)"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:23:24 : 23:34
64
- // ty::Const
65
- // + ty : &str
66
- // + val : Value(Slice { data: Allocation { bytes: [66, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 })
67
- // mir::Constant
68
- // + span : $DIR/uninhabited_enum_branching2.rs:23:24: 23:34
69
- // + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [66, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 }) }
70
- _3 = &(*_6); // scope 1 at $DIR/uninhabited_enum_branching2.rs:23:24 : 23:34
71
- StorageDead(_6); // scope 1 at $DIR/uninhabited_enum_branching2.rs:23:33 : 23:34
72
- goto -> bb5; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
73
- }
74
-
75
- bb4 : {
76
51
StorageLive(_7); // scope 1 at $DIR/uninhabited_enum_branching2.rs:24:21 : 24:24
77
52
_7 = const "C"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:24:21 : 24:24
78
53
// ty::Const
@@ -83,18 +58,18 @@ fn main() -> () {
83
58
// + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [67], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [1], len: Size { raw: 1 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 1 }) }
84
59
_3 = &(*_7); // scope 1 at $DIR/uninhabited_enum_branching2.rs:24:21 : 24:24
85
60
StorageDead(_7); // scope 1 at $DIR/uninhabited_enum_branching2.rs:24:23 : 24:24
86
- goto -> bb5 ; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
61
+ goto -> bb3 ; // scope 1 at $DIR/uninhabited_enum_branching2.rs:21:5 : 26:6
87
62
}
88
63
89
- bb5 : {
64
+ bb3 : {
90
65
StorageDead(_4); // scope 1 at $DIR/uninhabited_enum_branching2.rs:26:6 : 26:7
91
66
StorageDead(_3); // scope 1 at $DIR/uninhabited_enum_branching2.rs:26:6 : 26:7
92
67
StorageLive(_9); // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
93
68
_10 = discriminant((_1.1 : Test1)); // scope 1 at $DIR/uninhabited_enum_branching2.rs:29:9: 29:20
94
- switchInt(move _10) -> [0_isize : bb7, 1_isize: bb8, 2_isize: bb9 , otherwise: bb6 ]; // scope 1 at $DIR/uninhabited_enum_branching2.rs:29:9: 29:20
69
+ switchInt(move _10) -> [2_isize : bb5 , otherwise: bb4 ]; // scope 1 at $DIR/uninhabited_enum_branching2.rs:29:9: 29:20
95
70
}
96
71
97
- bb6 : {
72
+ bb4 : {
98
73
StorageLive(_13); // scope 1 at $DIR/uninhabited_enum_branching2.rs:32:21 : 32:24
99
74
_13 = const "D"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:32:21 : 32:24
100
75
// ty::Const
@@ -105,35 +80,10 @@ fn main() -> () {
105
80
// + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [68], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [1], len: Size { raw: 1 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 1 }) }
106
81
_9 = &(*_13); // scope 1 at $DIR/uninhabited_enum_branching2.rs:32:21 : 32:24
107
82
StorageDead(_13); // scope 1 at $DIR/uninhabited_enum_branching2.rs:32:23 : 32:24
108
- goto -> bb10; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
109
- }
110
-
111
- bb7 : {
112
- _9 = const "A(Empty)"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:29:24 : 29:34
113
- // ty::Const
114
- // + ty : &str
115
- // + val : Value(Slice { data: Allocation { bytes: [65, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 })
116
- // mir::Constant
117
- // + span : $DIR/uninhabited_enum_branching2.rs:29:24: 29:34
118
- // + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [65, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 }) }
119
- goto -> bb10; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
83
+ goto -> bb6; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
120
84
}
121
85
122
- bb8 : {
123
- StorageLive(_11); // scope 1 at $DIR/uninhabited_enum_branching2.rs:30:24 : 30:34
124
- _11 = const "B(Empty)"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:30:24 : 30:34
125
- // ty::Const
126
- // + ty : &str
127
- // + val : Value(Slice { data: Allocation { bytes: [66, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 })
128
- // mir::Constant
129
- // + span : $DIR/uninhabited_enum_branching2.rs:30:24: 30:34
130
- // + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [66, 40, 69, 109, 112, 116, 121, 41], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 8 }) }
131
- _9 = &(*_11); // scope 1 at $DIR/uninhabited_enum_branching2.rs:30:24 : 30:34
132
- StorageDead(_11); // scope 1 at $DIR/uninhabited_enum_branching2.rs:30:33 : 30:34
133
- goto -> bb10; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
134
- }
135
-
136
- bb9 : {
86
+ bb5 : {
137
87
StorageLive(_12); // scope 1 at $DIR/uninhabited_enum_branching2.rs:31:21 : 31:24
138
88
_12 = const "C"; // scope 1 at $DIR/uninhabited_enum_branching2.rs:31:21 : 31:24
139
89
// ty::Const
@@ -144,10 +94,10 @@ fn main() -> () {
144
94
// + literal : Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [67], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [1], len: Size { raw: 1 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 1 }) }
145
95
_9 = &(*_12); // scope 1 at $DIR/uninhabited_enum_branching2.rs:31:21 : 31:24
146
96
StorageDead(_12); // scope 1 at $DIR/uninhabited_enum_branching2.rs:31:23 : 31:24
147
- goto -> bb10; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
97
+ goto -> bb6; // scope 1 at $DIR/uninhabited_enum_branching2.rs:28:5 : 33:6
148
98
}
149
99
150
- bb10 : {
100
+ bb6 : {
151
101
StorageDead(_9); // scope 1 at $DIR/uninhabited_enum_branching2.rs:33:6 : 33:7
152
102
_0 = const (); // scope 0 at $DIR/uninhabited_enum_branching2.rs:18:11 : 34:2
153
103
StorageDead(_1); // scope 0 at $DIR/uninhabited_enum_branching2.rs:34:1 : 34:2
0 commit comments