mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
4698b366c4
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
127 lines
4.4 KiB
Text
127 lines
4.4 KiB
Text
error: `panic` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:8:5
|
|
|
|
|
LL | panic!();
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::panic` implied by `-D warnings`
|
|
|
|
error: `panic` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:9:5
|
|
|
|
|
LL | panic!("message");
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `panic` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:10:5
|
|
|
|
|
LL | panic!("{} {}", "panic with", "multiple arguments");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `todo` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:16:5
|
|
|
|
|
LL | todo!();
|
|
| ^^^^^^^^
|
|
|
|
|
= note: `-D clippy::todo` implied by `-D warnings`
|
|
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `todo` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:17:5
|
|
|
|
|
LL | todo!("message");
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `todo` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:18:5
|
|
|
|
|
LL | todo!("{} {}", "panic with", "multiple arguments");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `unimplemented` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:24:5
|
|
|
|
|
LL | unimplemented!();
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::unimplemented` implied by `-D warnings`
|
|
= note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `unimplemented` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:25:5
|
|
|
|
|
LL | unimplemented!("message");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `unimplemented` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:26:5
|
|
|
|
|
LL | unimplemented!("{} {}", "panic with", "multiple arguments");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: usage of the `unreachable!` macro
|
|
--> $DIR/panicking_macros.rs:32:5
|
|
|
|
|
LL | unreachable!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::unreachable` implied by `-D warnings`
|
|
= note: this error originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: usage of the `unreachable!` macro
|
|
--> $DIR/panicking_macros.rs:33:5
|
|
|
|
|
LL | unreachable!("message");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `$crate::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: usage of the `unreachable!` macro
|
|
--> $DIR/panicking_macros.rs:34:5
|
|
|
|
|
LL | unreachable!("{} {}", "panic with", "multiple arguments");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `panic` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:40:5
|
|
|
|
|
LL | panic!();
|
|
| ^^^^^^^^^
|
|
|
|
error: `todo` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:41:5
|
|
|
|
|
LL | todo!();
|
|
| ^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: `unimplemented` should not be present in production code
|
|
--> $DIR/panicking_macros.rs:42:5
|
|
|
|
|
LL | unimplemented!();
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: usage of the `unreachable!` macro
|
|
--> $DIR/panicking_macros.rs:43:5
|
|
|
|
|
LL | unreachable!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 16 previous errors
|
|
|