mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
panic!("{}") lint is broken
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user