Skip to content

Commit 290ce46

Browse files
committed
bless more mir-opt tests by hand
1 parent af29a26 commit 290ce46

10 files changed

+10
-10
lines changed

tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
- StorageDead(_1);
156156
- return;
157157
+ bb3 (cleanup): {
158-
+ drop(_2) -> [return: bb2, unwind terminate];
158+
+ drop(_2) -> [return: bb2, unwind terminate (panic in a destructor during cleanup)];
159159
}
160160

161161
- bb4 (cleanup): {

tests/mir-opt/pre-codegen/loops.filter_mapped.PreCodegen.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn filter_mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> Option<U>) -> ()
8383
}
8484

8585
bb9 (cleanup): {
86-
drop(_5) -> [return: bb10, unwind terminate];
86+
drop(_5) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
8787
}
8888

8989
bb10 (cleanup): {

tests/mir-opt/pre-codegen/loops.mapped.PreCodegen.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> U) -> () {
7575
}
7676

7777
bb9 (cleanup): {
78-
drop(_5) -> [return: bb10, unwind terminate];
78+
drop(_5) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
7979
}
8080

8181
bb10 (cleanup): {

tests/mir-opt/pre-codegen/loops.vec_move.PreCodegen.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn vec_move(_1: Vec<impl Sized>) -> () {
6767
}
6868

6969
bb9 (cleanup): {
70-
drop(_3) -> [return: bb10, unwind terminate];
70+
drop(_3) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
7171
}
7272

7373
bb10 (cleanup): {

tests/mir-opt/pre-codegen/range_iter.forward_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn forward_loop(_1: u32, _2: u32, _3: impl Fn(u32)) -> () {
127127
}
128128

129129
bb11 (cleanup): {
130-
drop(_3) -> [return: bb12, unwind terminate];
130+
drop(_3) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
131131
}
132132

133133
bb12 (cleanup): {

tests/mir-opt/pre-codegen/range_iter.inclusive_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn inclusive_loop(_1: u32, _2: u32, _3: impl Fn(u32)) -> () {
8282
}
8383

8484
bb8 (cleanup): {
85-
drop(_3) -> [return: bb9, unwind terminate];
85+
drop(_3) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
8686
}
8787

8888
bb9 (cleanup): {

tests/mir-opt/pre-codegen/slice_iter.enumerated_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ fn enumerated_loop(_1: &[T], _2: impl Fn(usize, &T)) -> () {
195195
}
196196

197197
bb11 (cleanup): {
198-
drop(_2) -> [return: bb12, unwind terminate];
198+
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
199199
}
200200

201201
bb12 (cleanup): {

tests/mir-opt/pre-codegen/slice_iter.forward_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn forward_loop(_1: &[T], _2: impl Fn(&T)) -> () {
182182
}
183183

184184
bb11 (cleanup): {
185-
drop(_2) -> [return: bb12, unwind terminate];
185+
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
186186
}
187187

188188
bb12 (cleanup): {

tests/mir-opt/pre-codegen/slice_iter.range_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn range_loop(_1: &[T], _2: impl Fn(usize, &T)) -> () {
143143
}
144144

145145
bb12 (cleanup): {
146-
drop(_2) -> [return: bb13, unwind terminate];
146+
drop(_2) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
147147
}
148148

149149
bb13 (cleanup): {

tests/mir-opt/pre-codegen/slice_iter.reverse_loop.PreCodegen.after.panic-unwind.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fn reverse_loop(_1: &[T], _2: impl Fn(&T)) -> () {
196196
}
197197

198198
bb11 (cleanup): {
199-
drop(_2) -> [return: bb12, unwind terminate];
199+
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
200200
}
201201

202202
bb12 (cleanup): {

0 commit comments

Comments
 (0)