You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: No warnings when compiling Rust 2015.
Instead, this happened:
|
25 | panic!(message);
| ^^^^^^^
|
= 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
|
25 | panic!("{}", message);
| ^^^^^
help: or use std::panic::panic_any instead
|
25 | std::panic::panic_any(message);
| ^^^^^^^^^^^^^^^^^^^^^
warning: 1 warning emitted
We don't have a way to know whether the users consider switching the edition or not. This warning is for users considering it and if you don't, you can simply ignore/suppress it. I'm going to close as it works as intended, thanks for reporting anyway!
I tried this code:
I expected to see this happen: No warnings when compiling Rust 2015.
Instead, this happened:
Meta
rustc --version --verbose
:cc #80162. #81645
The text was updated successfully, but these errors were encountered: