Skip to content

Commit bde213c

Browse files
committed
Add needs-unwind.
1 parent 8e5910f commit bde213c

8 files changed

+39
-38
lines changed

tests/mir-opt/reference_prop.dominate_storage.ReferencePropagation.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
_5 = (*_2); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
2525
_0 = opaque::<i32>(_5) -> bb3; // scope 0 at $DIR/reference_prop.rs:+16:13: +16:38
2626
// mir::Constant
27-
// + span: $DIR/reference_prop.rs:382:28: 382:34
27+
// + span: $DIR/reference_prop.rs:383:28: 383:34
2828
// + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
2929
}
3030

tests/mir-opt/reference_prop.maybe_dead.ReferencePropagation.diff

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
StorageDead(_3); // scope 0 at $DIR/reference_prop.rs:+21:13: +21:27
3030
_0 = opaque::<i32>(_6) -> bb2; // scope 0 at $DIR/reference_prop.rs:+22:13: +22:38
3131
// mir::Constant
32-
// + span: $DIR/reference_prop.rs:416:28: 416:34
32+
// + span: $DIR/reference_prop.rs:417:28: 417:34
3333
// + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
3434
}
3535

3636
bb2: {
3737
_7 = (*_4); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
3838
_0 = opaque::<i32>(_7) -> bb3; // scope 0 at $DIR/reference_prop.rs:+27:13: +27:38
3939
// mir::Constant
40-
// + span: $DIR/reference_prop.rs:421:28: 421:34
40+
// + span: $DIR/reference_prop.rs:422:28: 422:34
4141
// + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
4242
}
4343

4444
bb3: {
4545
_8 = (*_5); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
4646
_0 = opaque::<i32>(_8) -> bb4; // scope 0 at $DIR/reference_prop.rs:+33:13: +33:43
4747
// mir::Constant
48-
// + span: $DIR/reference_prop.rs:427:33: 427:39
48+
// + span: $DIR/reference_prop.rs:428:33: 428:39
4949
// + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
5050
}
5151

tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
_3 = (*_2); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
1717
_0 = opaque::<i32>(_3) -> bb1; // scope 0 at $DIR/reference_prop.rs:+14:13: +14:43
1818
// mir::Constant
19-
// + span: $DIR/reference_prop.rs:356:33: 356:39
19+
// + span: $DIR/reference_prop.rs:357:33: 357:39
2020
// + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
2121
}
2222

tests/mir-opt/reference_prop.reference_propagation.ReferencePropagation.diff

+8-8
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
_8 = (); // scope 3 at $DIR/reference_prop.rs:+6:16: +6:18
160160
_7 = opaque::<()>(move _8) -> bb1; // scope 3 at $DIR/reference_prop.rs:+6:9: +6:19
161161
// mir::Constant
162-
// + span: $DIR/reference_prop.rs:15:9: 15:15
162+
// + span: $DIR/reference_prop.rs:16:9: 16:15
163163
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
164164
}
165165

@@ -193,7 +193,7 @@
193193
_17 = (); // scope 7 at $DIR/reference_prop.rs:+17:16: +17:18
194194
_16 = opaque::<()>(move _17) -> bb2; // scope 7 at $DIR/reference_prop.rs:+17:9: +17:19
195195
// mir::Constant
196-
// + span: $DIR/reference_prop.rs:26:9: 26:15
196+
// + span: $DIR/reference_prop.rs:27:9: 27:15
197197
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
198198
}
199199

@@ -220,7 +220,7 @@
220220
_24 = (); // scope 11 at $DIR/reference_prop.rs:+26:16: +26:18
221221
_23 = opaque::<()>(move _24) -> bb3; // scope 11 at $DIR/reference_prop.rs:+26:9: +26:19
222222
// mir::Constant
223-
// + span: $DIR/reference_prop.rs:35:9: 35:15
223+
// + span: $DIR/reference_prop.rs:36:9: 36:15
224224
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
225225
}
226226

@@ -247,7 +247,7 @@
247247
_31 = (); // scope 15 at $DIR/reference_prop.rs:+35:16: +35:18
248248
_30 = opaque::<()>(move _31) -> bb4; // scope 15 at $DIR/reference_prop.rs:+35:9: +35:19
249249
// mir::Constant
250-
// + span: $DIR/reference_prop.rs:44:9: 44:15
250+
// + span: $DIR/reference_prop.rs:45:9: 45:15
251251
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
252252
}
253253

@@ -273,7 +273,7 @@
273273
_37 = _34; // scope 18 at $DIR/reference_prop.rs:+43:16: +43:17
274274
_36 = opaque::<&usize>(move _37) -> bb5; // scope 18 at $DIR/reference_prop.rs:+43:9: +43:18
275275
// mir::Constant
276-
// + span: $DIR/reference_prop.rs:52:9: 52:15
276+
// + span: $DIR/reference_prop.rs:53:9: 53:15
277277
// + literal: Const { ty: fn(&usize) {opaque::<&usize>}, val: Value(<ZST>) }
278278
}
279279

@@ -305,7 +305,7 @@
305305
_46 = _44; // scope 24 at $DIR/reference_prop.rs:+56:16: +56:18
306306
_45 = opaque::<&usize>(move _46) -> bb6; // scope 24 at $DIR/reference_prop.rs:+56:9: +56:19
307307
// mir::Constant
308-
// + span: $DIR/reference_prop.rs:65:9: 65:15
308+
// + span: $DIR/reference_prop.rs:66:9: 66:15
309309
// + literal: Const { ty: fn(&usize) {opaque::<&usize>}, val: Value(<ZST>) }
310310
}
311311

@@ -331,7 +331,7 @@
331331
_51 = (); // scope 26 at $DIR/reference_prop.rs:+63:16: +63:18
332332
_50 = opaque::<()>(move _51) -> bb7; // scope 26 at $DIR/reference_prop.rs:+63:9: +63:19
333333
// mir::Constant
334-
// + span: $DIR/reference_prop.rs:72:9: 72:15
334+
// + span: $DIR/reference_prop.rs:73:9: 73:15
335335
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
336336
}
337337

@@ -359,7 +359,7 @@
359359
_57 = (); // scope 28 at $DIR/reference_prop.rs:+71:16: +71:18
360360
_56 = opaque::<()>(move _57) -> bb8; // scope 28 at $DIR/reference_prop.rs:+71:9: +71:19
361361
// mir::Constant
362-
// + span: $DIR/reference_prop.rs:80:9: 80:15
362+
// + span: $DIR/reference_prop.rs:81:9: 81:15
363363
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
364364
}
365365

tests/mir-opt/reference_prop.reference_propagation_const_ptr.ReferencePropagation.diff

+9-9
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
_8 = (); // scope 4 at $DIR/reference_prop.rs:+6:16: +6:18
195195
_7 = opaque::<()>(move _8) -> bb1; // scope 4 at $DIR/reference_prop.rs:+6:9: +6:19
196196
// mir::Constant
197-
// + span: $DIR/reference_prop.rs:165:9: 165:15
197+
// + span: $DIR/reference_prop.rs:166:9: 166:15
198198
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
199199
}
200200

@@ -224,7 +224,7 @@
224224
_16 = (); // scope 9 at $DIR/reference_prop.rs:+17:16: +17:18
225225
_15 = opaque::<()>(move _16) -> bb2; // scope 9 at $DIR/reference_prop.rs:+17:9: +17:19
226226
// mir::Constant
227-
// + span: $DIR/reference_prop.rs:176:9: 176:15
227+
// + span: $DIR/reference_prop.rs:177:9: 177:15
228228
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
229229
}
230230

@@ -251,7 +251,7 @@
251251
_23 = (); // scope 14 at $DIR/reference_prop.rs:+26:16: +26:18
252252
_22 = opaque::<()>(move _23) -> bb3; // scope 14 at $DIR/reference_prop.rs:+26:9: +26:19
253253
// mir::Constant
254-
// + span: $DIR/reference_prop.rs:185:9: 185:15
254+
// + span: $DIR/reference_prop.rs:186:9: 186:15
255255
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
256256
}
257257

@@ -278,7 +278,7 @@
278278
_30 = (); // scope 19 at $DIR/reference_prop.rs:+35:16: +35:18
279279
_29 = opaque::<()>(move _30) -> bb4; // scope 19 at $DIR/reference_prop.rs:+35:9: +35:19
280280
// mir::Constant
281-
// + span: $DIR/reference_prop.rs:194:9: 194:15
281+
// + span: $DIR/reference_prop.rs:195:9: 195:15
282282
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
283283
}
284284

@@ -304,7 +304,7 @@
304304
_36 = _33; // scope 23 at $DIR/reference_prop.rs:+43:16: +43:17
305305
_35 = opaque::<*const usize>(move _36) -> bb5; // scope 23 at $DIR/reference_prop.rs:+43:9: +43:18
306306
// mir::Constant
307-
// + span: $DIR/reference_prop.rs:202:9: 202:15
307+
// + span: $DIR/reference_prop.rs:203:9: 203:15
308308
// + literal: Const { ty: fn(*const usize) {opaque::<*const usize>}, val: Value(<ZST>) }
309309
}
310310

@@ -336,7 +336,7 @@
336336
_45 = _43; // scope 30 at $DIR/reference_prop.rs:+56:16: +56:18
337337
_44 = opaque::<*const usize>(move _45) -> bb6; // scope 30 at $DIR/reference_prop.rs:+56:9: +56:19
338338
// mir::Constant
339-
// + span: $DIR/reference_prop.rs:215:9: 215:15
339+
// + span: $DIR/reference_prop.rs:216:9: 216:15
340340
// + literal: Const { ty: fn(*const usize) {opaque::<*const usize>}, val: Value(<ZST>) }
341341
}
342342

@@ -362,7 +362,7 @@
362362
_50 = (); // scope 33 at $DIR/reference_prop.rs:+63:16: +63:18
363363
_49 = opaque::<()>(move _50) -> bb7; // scope 33 at $DIR/reference_prop.rs:+63:9: +63:19
364364
// mir::Constant
365-
// + span: $DIR/reference_prop.rs:222:9: 222:15
365+
// + span: $DIR/reference_prop.rs:223:9: 223:15
366366
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
367367
}
368368

@@ -387,7 +387,7 @@
387387
_56 = (); // scope 36 at $DIR/reference_prop.rs:+71:16: +71:18
388388
_55 = opaque::<()>(move _56) -> bb8; // scope 36 at $DIR/reference_prop.rs:+71:9: +71:19
389389
// mir::Constant
390-
// + span: $DIR/reference_prop.rs:230:9: 230:15
390+
// + span: $DIR/reference_prop.rs:231:9: 231:15
391391
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
392392
}
393393

@@ -413,7 +413,7 @@
413413
_62 = (); // scope 41 at $DIR/reference_prop.rs:+80:16: +80:18
414414
_61 = opaque::<()>(move _62) -> bb9; // scope 41 at $DIR/reference_prop.rs:+80:9: +80:19
415415
// mir::Constant
416-
// + span: $DIR/reference_prop.rs:239:9: 239:15
416+
// + span: $DIR/reference_prop.rs:240:9: 240:15
417417
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
418418
}
419419

tests/mir-opt/reference_prop.reference_propagation_mut.ReferencePropagation.diff

+8-8
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
_8 = (); // scope 3 at $DIR/reference_prop.rs:+6:16: +6:18
160160
_7 = opaque::<()>(move _8) -> bb1; // scope 3 at $DIR/reference_prop.rs:+6:9: +6:19
161161
// mir::Constant
162-
// + span: $DIR/reference_prop.rs:90:9: 90:15
162+
// + span: $DIR/reference_prop.rs:91:9: 91:15
163163
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
164164
}
165165

@@ -193,7 +193,7 @@
193193
_17 = (); // scope 7 at $DIR/reference_prop.rs:+17:16: +17:18
194194
_16 = opaque::<()>(move _17) -> bb2; // scope 7 at $DIR/reference_prop.rs:+17:9: +17:19
195195
// mir::Constant
196-
// + span: $DIR/reference_prop.rs:101:9: 101:15
196+
// + span: $DIR/reference_prop.rs:102:9: 102:15
197197
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
198198
}
199199

@@ -220,7 +220,7 @@
220220
_24 = (); // scope 11 at $DIR/reference_prop.rs:+26:16: +26:18
221221
_23 = opaque::<()>(move _24) -> bb3; // scope 11 at $DIR/reference_prop.rs:+26:9: +26:19
222222
// mir::Constant
223-
// + span: $DIR/reference_prop.rs:110:9: 110:15
223+
// + span: $DIR/reference_prop.rs:111:9: 111:15
224224
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
225225
}
226226

@@ -247,7 +247,7 @@
247247
_31 = (); // scope 15 at $DIR/reference_prop.rs:+35:16: +35:18
248248
_30 = opaque::<()>(move _31) -> bb4; // scope 15 at $DIR/reference_prop.rs:+35:9: +35:19
249249
// mir::Constant
250-
// + span: $DIR/reference_prop.rs:119:9: 119:15
250+
// + span: $DIR/reference_prop.rs:120:9: 120:15
251251
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
252252
}
253253

@@ -272,7 +272,7 @@
272272
_37 = move _34; // scope 18 at $DIR/reference_prop.rs:+43:16: +43:17
273273
_36 = opaque::<&mut usize>(move _37) -> bb5; // scope 18 at $DIR/reference_prop.rs:+43:9: +43:18
274274
// mir::Constant
275-
// + span: $DIR/reference_prop.rs:127:9: 127:15
275+
// + span: $DIR/reference_prop.rs:128:9: 128:15
276276
// + literal: Const { ty: fn(&mut usize) {opaque::<&mut usize>}, val: Value(<ZST>) }
277277
}
278278

@@ -302,7 +302,7 @@
302302
_46 = move _44; // scope 24 at $DIR/reference_prop.rs:+56:16: +56:18
303303
_45 = opaque::<&mut usize>(move _46) -> bb6; // scope 24 at $DIR/reference_prop.rs:+56:9: +56:19
304304
// mir::Constant
305-
// + span: $DIR/reference_prop.rs:140:9: 140:15
305+
// + span: $DIR/reference_prop.rs:141:9: 141:15
306306
// + literal: Const { ty: fn(&mut usize) {opaque::<&mut usize>}, val: Value(<ZST>) }
307307
}
308308

@@ -328,7 +328,7 @@
328328
_51 = (); // scope 26 at $DIR/reference_prop.rs:+63:16: +63:18
329329
_50 = opaque::<()>(move _51) -> bb7; // scope 26 at $DIR/reference_prop.rs:+63:9: +63:19
330330
// mir::Constant
331-
// + span: $DIR/reference_prop.rs:147:9: 147:15
331+
// + span: $DIR/reference_prop.rs:148:9: 148:15
332332
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
333333
}
334334

@@ -356,7 +356,7 @@
356356
_57 = (); // scope 28 at $DIR/reference_prop.rs:+71:16: +71:18
357357
_56 = opaque::<()>(move _57) -> bb8; // scope 28 at $DIR/reference_prop.rs:+71:9: +71:19
358358
// mir::Constant
359-
// + span: $DIR/reference_prop.rs:155:9: 155:15
359+
// + span: $DIR/reference_prop.rs:156:9: 156:15
360360
// + literal: Const { ty: fn(()) {opaque::<()>}, val: Value(<ZST>) }
361361
}
362362

0 commit comments

Comments
 (0)