@@ -6,29 +6,83 @@ LL | panic!();
6
6
|
7
7
= note: `-D clippy::panic` implied by `-D warnings`
8
8
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
+
9
25
error: `todo` should not be present in production code
10
- --> $DIR/panicking_macros.rs:12 :5
26
+ --> $DIR/panicking_macros.rs:14 :5
11
27
|
12
28
LL | todo!();
13
29
| ^^^^^^^^
14
30
|
15
31
= note: `-D clippy::todo` implied by `-D warnings`
16
32
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
+
17
45
error: `unimplemented` should not be present in production code
18
- --> $DIR/panicking_macros.rs:18 :5
46
+ --> $DIR/panicking_macros.rs:22 :5
19
47
|
20
48
LL | unimplemented!();
21
49
| ^^^^^^^^^^^^^^^^^
22
50
|
23
51
= note: `-D clippy::unimplemented` implied by `-D warnings`
24
52
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
26
60
--> $DIR/panicking_macros.rs:24:5
27
61
|
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
+ |
28
68
LL | unreachable!();
29
69
| ^^^^^^^^^^^^^^^
30
70
|
31
71
= note: `-D clippy::unreachable` implied by `-D warnings`
32
72
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
34
88
0 commit comments