1
1
error: the `dbg!` macro is intended as a debugging tool
2
- --> $DIR/dbg_macro .rs:6:22
2
+ --> $DIR/auxiliary/submodule .rs:2:5
3
3
|
4
- LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
5
- | ^^^^^^^^^^^^^^^ ^^^^^^^
4
+ LL | dbg!();
5
+ | ^^^^^^^
6
6
|
7
7
= note: `-D clippy::dbg-macro` implied by `-D warnings`
8
8
= help: to override `-D warnings` add `#[allow(clippy::dbg_macro)]`
9
9
help: remove the invocation before committing it to a version control system
10
10
|
11
+ LL - dbg!();
12
+ LL +
13
+ |
14
+
15
+ error: the `dbg!` macro is intended as a debugging tool
16
+ --> $DIR/dbg_macro.rs:9:22
17
+ |
18
+ LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
19
+ | ^^^^^^^^^^^^^^^^^^^^^^
20
+ |
21
+ help: remove the invocation before committing it to a version control system
22
+ |
11
23
LL | if let Some(n) = n.checked_sub(4) { n } else { n }
12
24
| ~~~~~~~~~~~~~~~~
13
25
14
26
error: the `dbg!` macro is intended as a debugging tool
15
- --> $DIR/dbg_macro.rs:13 :8
27
+ --> $DIR/dbg_macro.rs:15 :8
16
28
|
17
29
LL | if dbg!(n <= 1) {
18
30
| ^^^^^^^^^^^^
@@ -23,7 +35,7 @@ LL | if n <= 1 {
23
35
| ~~~~~~
24
36
25
37
error: the `dbg!` macro is intended as a debugging tool
26
- --> $DIR/dbg_macro.rs:15 :9
38
+ --> $DIR/dbg_macro.rs:17 :9
27
39
|
28
40
LL | dbg!(1)
29
41
| ^^^^^^^
34
46
|
35
47
36
48
error: the `dbg!` macro is intended as a debugging tool
37
- --> $DIR/dbg_macro.rs:18 :9
49
+ --> $DIR/dbg_macro.rs:20 :9
38
50
|
39
51
LL | dbg!(n * factorial(n - 1))
40
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +57,7 @@ LL | n * factorial(n - 1)
45
57
|
46
58
47
59
error: the `dbg!` macro is intended as a debugging tool
48
- --> $DIR/dbg_macro.rs:24 :5
60
+ --> $DIR/dbg_macro.rs:26 :5
49
61
|
50
62
LL | dbg!(42);
51
63
| ^^^^^^^^
@@ -56,7 +68,7 @@ LL | 42;
56
68
| ~~
57
69
58
70
error: the `dbg!` macro is intended as a debugging tool
59
- --> $DIR/dbg_macro.rs:26 :5
71
+ --> $DIR/dbg_macro.rs:28 :5
60
72
|
61
73
LL | dbg!(dbg!(dbg!(42)));
62
74
| ^^^^^^^^^^^^^^^^^^^^
@@ -67,7 +79,7 @@ LL | dbg!(dbg!(42));
67
79
| ~~~~~~~~~~~~~~
68
80
69
81
error: the `dbg!` macro is intended as a debugging tool
70
- --> $DIR/dbg_macro.rs:28 :14
82
+ --> $DIR/dbg_macro.rs:30 :14
71
83
|
72
84
LL | foo(3) + dbg!(factorial(4));
73
85
| ^^^^^^^^^^^^^^^^^^
@@ -78,7 +90,7 @@ LL | foo(3) + factorial(4);
78
90
| ~~~~~~~~~~~~
79
91
80
92
error: the `dbg!` macro is intended as a debugging tool
81
- --> $DIR/dbg_macro.rs:30 :5
93
+ --> $DIR/dbg_macro.rs:32 :5
82
94
|
83
95
LL | dbg!(1, 2, dbg!(3, 4));
84
96
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -89,7 +101,7 @@ LL | (1, 2, dbg!(3, 4));
89
101
| ~~~~~~~~~~~~~~~~~~
90
102
91
103
error: the `dbg!` macro is intended as a debugging tool
92
- --> $DIR/dbg_macro.rs:32 :5
104
+ --> $DIR/dbg_macro.rs:34 :5
93
105
|
94
106
LL | dbg!(1, 2, 3, 4, 5);
95
107
| ^^^^^^^^^^^^^^^^^^^
@@ -100,7 +112,7 @@ LL | (1, 2, 3, 4, 5);
100
112
| ~~~~~~~~~~~~~~~
101
113
102
114
error: the `dbg!` macro is intended as a debugging tool
103
- --> $DIR/dbg_macro.rs:53 :5
115
+ --> $DIR/dbg_macro.rs:55 :5
104
116
|
105
117
LL | dbg!();
106
118
| ^^^^^^^
112
124
|
113
125
114
126
error: the `dbg!` macro is intended as a debugging tool
115
- --> $DIR/dbg_macro.rs:56 :13
127
+ --> $DIR/dbg_macro.rs:58 :13
116
128
|
117
129
LL | let _ = dbg!();
118
130
| ^^^^^^
@@ -123,7 +135,7 @@ LL | let _ = ();
123
135
| ~~
124
136
125
137
error: the `dbg!` macro is intended as a debugging tool
126
- --> $DIR/dbg_macro.rs:58 :9
138
+ --> $DIR/dbg_macro.rs:60 :9
127
139
|
128
140
LL | bar(dbg!());
129
141
| ^^^^^^
@@ -134,7 +146,7 @@ LL | bar(());
134
146
| ~~
135
147
136
148
error: the `dbg!` macro is intended as a debugging tool
137
- --> $DIR/dbg_macro.rs:60 :10
149
+ --> $DIR/dbg_macro.rs:62 :10
138
150
|
139
151
LL | foo!(dbg!());
140
152
| ^^^^^^
@@ -145,7 +157,7 @@ LL | foo!(());
145
157
| ~~
146
158
147
159
error: the `dbg!` macro is intended as a debugging tool
148
- --> $DIR/dbg_macro.rs:62 :16
160
+ --> $DIR/dbg_macro.rs:64 :16
149
161
|
150
162
LL | foo2!(foo!(dbg!()));
151
163
| ^^^^^^
@@ -156,7 +168,7 @@ LL | foo2!(foo!(()));
156
168
| ~~
157
169
158
170
error: the `dbg!` macro is intended as a debugging tool
159
- --> $DIR/dbg_macro.rs:84 :9
171
+ --> $DIR/dbg_macro.rs:86 :9
160
172
|
161
173
LL | dbg!(2);
162
174
| ^^^^^^^
@@ -167,7 +179,7 @@ LL | 2;
167
179
| ~
168
180
169
181
error: the `dbg!` macro is intended as a debugging tool
170
- --> $DIR/dbg_macro.rs:91 :5
182
+ --> $DIR/dbg_macro.rs:93 :5
171
183
|
172
184
LL | dbg!(1);
173
185
| ^^^^^^^
@@ -178,7 +190,7 @@ LL | 1;
178
190
| ~
179
191
180
192
error: the `dbg!` macro is intended as a debugging tool
181
- --> $DIR/dbg_macro.rs:97 :5
193
+ --> $DIR/dbg_macro.rs:99 :5
182
194
|
183
195
LL | dbg!(1);
184
196
| ^^^^^^^
@@ -189,7 +201,7 @@ LL | 1;
189
201
| ~
190
202
191
203
error: the `dbg!` macro is intended as a debugging tool
192
- --> $DIR/dbg_macro.rs:104 :9
204
+ --> $DIR/dbg_macro.rs:106 :9
193
205
|
194
206
LL | dbg!(1);
195
207
| ^^^^^^^
@@ -199,5 +211,5 @@ help: remove the invocation before committing it to a version control system
199
211
LL | 1;
200
212
| ~
201
213
202
- error: aborting due to 18 previous errors
214
+ error: aborting due to 19 previous errors
203
215
0 commit comments