mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 01:24:05 +00:00
17 lines
505 B
Text
17 lines
505 B
Text
error: `panic` should not be present in production code
|
|
--> tests/ui-toml/panic/panic.rs:12:14
|
|
|
|
|
LL | _ => panic!(""),
|
|
| ^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::panic` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::panic)]`
|
|
|
|
error: `panic_any` should not be present in production code
|
|
--> tests/ui-toml/panic/panic.rs:17:5
|
|
|
|
|
LL | panic_any("should lint")
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|