blob: 94c695e921722c2fd4cd2a68c86f00ffa5989a19 [file] [log] [blame]
warning: panic message is not a string literal
--> $DIR/lib.rs:472:12
|
472 | panic!(AbortNow)
| ^^^^^^^^
|
= note: `#[warn(non_fmt_panic)]` on by default
= note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
|
472 | panic!("{}", AbortNow)
| ^^^^^
help: or use std::panic::panic_any instead
|
472 | std::panic::panic_any(AbortNow)
| ^^^^^^^^^^^^^^^^^^^^^^
warning: 1 warning emitted
warning: panic message is not a string literal
--> $DIR/lib.rs:472:12
|
472 | panic!(AbortNow)
| ^^^^^^^^
|
= note: `#[warn(non_fmt_panic)]` on by default
= note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
|
472 | panic!("{}", AbortNow)
| ^^^^^
help: or use std::panic::panic_any instead
|
472 | std::panic::panic_any(AbortNow)
| ^^^^^^^^^^^^^^^^^^^^^^
warning: 1 warning emitted
error: proc macro panicked
--> $DIR/unrelated_panic.rs:4:1
|
4 | unrelated_panic!();
| ^^^^^^^^^^^^^^^^^^^
|
= help: message: unrelated panic test