The 'run-pass' header cause a 'ui' test to execute the result. It is used to test the lint output, at the same time ensure those lints won't cause the source code to become compile-fail. 12 run-pass/run-pass-fulldeps tests gained the header and are moved to ui/ui-fulldeps. After this move, no run-pass/run-pass-fulldeps tests should rely on the compiler's JSON message. This allows us to stop passing `--error-format json` in run-pass tests, thus fixing #36516.
40 lines
1.5 KiB
Text
40 lines
1.5 KiB
Text
warning: attribute must be of the form: `#[should_panic]` or `#[should_panic(expected = "error message")]`
|
|
--> $DIR/test-should-panic-attr.rs:15:1
|
|
|
|
|
15 | #[should_panic = "foo"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
|
--> $DIR/test-should-panic-attr.rs:22:1
|
|
|
|
|
22 | #[should_panic(expected)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
|
--> $DIR/test-should-panic-attr.rs:29:1
|
|
|
|
|
29 | #[should_panic(expect)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
|
--> $DIR/test-should-panic-attr.rs:36:1
|
|
|
|
|
36 | #[should_panic(expected(foo, bar))]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
|
--> $DIR/test-should-panic-attr.rs:43:1
|
|
|
|
|
43 | #[should_panic(expected = "foo", bar)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|