@@ -6,29 +6,83 @@ LL | panic!();
66 |
77 = note: `-D clippy::panic` implied by `-D warnings`
88
9+ error: `panic` should not be present in production code
10+ --> $DIR/panicking_macros.rs:7:5
11+ |
12+ LL | panic!("message");
13+ | ^^^^^^^^^^^^^^^^^^
14+ |
15+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16+
17+ error: `panic` should not be present in production code
18+ --> $DIR/panicking_macros.rs:8:5
19+ |
20+ LL | panic!("{} {}", "panic with", "multiple arguments");
21+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+ |
23+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24+
925error: `todo` should not be present in production code
10- --> $DIR/panicking_macros.rs:12 :5
26+ --> $DIR/panicking_macros.rs:14 :5
1127 |
1228LL | todo!();
1329 | ^^^^^^^^
1430 |
1531 = note: `-D clippy::todo` implied by `-D warnings`
1632
33+ error: `todo` should not be present in production code
34+ --> $DIR/panicking_macros.rs:15:5
35+ |
36+ LL | todo!("message");
37+ | ^^^^^^^^^^^^^^^^^
38+
39+ error: `todo` should not be present in production code
40+ --> $DIR/panicking_macros.rs:16:5
41+ |
42+ LL | todo!("{} {}", "panic with", "multiple arguments");
43+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44+
1745error: `unimplemented` should not be present in production code
18- --> $DIR/panicking_macros.rs:18 :5
46+ --> $DIR/panicking_macros.rs:22 :5
1947 |
2048LL | unimplemented!();
2149 | ^^^^^^^^^^^^^^^^^
2250 |
2351 = note: `-D clippy::unimplemented` implied by `-D warnings`
2452
25- error: `unreachable` should not be present in production code
53+ error: `unimplemented` should not be present in production code
54+ --> $DIR/panicking_macros.rs:23:5
55+ |
56+ LL | unimplemented!("message");
57+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
58+
59+ error: `unimplemented` should not be present in production code
2660 --> $DIR/panicking_macros.rs:24:5
2761 |
62+ LL | unimplemented!("{} {}", "panic with", "multiple arguments");
63+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64+
65+ error: `unreachable` should not be present in production code
66+ --> $DIR/panicking_macros.rs:30:5
67+ |
2868LL | unreachable!();
2969 | ^^^^^^^^^^^^^^^
3070 |
3171 = note: `-D clippy::unreachable` implied by `-D warnings`
3272
33- error: aborting due to 4 previous errors
73+ error: `unreachable` should not be present in production code
74+ --> $DIR/panicking_macros.rs:31:5
75+ |
76+ LL | unreachable!("message");
77+ | ^^^^^^^^^^^^^^^^^^^^^^^^
78+ |
79+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
80+
81+ error: `unreachable` should not be present in production code
82+ --> $DIR/panicking_macros.rs:32:5
83+ |
84+ LL | unreachable!("{} {}", "panic with", "multiple arguments");
85+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86+
87+ error: aborting due to 12 previous errors
3488
0 commit comments