@@ -13,7 +13,6 @@ tests/actual_tests/foomp.rs ... FAILED
13
13
tests/actual_tests/foomp2.rs ... FAILED
14
14
tests/actual_tests/pattern_too_many_arrow.rs ... FAILED
15
15
tests/actual_tests/rustc_ice.rs ... FAILED
16
- tests/actual_tests/wrong_diagnostic_code.rs ... FAILED
17
16
18
17
FAILED TEST: tests/actual_tests/bad_pattern.rs
19
18
command: "rustc" "--error-format=json" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "--out-dir" "$TMP "tests/actual_tests/bad_pattern.rs" "--edition" "2021"
@@ -276,86 +275,6 @@ end of query stack
276
275
full stdout:
277
276
278
277
279
-
280
- FAILED TEST: tests/actual_tests/wrong_diagnostic_code.rs
281
- command: "rustc" "--error-format=json" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "--out-dir" "$TMP "tests/actual_tests/wrong_diagnostic_code.rs" "--edition" "2021"
282
-
283
- error: fail test got exit status: 0, but expected 1
284
-
285
- error: actual output differed from expected
286
- Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/wrong_diagnostic_code.stderr` to the actual output
287
- --- tests/actual_tests/wrong_diagnostic_code.stderr
288
- +++ <stderr output>
289
- +warning: unreachable expression
290
- + --> $DIR/wrong_diagnostic_code.rs:6:5
291
- + |
292
- +5 | panic!();
293
- + | -------- any code following this expression is unreachable
294
- +6 | 0
295
- + | ^ unreachable expression
296
- + |
297
- +note: the lint level is defined here
298
- + --> $DIR/wrong_diagnostic_code.rs:1:20
299
- + |
300
- +1 | #![warn(dead_code, unreachable_code)]
301
- + | ^^^^^^^^^^^^^^^^
302
- +
303
- +warning: function `foo` is never used
304
- + --> $DIR/wrong_diagnostic_code.rs:3:4
305
- + |
306
- +3 | fn foo() -> i32 {
307
- + | ^^^
308
- + |
309
- +note: the lint level is defined here
310
- + --> $DIR/wrong_diagnostic_code.rs:1:9
311
- + |
312
- +1 | #![warn(dead_code, unreachable_code)]
313
- + | ^^^^^^^^^
314
- +
315
- +warning: 2 warnings emitted
316
- +
317
-
318
-
319
- error: diagnostic code `unreachable_code` not found on line 3
320
- --> tests/actual_tests/wrong_diagnostic_code.rs:4:10
321
- |
322
- 4 | //~^ unreachable_code
323
- | ^^^^^^^^^^^^^^^^ expected because of this pattern
324
- |
325
-
326
- full stderr:
327
- warning: unreachable expression
328
- --> tests/actual_tests/wrong_diagnostic_code.rs:6:5
329
- |
330
- 5 | panic!();
331
- | -------- any code following this expression is unreachable
332
- 6 | 0
333
- | ^ unreachable expression
334
- |
335
- note: the lint level is defined here
336
- --> tests/actual_tests/wrong_diagnostic_code.rs:1:20
337
- |
338
- 1 | #![warn(dead_code, unreachable_code)]
339
- | ^^^^^^^^^^^^^^^^
340
-
341
- warning: function `foo` is never used
342
- --> tests/actual_tests/wrong_diagnostic_code.rs:3:4
343
- |
344
- 3 | fn foo() -> i32 {
345
- | ^^^
346
- |
347
- note: the lint level is defined here
348
- --> tests/actual_tests/wrong_diagnostic_code.rs:1:9
349
- |
350
- 1 | #![warn(dead_code, unreachable_code)]
351
- | ^^^^^^^^^
352
-
353
- warning: 2 warnings emitted
354
-
355
-
356
- full stdout:
357
-
358
-
359
278
FAILURES:
360
279
tests/actual_tests/bad_pattern.rs
361
280
tests/actual_tests/executable.rs
@@ -366,9 +285,8 @@ FAILURES:
366
285
tests/actual_tests/foomp2.rs
367
286
tests/actual_tests/pattern_too_many_arrow.rs
368
287
tests/actual_tests/rustc_ice.rs
369
- tests/actual_tests/wrong_diagnostic_code.rs
370
288
371
- test result: FAIL. 10 failed;
289
+ test result: FAIL. 9 failed;
372
290
373
291
Building dependencies ... ok
374
292
tests/actual_tests_bless/aux_build_not_found.rs ... FAILED
@@ -411,6 +329,7 @@ tests/actual_tests_bless/rustfix-fail-revisions.rs (revision `b`) ... FAILED
411
329
tests/actual_tests_bless/rustfix-fail.rs ... FAILED
412
330
tests/actual_tests_bless/unknown_revision.rs ... FAILED
413
331
tests/actual_tests_bless/unknown_revision2.rs ... FAILED
332
+ tests/actual_tests_bless/wrong_diagnostic_code.rs ... FAILED
414
333
415
334
FAILED TEST: tests/actual_tests_bless/aux_build_not_found.rs
416
335
command: "$CMD"
@@ -837,6 +756,57 @@ full stderr:
837
756
full stdout:
838
757
839
758
759
+
760
+ FAILED TEST: tests/actual_tests_bless/wrong_diagnostic_code.rs
761
+ command: "rustc" "--error-format=json" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "--out-dir" "$TMP "tests/actual_tests_bless/wrong_diagnostic_code.rs" "--edition" "2021"
762
+
763
+ error: diagnostic code `should_be_dead_code` not found on line 3
764
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:4:10
765
+ |
766
+ 4 | //~^ should_be_dead_code
767
+ | ^^^^^^^^^^^^^^^^^^^ expected because of this pattern
768
+ |
769
+
770
+ error: there were 1 unmatched diagnostics
771
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:3:4
772
+ |
773
+ 3 | fn foo() -> i32 {
774
+ | ^^^ Error: function `foo` is never used
775
+ |
776
+
777
+ full stderr:
778
+ error: unreachable expression
779
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:6:5
780
+ |
781
+ 5 | panic!();
782
+ | -------- any code following this expression is unreachable
783
+ 6 | 0
784
+ | ^ unreachable expression
785
+ |
786
+ note: the lint level is defined here
787
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:1:20
788
+ |
789
+ 1 | #![deny(dead_code, unreachable_code)]
790
+ | ^^^^^^^^^^^^^^^^
791
+
792
+ error: function `foo` is never used
793
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:3:4
794
+ |
795
+ 3 | fn foo() -> i32 {
796
+ | ^^^
797
+ |
798
+ note: the lint level is defined here
799
+ --> tests/actual_tests_bless/wrong_diagnostic_code.rs:1:9
800
+ |
801
+ 1 | #![deny(dead_code, unreachable_code)]
802
+ | ^^^^^^^^^
803
+
804
+ error: aborting due to 2 previous errors
805
+
806
+
807
+ full stdout:
808
+
809
+
840
810
FAILURES:
841
811
tests/actual_tests_bless/aux_build_not_found.rs
842
812
tests/actual_tests_bless/aux_proc_macro_misuse.rs
@@ -858,8 +828,9 @@ FAILURES:
858
828
tests/actual_tests_bless/rustfix-fail.rs
859
829
tests/actual_tests_bless/unknown_revision.rs
860
830
tests/actual_tests_bless/unknown_revision2.rs
831
+ tests/actual_tests_bless/wrong_diagnostic_code.rs
861
832
862
- test result: FAIL. 20 failed; 14 passed; 3 ignored;
833
+ test result: FAIL. 21 failed; 14 passed; 3 ignored;
863
834
864
835
Building dependencies ... ok
865
836
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `foo`) ... ok
@@ -905,7 +876,6 @@ tests/actual_tests/foomp.rs ... FAILED
905
876
tests/actual_tests/foomp2.rs ... FAILED
906
877
tests/actual_tests/pattern_too_many_arrow.rs ... FAILED
907
878
tests/actual_tests/rustc_ice.rs ... FAILED
908
- tests/actual_tests/wrong_diagnostic_code.rs ... FAILED
909
879
910
880
FAILED TEST: tests/actual_tests/bad_pattern.rs
911
881
command: "$CMD" "tests/actual_tests/bad_pattern.rs" "--edition" "2021"
@@ -1001,15 +971,6 @@ No such file or directory
1001
971
full stdout:
1002
972
could not spawn `"invalid_foobarlaksdfalsdfj"` as a process
1003
973
1004
-
1005
- FAILED TEST: tests/actual_tests/wrong_diagnostic_code.rs
1006
- command: "$CMD" "tests/actual_tests/wrong_diagnostic_code.rs" "--edition" "2021"
1007
-
1008
- full stderr:
1009
- No such file or directory
1010
- full stdout:
1011
- could not spawn `"invalid_foobarlaksdfalsdfj"` as a process
1012
-
1013
974
FAILURES:
1014
975
tests/actual_tests/bad_pattern.rs
1015
976
tests/actual_tests/executable.rs
@@ -1020,9 +981,8 @@ FAILURES:
1020
981
tests/actual_tests/foomp2.rs
1021
982
tests/actual_tests/pattern_too_many_arrow.rs
1022
983
tests/actual_tests/rustc_ice.rs
1023
- tests/actual_tests/wrong_diagnostic_code.rs
1024
984
1025
- test result: FAIL. 10 failed;
985
+ test result: FAIL. 9 failed;
1026
986
1027
987
1028
988
running 0 tests
0 commit comments