@@ -19,29 +19,47 @@ error: `panic` should not be present in production code
1919LL | panic!("{} {}", "panic with", "multiple arguments");
2020 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121
22- error: `todo ` should not be present in production code
22+ error: `panic ` should not be present in production code
2323 --> tests/ui/panicking_macros.rs:36:5
2424 |
25+ LL | panic!();
26+ | ^^^^^^^^
27+
28+ error: `panic` should not be present in production code
29+ --> tests/ui/panicking_macros.rs:39:5
30+ |
31+ LL | panic!("message");
32+ | ^^^^^^^^^^^^^^^^^
33+
34+ error: `panic` should not be present in production code
35+ --> tests/ui/panicking_macros.rs:42:5
36+ |
37+ LL | panic!("{} {}", "panic with", "multiple arguments");
38+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+
40+ error: `todo` should not be present in production code
41+ --> tests/ui/panicking_macros.rs:50:5
42+ |
2543LL | todo!();
2644 | ^^^^^^^
2745 |
2846 = note: `-D clippy::todo` implied by `-D warnings`
2947 = help: to override `-D warnings` add `#[allow(clippy::todo)]`
3048
3149error: `todo` should not be present in production code
32- --> tests/ui/panicking_macros.rs:39 :5
50+ --> tests/ui/panicking_macros.rs:53 :5
3351 |
3452LL | todo!("message");
3553 | ^^^^^^^^^^^^^^^^
3654
3755error: `todo` should not be present in production code
38- --> tests/ui/panicking_macros.rs:42 :5
56+ --> tests/ui/panicking_macros.rs:56 :5
3957 |
4058LL | todo!("{} {}", "panic with", "multiple arguments");
4159 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4260
4361error: `unimplemented` should not be present in production code
44- --> tests/ui/panicking_macros.rs:50 :5
62+ --> tests/ui/panicking_macros.rs:64 :5
4563 |
4664LL | unimplemented!();
4765 | ^^^^^^^^^^^^^^^^
@@ -50,19 +68,19 @@ LL | unimplemented!();
5068 = help: to override `-D warnings` add `#[allow(clippy::unimplemented)]`
5169
5270error: `unimplemented` should not be present in production code
53- --> tests/ui/panicking_macros.rs:53 :5
71+ --> tests/ui/panicking_macros.rs:67 :5
5472 |
5573LL | unimplemented!("message");
5674 | ^^^^^^^^^^^^^^^^^^^^^^^^^
5775
5876error: `unimplemented` should not be present in production code
59- --> tests/ui/panicking_macros.rs:56 :5
77+ --> tests/ui/panicking_macros.rs:70 :5
6078 |
6179LL | unimplemented!("{} {}", "panic with", "multiple arguments");
6280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6381
6482error: usage of the `unreachable!` macro
65- --> tests/ui/panicking_macros.rs:64 :5
83+ --> tests/ui/panicking_macros.rs:78 :5
6684 |
6785LL | unreachable!();
6886 | ^^^^^^^^^^^^^^
@@ -71,40 +89,40 @@ LL | unreachable!();
7189 = help: to override `-D warnings` add `#[allow(clippy::unreachable)]`
7290
7391error: usage of the `unreachable!` macro
74- --> tests/ui/panicking_macros.rs:67 :5
92+ --> tests/ui/panicking_macros.rs:81 :5
7593 |
7694LL | unreachable!("message");
7795 | ^^^^^^^^^^^^^^^^^^^^^^^
7896
7997error: usage of the `unreachable!` macro
80- --> tests/ui/panicking_macros.rs:70 :5
98+ --> tests/ui/panicking_macros.rs:84 :5
8199 |
82100LL | unreachable!("{} {}", "panic with", "multiple arguments");
83101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84102
85103error: `panic` should not be present in production code
86- --> tests/ui/panicking_macros.rs:78 :5
104+ --> tests/ui/panicking_macros.rs:92 :5
87105 |
88106LL | panic!();
89107 | ^^^^^^^^
90108
91109error: `todo` should not be present in production code
92- --> tests/ui/panicking_macros.rs:81 :5
110+ --> tests/ui/panicking_macros.rs:95 :5
93111 |
94112LL | todo!();
95113 | ^^^^^^^
96114
97115error: `unimplemented` should not be present in production code
98- --> tests/ui/panicking_macros.rs:84 :5
116+ --> tests/ui/panicking_macros.rs:98 :5
99117 |
100118LL | unimplemented!();
101119 | ^^^^^^^^^^^^^^^^
102120
103121error: usage of the `unreachable!` macro
104- --> tests/ui/panicking_macros.rs:87 :5
122+ --> tests/ui/panicking_macros.rs:101 :5
105123 |
106124LL | unreachable!();
107125 | ^^^^^^^^^^^^^^
108126
109- error: aborting due to 16 previous errors
127+ error: aborting due to 19 previous errors
110128
0 commit comments