2019-10-16 17:43:26 +00:00
|
|
|
error: `panic` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:6:5
|
|
|
|
|
|
|
|
|
LL | panic!();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::panic` implied by `-D warnings`
|
|
|
|
|
2020-07-26 19:07:07 +00:00
|
|
|
error: `panic` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:7:5
|
|
|
|
|
|
|
|
|
LL | panic!("message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: `panic` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:8:5
|
|
|
|
|
|
|
|
|
LL | panic!("{} {}", "panic with", "multiple arguments");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2019-10-16 17:43:26 +00:00
|
|
|
error: `todo` should not be present in production code
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/panicking_macros.rs:14:5
|
2019-10-16 17:43:26 +00:00
|
|
|
|
|
|
|
|
LL | todo!();
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::todo` implied by `-D warnings`
|
|
|
|
|
2020-07-26 19:07:07 +00:00
|
|
|
error: `todo` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:15:5
|
|
|
|
|
|
|
|
|
LL | todo!("message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `todo` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:16:5
|
|
|
|
|
|
|
|
|
LL | todo!("{} {}", "panic with", "multiple arguments");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-10-16 17:43:26 +00:00
|
|
|
error: `unimplemented` should not be present in production code
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/panicking_macros.rs:22:5
|
2019-10-16 17:43:26 +00:00
|
|
|
|
|
|
|
|
LL | unimplemented!();
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unimplemented` implied by `-D warnings`
|
|
|
|
|
2020-07-26 19:07:07 +00:00
|
|
|
error: `unimplemented` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:23:5
|
|
|
|
|
|
|
|
|
LL | unimplemented!("message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `unimplemented` should not be present in production code
|
2019-10-16 17:43:26 +00:00
|
|
|
--> $DIR/panicking_macros.rs:24:5
|
|
|
|
|
|
2020-07-26 19:07:07 +00:00
|
|
|
LL | unimplemented!("{} {}", "panic with", "multiple arguments");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `unreachable` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:30:5
|
|
|
|
|
|
2019-10-16 17:43:26 +00:00
|
|
|
LL | unreachable!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unreachable` implied by `-D warnings`
|
|
|
|
|
2020-07-26 19:07:07 +00:00
|
|
|
error: `unreachable` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:31:5
|
|
|
|
|
|
|
|
|
LL | unreachable!("message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: `unreachable` should not be present in production code
|
|
|
|
--> $DIR/panicking_macros.rs:32:5
|
|
|
|
|
|
|
|
|
LL | unreachable!("{} {}", "panic with", "multiple arguments");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2019-10-16 17:43:26 +00:00
|
|
|
|