11error: `panic` should not be present in production code
2- --> tests/ui/panicking_macros.rs:8:9
2+ --> tests/ui/panicking_macros.rs:22:5
33 |
4- LL | panic!("A balanced diet means a cupcake in each hand" );
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
4+ LL | panic!();
5+ | ^^^^^^^^
66 |
77 = note: `-D clippy::panic` implied by `-D warnings`
88 = help: to override `-D warnings` add `#[allow(clippy::panic)]`
99
1010error: `panic` should not be present in production code
11- --> tests/ui/panicking_macros.rs:16:13
11+ --> tests/ui/panicking_macros.rs:25:5
1212 |
13- LL | panic!("When nothing goes right, go left")
14- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+ LL | panic!("message");
14+ | ^^^^^^^^^^^^^^^^^
15+
16+ error: `panic` should not be present in production code
17+ --> tests/ui/panicking_macros.rs:28:5
18+ |
19+ LL | panic!("{} {}", "panic with", "multiple arguments");
20+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1521
1622error: `panic` should not be present in production code
17- --> tests/ui/panicking_macros.rs:24 :5
23+ --> tests/ui/panicking_macros.rs:36 :5
1824 |
1925LL | panic!();
2026 | ^^^^^^^^
2127
2228error: `panic` should not be present in production code
23- --> tests/ui/panicking_macros.rs:27 :5
29+ --> tests/ui/panicking_macros.rs:39 :5
2430 |
2531LL | panic!("message");
2632 | ^^^^^^^^^^^^^^^^^
2733
2834error: `panic` should not be present in production code
29- --> tests/ui/panicking_macros.rs:30 :5
35+ --> tests/ui/panicking_macros.rs:42 :5
3036 |
3137LL | panic!("{} {}", "panic with", "multiple arguments");
3238 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3339
3440error: `todo` should not be present in production code
35- --> tests/ui/panicking_macros.rs:38 :5
41+ --> tests/ui/panicking_macros.rs:50 :5
3642 |
3743LL | todo!();
3844 | ^^^^^^^
@@ -41,19 +47,19 @@ LL | todo!();
4147 = help: to override `-D warnings` add `#[allow(clippy::todo)]`
4248
4349error: `todo` should not be present in production code
44- --> tests/ui/panicking_macros.rs:41 :5
50+ --> tests/ui/panicking_macros.rs:53 :5
4551 |
4652LL | todo!("message");
4753 | ^^^^^^^^^^^^^^^^
4854
4955error: `todo` should not be present in production code
50- --> tests/ui/panicking_macros.rs:44 :5
56+ --> tests/ui/panicking_macros.rs:56 :5
5157 |
5258LL | todo!("{} {}", "panic with", "multiple arguments");
5359 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5460
5561error: `unimplemented` should not be present in production code
56- --> tests/ui/panicking_macros.rs:52 :5
62+ --> tests/ui/panicking_macros.rs:64 :5
5763 |
5864LL | unimplemented!();
5965 | ^^^^^^^^^^^^^^^^
@@ -62,19 +68,19 @@ LL | unimplemented!();
6268 = help: to override `-D warnings` add `#[allow(clippy::unimplemented)]`
6369
6470error: `unimplemented` should not be present in production code
65- --> tests/ui/panicking_macros.rs:55 :5
71+ --> tests/ui/panicking_macros.rs:67 :5
6672 |
6773LL | unimplemented!("message");
6874 | ^^^^^^^^^^^^^^^^^^^^^^^^^
6975
7076error: `unimplemented` should not be present in production code
71- --> tests/ui/panicking_macros.rs:58 :5
77+ --> tests/ui/panicking_macros.rs:70 :5
7278 |
7379LL | unimplemented!("{} {}", "panic with", "multiple arguments");
7480 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7581
7682error: usage of the `unreachable!` macro
77- --> tests/ui/panicking_macros.rs:66 :5
83+ --> tests/ui/panicking_macros.rs:78 :5
7884 |
7985LL | unreachable!();
8086 | ^^^^^^^^^^^^^^
@@ -83,40 +89,40 @@ LL | unreachable!();
8389 = help: to override `-D warnings` add `#[allow(clippy::unreachable)]`
8490
8591error: usage of the `unreachable!` macro
86- --> tests/ui/panicking_macros.rs:69 :5
92+ --> tests/ui/panicking_macros.rs:81 :5
8793 |
8894LL | unreachable!("message");
8995 | ^^^^^^^^^^^^^^^^^^^^^^^
9096
9197error: usage of the `unreachable!` macro
92- --> tests/ui/panicking_macros.rs:72 :5
98+ --> tests/ui/panicking_macros.rs:84 :5
9399 |
94100LL | unreachable!("{} {}", "panic with", "multiple arguments");
95101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96102
97103error: `panic` should not be present in production code
98- --> tests/ui/panicking_macros.rs:80 :5
104+ --> tests/ui/panicking_macros.rs:92 :5
99105 |
100106LL | panic!();
101107 | ^^^^^^^^
102108
103109error: `todo` should not be present in production code
104- --> tests/ui/panicking_macros.rs:83 :5
110+ --> tests/ui/panicking_macros.rs:95 :5
105111 |
106112LL | todo!();
107113 | ^^^^^^^
108114
109115error: `unimplemented` should not be present in production code
110- --> tests/ui/panicking_macros.rs:86 :5
116+ --> tests/ui/panicking_macros.rs:98 :5
111117 |
112118LL | unimplemented!();
113119 | ^^^^^^^^^^^^^^^^
114120
115121error: usage of the `unreachable!` macro
116- --> tests/ui/panicking_macros.rs:89 :5
122+ --> tests/ui/panicking_macros.rs:101 :5
117123 |
118124LL | unreachable!();
119125 | ^^^^^^^^^^^^^^
120126
121- error: aborting due to 18 previous errors
127+ error: aborting due to 19 previous errors
122128
0 commit comments