@@ -12,6 +12,7 @@ tests/actual_tests/exit_code_fail.rs ... FAILED
12
12
tests/actual_tests/filters.rs ... FAILED
13
13
tests/actual_tests/foomp.rs ... FAILED
14
14
tests/actual_tests/foomp2.rs ... FAILED
15
+ tests/actual_tests/ice_annotations.rs ... FAILED
15
16
tests/actual_tests/inline_chain.rs ... FAILED
16
17
tests/actual_tests/joined_wrong_order.rs ... FAILED
17
18
tests/actual_tests/lone_joined_pattern.rs ... FAILED
@@ -318,6 +319,83 @@ full stdout:
318
319
319
320
320
321
322
+ FAILED TEST: tests/actual_tests/ice_annotations.rs
323
+ command: "rustc" "--error-format=json" "--out-dir" "$TMP "tests/actual_tests/ice_annotations.rs" "-Ztreat-err-as-bug" "--extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "--edition" "2021"
324
+
325
+ error: test got exit status: 101, but expected 1
326
+ = note: the compiler panicked
327
+
328
+ error: no output was expected
329
+ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ice_annotations.stderr` to the actual output
330
+ +++ <stderr output>
331
+ error: internal compiler error[E0308]: mismatched types
332
+ --> tests/actual_tests/ice_annotations.rs:8:9
333
+ |
334
+ 8 | add("42", 3);
335
+ | --- ^^^^ expected `usize`, found `&str`
336
+ | |
337
+ | arguments to this function are incorrect
338
+ |
339
+ note: function defined here
340
+ --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
341
+ |
342
+ 1 | pub fn add(left: usize, right: usize) -> usize {
343
+ | ^^^
344
+
345
+ thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:
346
+ aborting due to `-Z treat-err-as-bug=1`
347
+ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
348
+
349
+ error: the compiler unexpectedly panicked. this is a bug.
350
+
351
+ note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
352
+
353
+
354
+
355
+ note: compiler flags: -Z treat-err-as-bug
356
+
357
+ query stack during panic:
358
+ #0 [typeck] type-checking `main`
359
+ #1 [analysis] running analysis passes on this crate
360
+ end of query stack
361
+
362
+
363
+ full stderr:
364
+ error: internal compiler error[E0308]: mismatched types
365
+ --> tests/actual_tests/ice_annotations.rs:8:9
366
+ |
367
+ 8 | add("42", 3);
368
+ | --- ^^^^ expected `usize`, found `&str`
369
+ | |
370
+ | arguments to this function are incorrect
371
+ |
372
+ note: function defined here
373
+ --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
374
+ |
375
+ 1 | pub fn add(left: usize, right: usize) -> usize {
376
+ | ^^^
377
+
378
+ thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:
379
+ aborting due to `-Z treat-err-as-bug=1`
380
+ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
381
+
382
+ error: the compiler unexpectedly panicked. this is a bug.
383
+
384
+ note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
385
+
386
+
387
+
388
+ note: compiler flags: -Z treat-err-as-bug
389
+
390
+ query stack during panic:
391
+ #0 [typeck] type-checking `main`
392
+ #1 [analysis] running analysis passes on this crate
393
+ end of query stack
394
+
395
+ full stdout:
396
+
397
+
398
+
321
399
FAILED TEST: tests/actual_tests/inline_chain.rs
322
400
command: parse comments
323
401
@@ -500,6 +578,7 @@ FAILURES:
500
578
tests/actual_tests/filters.rs
501
579
tests/actual_tests/foomp.rs
502
580
tests/actual_tests/foomp2.rs
581
+ tests/actual_tests/ice_annotations.rs
503
582
tests/actual_tests/inline_chain.rs
504
583
tests/actual_tests/joined_wrong_order.rs
505
584
tests/actual_tests/lone_joined_pattern.rs
@@ -509,7 +588,7 @@ FAILURES:
509
588
tests/actual_tests/touching_above_below.rs
510
589
tests/actual_tests/touching_above_below_chain.rs
511
590
512
- test result: FAIL. 15 failed; 1 passed
591
+ test result: FAIL. 16 failed; 1 passed
513
592
514
593
Building dependencies ... ok
515
594
tests/actual_tests_bless/abort.rs ... ok
@@ -1207,6 +1286,7 @@ tests/actual_tests/exit_code_fail.rs ... FAILED
1207
1286
tests/actual_tests/filters.rs ... FAILED
1208
1287
tests/actual_tests/foomp.rs ... FAILED
1209
1288
tests/actual_tests/foomp2.rs ... FAILED
1289
+ tests/actual_tests/ice_annotations.rs ... FAILED
1210
1290
tests/actual_tests/inline_chain.rs ... FAILED
1211
1291
tests/actual_tests/joined_wrong_order.rs ... FAILED
1212
1292
tests/actual_tests/lone_joined_pattern.rs ... FAILED
@@ -1459,6 +1539,53 @@ error: there were 1 unmatched diagnostics
1459
1539
|
1460
1540
1461
1541
1542
+ FAILED TEST: tests/actual_tests/ice_annotations.rs
1543
+ command: "rustc" "--error-format=json" "--out-dir" "$TMP "tests/actual_tests/ice_annotations.rs" "-Ztreat-err-as-bug" "--edition" "2021"
1544
+
1545
+ error: test got exit status: 101, but expected 1
1546
+ = note: the compiler panicked
1547
+
1548
+ error: no output was expected
1549
+ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ice_annotations.stderr` to the actual output
1550
+ +++ <stderr output>
1551
+ error: internal compiler error[E0432]: unresolved import `basic_fail`
1552
+ --> tests/actual_tests/ice_annotations.rs:5:5
1553
+ |
1554
+ 5 | use basic_fail::add;
1555
+ | ^^^^^^^^^^ use of undeclared crate or module `basic_fail`
1556
+
1557
+ thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:
1558
+ aborting due to `-Z treat-err-as-bug=1`
1559
+ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1560
+
1561
+ error: the compiler unexpectedly panicked. this is a bug.
1562
+
1563
+ note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
1564
+
1565
+
1566
+
1567
+ note: compiler flags: -Z treat-err-as-bug
1568
+
1569
+ query stack during panic:
1570
+ #0 [resolver_for_lowering_raw] getting the resolver for lowering
1571
+ end of query stack
1572
+
1573
+
1574
+ error: `mismatched types` not found in diagnostics on line 8
1575
+ --> tests/actual_tests/ice_annotations.rs:9:15
1576
+ |
1577
+ 9 | //~^ ICE: mismatched types
1578
+ | ^^^^^^^^^^^^^^^^ expected because of this pattern
1579
+ |
1580
+
1581
+ error: there were 1 unmatched diagnostics
1582
+ --> tests/actual_tests/ice_annotations.rs:5:5
1583
+ |
1584
+ 5 | use basic_fail::add;
1585
+ | ^^^^^^^^^^ Ice: unresolved import `basic_fail`
1586
+ |
1587
+
1588
+
1462
1589
FAILED TEST: tests/actual_tests/inline_chain.rs
1463
1590
command: parse comments
1464
1591
@@ -1619,6 +1746,7 @@ FAILURES:
1619
1746
tests/actual_tests/filters.rs
1620
1747
tests/actual_tests/foomp.rs
1621
1748
tests/actual_tests/foomp2.rs
1749
+ tests/actual_tests/ice_annotations.rs
1622
1750
tests/actual_tests/inline_chain.rs
1623
1751
tests/actual_tests/joined_wrong_order.rs
1624
1752
tests/actual_tests/lone_joined_pattern.rs
@@ -1628,7 +1756,7 @@ FAILURES:
1628
1756
tests/actual_tests/touching_above_below.rs
1629
1757
tests/actual_tests/touching_above_below_chain.rs
1630
1758
1631
- test result: FAIL. 15 failed
1759
+ test result: FAIL. 16 failed
1632
1760
1633
1761
tests/actual_tests/bad_pattern.rs ... FAILED
1634
1762
tests/actual_tests/executable.rs ... FAILED
@@ -1637,6 +1765,7 @@ tests/actual_tests/exit_code_fail.rs ... FAILED
1637
1765
tests/actual_tests/filters.rs ... FAILED
1638
1766
tests/actual_tests/foomp.rs ... FAILED
1639
1767
tests/actual_tests/foomp2.rs ... FAILED
1768
+ tests/actual_tests/ice_annotations.rs ... FAILED
1640
1769
tests/actual_tests/inline_chain.rs ... FAILED
1641
1770
tests/actual_tests/joined_wrong_order.rs ... FAILED
1642
1771
tests/actual_tests/lone_joined_pattern.rs ... FAILED
@@ -1716,6 +1845,15 @@ full stdout:
1716
1845
could not spawn `"invalid_foobarlaksdfalsdfj"` as a process
1717
1846
1718
1847
1848
+ FAILED TEST: tests/actual_tests/ice_annotations.rs
1849
+ command: "$CMD" "tests/actual_tests/ice_annotations.rs" "-Ztreat-err-as-bug" "--edition" "2021"
1850
+
1851
+ full stderr:
1852
+ No such file or directory
1853
+ full stdout:
1854
+ could not spawn `"invalid_foobarlaksdfalsdfj"` as a process
1855
+
1856
+
1719
1857
FAILED TEST: tests/actual_tests/inline_chain.rs
1720
1858
command: parse comments
1721
1859
@@ -1851,6 +1989,7 @@ FAILURES:
1851
1989
tests/actual_tests/filters.rs
1852
1990
tests/actual_tests/foomp.rs
1853
1991
tests/actual_tests/foomp2.rs
1992
+ tests/actual_tests/ice_annotations.rs
1854
1993
tests/actual_tests/inline_chain.rs
1855
1994
tests/actual_tests/joined_wrong_order.rs
1856
1995
tests/actual_tests/lone_joined_pattern.rs
@@ -1860,7 +1999,7 @@ FAILURES:
1860
1999
tests/actual_tests/touching_above_below.rs
1861
2000
tests/actual_tests/touching_above_below_chain.rs
1862
2001
1863
- test result: FAIL. 15 failed
2002
+ test result: FAIL. 16 failed
1864
2003
1865
2004
1866
2005
running 0 tests
0 commit comments