@@ -323,7 +323,16 @@ LL | panic!(v);
323323 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
324324
325325warning: panic message is not a string literal
326- --> $DIR/non-fmt-panic.rs:71:12
326+ --> $DIR/non-fmt-panic.rs:68:20
327+ |
328+ LL | assert!(false, v);
329+ | ^
330+ |
331+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
332+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
333+
334+ warning: panic message is not a string literal
335+ --> $DIR/non-fmt-panic.rs:72:12
327336 |
328337LL | panic!(v);
329338 | ^
@@ -340,7 +349,20 @@ LL | std::panic::panic_any(v);
340349 | ~~~~~~~~~~~~~~~~~~~~~
341350
342351warning: panic message is not a string literal
343- --> $DIR/non-fmt-panic.rs:75:12
352+ --> $DIR/non-fmt-panic.rs:73:20
353+ |
354+ LL | assert!(false, v);
355+ | ^
356+ |
357+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
358+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
359+ help: add a "{:?}" format string to use the Debug implementation of `T`
360+ |
361+ LL | assert!(false, "{:?}", v);
362+ | +++++++
363+
364+ warning: panic message is not a string literal
365+ --> $DIR/non-fmt-panic.rs:77:12
344366 |
345367LL | panic!(v);
346368 | ^
@@ -357,7 +379,20 @@ LL | std::panic::panic_any(v);
357379 | ~~~~~~~~~~~~~~~~~~~~~
358380
359381warning: panic message is not a string literal
360- --> $DIR/non-fmt-panic.rs:79:12
382+ --> $DIR/non-fmt-panic.rs:78:20
383+ |
384+ LL | assert!(false, v);
385+ | ^
386+ |
387+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
388+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
389+ help: add a "{}" format string to Display the message
390+ |
391+ LL | assert!(false, "{}", v);
392+ | +++++
393+
394+ warning: panic message is not a string literal
395+ --> $DIR/non-fmt-panic.rs:82:12
361396 |
362397LL | panic!(v);
363398 | ^
@@ -373,5 +408,18 @@ help: or use std::panic::panic_any instead
373408LL | std::panic::panic_any(v);
374409 | ~~~~~~~~~~~~~~~~~~~~~
375410
376- warning: 26 warnings emitted
411+ warning: panic message is not a string literal
412+ --> $DIR/non-fmt-panic.rs:83:20
413+ |
414+ LL | assert!(false, v);
415+ | ^
416+ |
417+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
418+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
419+ help: add a "{}" format string to Display the message
420+ |
421+ LL | assert!(false, "{}", v);
422+ | +++++
423+
424+ warning: 30 warnings emitted
377425
0 commit comments