panic!("{}") lint is broken
This commit is contained in:
parent
6d921b4734
commit
f32fab1c8f
1 changed files with 0 additions and 26 deletions
|
|
@ -1,26 +0,0 @@
|
|||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:8:16
|
||||
|
|
||||
8 | panic!("{}");
|
||||
| ^^^^
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/panic.rs:4:9
|
||||
|
|
||||
4 | #![deny(panic_params)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:10:16
|
||||
|
|
||||
10 | panic!("{:?}");
|
||||
| ^^^^^^
|
||||
|
||||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:12:23
|
||||
|
|
||||
12 | assert!(true, "here be missing values: {}");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue