@@ -323,7 +323,16 @@ LL | panic!(v);
323
323
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
324
324
325
325
warning: 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
327
336
|
328
337
LL | panic!(v);
329
338
| ^
@@ -340,7 +349,20 @@ LL | std::panic::panic_any(v);
340
349
| ~~~~~~~~~~~~~~~~~~~~~
341
350
342
351
warning: 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
344
366
|
345
367
LL | panic!(v);
346
368
| ^
@@ -357,7 +379,20 @@ LL | std::panic::panic_any(v);
357
379
| ~~~~~~~~~~~~~~~~~~~~~
358
380
359
381
warning: 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
361
396
|
362
397
LL | panic!(v);
363
398
| ^
@@ -373,5 +408,18 @@ help: or use std::panic::panic_any instead
373
408
LL | std::panic::panic_any(v);
374
409
| ~~~~~~~~~~~~~~~~~~~~~
375
410
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
377
425
0 commit comments