@@ -19,29 +19,47 @@ error: `panic` should not be present in production code
19
19
LL | panic!("{} {}", "panic with", "multiple arguments");
20
20
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
21
22
- error: `todo ` should not be present in production code
22
+ error: `panic ` should not be present in production code
23
23
--> tests/ui/panicking_macros.rs:36:5
24
24
|
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
+ |
25
43
LL | todo!();
26
44
| ^^^^^^^
27
45
|
28
46
= note: `-D clippy::todo` implied by `-D warnings`
29
47
= help: to override `-D warnings` add `#[allow(clippy::todo)]`
30
48
31
49
error: `todo` should not be present in production code
32
- --> tests/ui/panicking_macros.rs:39 :5
50
+ --> tests/ui/panicking_macros.rs:53 :5
33
51
|
34
52
LL | todo!("message");
35
53
| ^^^^^^^^^^^^^^^^
36
54
37
55
error: `todo` should not be present in production code
38
- --> tests/ui/panicking_macros.rs:42 :5
56
+ --> tests/ui/panicking_macros.rs:56 :5
39
57
|
40
58
LL | todo!("{} {}", "panic with", "multiple arguments");
41
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
60
43
61
error: `unimplemented` should not be present in production code
44
- --> tests/ui/panicking_macros.rs:50 :5
62
+ --> tests/ui/panicking_macros.rs:64 :5
45
63
|
46
64
LL | unimplemented!();
47
65
| ^^^^^^^^^^^^^^^^
@@ -50,19 +68,19 @@ LL | unimplemented!();
50
68
= help: to override `-D warnings` add `#[allow(clippy::unimplemented)]`
51
69
52
70
error: `unimplemented` should not be present in production code
53
- --> tests/ui/panicking_macros.rs:53 :5
71
+ --> tests/ui/panicking_macros.rs:67 :5
54
72
|
55
73
LL | unimplemented!("message");
56
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^
57
75
58
76
error: `unimplemented` should not be present in production code
59
- --> tests/ui/panicking_macros.rs:56 :5
77
+ --> tests/ui/panicking_macros.rs:70 :5
60
78
|
61
79
LL | unimplemented!("{} {}", "panic with", "multiple arguments");
62
80
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63
81
64
82
error: usage of the `unreachable!` macro
65
- --> tests/ui/panicking_macros.rs:64 :5
83
+ --> tests/ui/panicking_macros.rs:78 :5
66
84
|
67
85
LL | unreachable!();
68
86
| ^^^^^^^^^^^^^^
@@ -71,40 +89,40 @@ LL | unreachable!();
71
89
= help: to override `-D warnings` add `#[allow(clippy::unreachable)]`
72
90
73
91
error: usage of the `unreachable!` macro
74
- --> tests/ui/panicking_macros.rs:67 :5
92
+ --> tests/ui/panicking_macros.rs:81 :5
75
93
|
76
94
LL | unreachable!("message");
77
95
| ^^^^^^^^^^^^^^^^^^^^^^^
78
96
79
97
error: usage of the `unreachable!` macro
80
- --> tests/ui/panicking_macros.rs:70 :5
98
+ --> tests/ui/panicking_macros.rs:84 :5
81
99
|
82
100
LL | unreachable!("{} {}", "panic with", "multiple arguments");
83
101
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
102
85
103
error: `panic` should not be present in production code
86
- --> tests/ui/panicking_macros.rs:78 :5
104
+ --> tests/ui/panicking_macros.rs:92 :5
87
105
|
88
106
LL | panic!();
89
107
| ^^^^^^^^
90
108
91
109
error: `todo` should not be present in production code
92
- --> tests/ui/panicking_macros.rs:81 :5
110
+ --> tests/ui/panicking_macros.rs:95 :5
93
111
|
94
112
LL | todo!();
95
113
| ^^^^^^^
96
114
97
115
error: `unimplemented` should not be present in production code
98
- --> tests/ui/panicking_macros.rs:84 :5
116
+ --> tests/ui/panicking_macros.rs:98 :5
99
117
|
100
118
LL | unimplemented!();
101
119
| ^^^^^^^^^^^^^^^^
102
120
103
121
error: usage of the `unreachable!` macro
104
- --> tests/ui/panicking_macros.rs:87 :5
122
+ --> tests/ui/panicking_macros.rs:101 :5
105
123
|
106
124
LL | unreachable!();
107
125
| ^^^^^^^^^^^^^^
108
126
109
- error: aborting due to 16 previous errors
127
+ error: aborting due to 19 previous errors
110
128
0 commit comments