LL | assert!(false, S);
| ^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | assert!(false, "{}", S);
| +++++
LL | assert!(false, 123);
| ^^^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | assert!(false, "{}", 123);
| +++++
LL | assert!(false, Some(123));
| ^^^^^^^^^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{:?}" format string to use the Debug implementation of `Option<i32>`
+help: add a "{:?}" format string to use the `Debug` implementation of `Option<i32>`
|
LL | assert!(false, "{:?}", Some(123));
| +++++++
LL | panic!(C);
| ^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!("{}", C);
| +++++
LL | panic!(S);
| ^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!("{}", S);
| +++++
LL | unreachable!(S);
| ^
|
- = note: this usage of unreachable!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | unreachable!("{}", S);
| +++++
LL | unreachable!(S);
| ^
|
- = note: this usage of unreachable!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | unreachable!("{}", S);
| +++++
LL | std::panic!(123);
| ^^^
|
- = note: this usage of std::panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `std::panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | std::panic!("{}", 123);
| +++++
LL | core::panic!(&*"abc");
| ^^^^^^^
|
- = note: this usage of core::panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `core::panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | core::panic!("{}", &*"abc");
| +++++
LL | panic!(Some(123));
| ^^^^^^^^^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{:?}" format string to use the Debug implementation of `Option<i32>`
+help: add a "{:?}" format string to use the `Debug` implementation of `Option<i32>`
|
LL | panic!("{:?}", Some(123));
| +++++++
LL | panic!(a!());
| ^^^^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!("{}", a!());
| +++++
LL | unreachable!(a!());
| ^^^^
|
- = note: this usage of unreachable!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | unreachable!("{}", a!());
| +++++
LL | panic!(format!("{}", 1));
| ^^^^^^^^^^^^^^^^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
- = note: the panic!() macro supports formatting, so there's no need for the format!() macro here
+ = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
help: remove the `format!(..)` macro call
|
LL - panic!(format!("{}", 1));
LL | unreachable!(format!("{}", 1));
| ^^^^^^^^^^^^^^^^
|
- = note: this usage of unreachable!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
- = note: the unreachable!() macro supports formatting, so there's no need for the format!() macro here
+ = note: the `unreachable!()` macro supports formatting, so there's no need for the `format!()` macro here
help: remove the `format!(..)` macro call
|
LL - unreachable!(format!("{}", 1));
LL | assert!(false, format!("{}", 1));
| ^^^^^^^^^^^^^^^^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
- = note: the assert!() macro supports formatting, so there's no need for the format!() macro here
+ = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
help: remove the `format!(..)` macro call
|
LL - assert!(false, format!("{}", 1));
LL | debug_assert!(false, format!("{}", 1));
| ^^^^^^^^^^^^^^^^
|
- = note: this usage of debug_assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
- = note: the debug_assert!() macro supports formatting, so there's no need for the format!() macro here
+ = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here
help: remove the `format!(..)` macro call
|
LL - debug_assert!(false, format!("{}", 1));
LL | panic![123];
| ^^^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!["{}", 123];
| +++++
LL | panic!{123};
| ^^^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!{"{}", 123};
| +++++
| |
| help: use std::panic::panic_any instead: `std::panic::panic_any`
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
warning: panic message is not a string literal
LL | assert!(false, v);
| ^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
warning: panic message is not a string literal
LL | panic!(v);
| ^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{:?}" format string to use the Debug implementation of `T`
+help: add a "{:?}" format string to use the `Debug` implementation of `T`
|
LL | panic!("{:?}", v);
| +++++++
LL | assert!(false, v);
| ^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{:?}" format string to use the Debug implementation of `T`
+help: add a "{:?}" format string to use the `Debug` implementation of `T`
|
LL | assert!(false, "{:?}", v);
| +++++++
LL | panic!(v);
| ^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!("{}", v);
| +++++
LL | assert!(false, v);
| ^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | assert!(false, "{}", v);
| +++++
LL | panic!(v);
| ^
|
- = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | panic!("{}", v);
| +++++
LL | assert!(false, v);
| ^
|
- = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
+ = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
-help: add a "{}" format string to Display the message
+help: add a "{}" format string to `Display` the message
|
LL | assert!(false, "{}", v);
| +++++