11error: the `dbg!` macro is intended as a debugging tool
2- --> $DIR/dbg_macro .rs:6:22
2+ --> $DIR/auxiliary/submodule .rs:2:5
33 |
4- LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
5- | ^^^^^^^^^^^^^^^ ^^^^^^^
4+ LL | dbg!();
5+ | ^^^^^^^
66 |
77 = note: `-D clippy::dbg-macro` implied by `-D warnings`
88 = help: to override `-D warnings` add `#[allow(clippy::dbg_macro)]`
99help: remove the invocation before committing it to a version control system
1010 |
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+ |
1123LL | if let Some(n) = n.checked_sub(4) { n } else { n }
1224 | ~~~~~~~~~~~~~~~~
1325
1426error: the `dbg!` macro is intended as a debugging tool
15- --> $DIR/dbg_macro.rs:13 :8
27+ --> $DIR/dbg_macro.rs:15 :8
1628 |
1729LL | if dbg!(n <= 1) {
1830 | ^^^^^^^^^^^^
@@ -23,7 +35,7 @@ LL | if n <= 1 {
2335 | ~~~~~~
2436
2537error: the `dbg!` macro is intended as a debugging tool
26- --> $DIR/dbg_macro.rs:15 :9
38+ --> $DIR/dbg_macro.rs:17 :9
2739 |
2840LL | dbg!(1)
2941 | ^^^^^^^
3446 |
3547
3648error: the `dbg!` macro is intended as a debugging tool
37- --> $DIR/dbg_macro.rs:18 :9
49+ --> $DIR/dbg_macro.rs:20 :9
3850 |
3951LL | dbg!(n * factorial(n - 1))
4052 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +57,7 @@ LL | n * factorial(n - 1)
4557 |
4658
4759error: the `dbg!` macro is intended as a debugging tool
48- --> $DIR/dbg_macro.rs:24 :5
60+ --> $DIR/dbg_macro.rs:26 :5
4961 |
5062LL | dbg!(42);
5163 | ^^^^^^^^
@@ -56,7 +68,7 @@ LL | 42;
5668 | ~~
5769
5870error: the `dbg!` macro is intended as a debugging tool
59- --> $DIR/dbg_macro.rs:26 :5
71+ --> $DIR/dbg_macro.rs:28 :5
6072 |
6173LL | dbg!(dbg!(dbg!(42)));
6274 | ^^^^^^^^^^^^^^^^^^^^
@@ -67,7 +79,7 @@ LL | dbg!(dbg!(42));
6779 | ~~~~~~~~~~~~~~
6880
6981error: the `dbg!` macro is intended as a debugging tool
70- --> $DIR/dbg_macro.rs:28 :14
82+ --> $DIR/dbg_macro.rs:30 :14
7183 |
7284LL | foo(3) + dbg!(factorial(4));
7385 | ^^^^^^^^^^^^^^^^^^
@@ -78,7 +90,7 @@ LL | foo(3) + factorial(4);
7890 | ~~~~~~~~~~~~
7991
8092error: the `dbg!` macro is intended as a debugging tool
81- --> $DIR/dbg_macro.rs:30 :5
93+ --> $DIR/dbg_macro.rs:32 :5
8294 |
8395LL | dbg!(1, 2, dbg!(3, 4));
8496 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -89,7 +101,7 @@ LL | (1, 2, dbg!(3, 4));
89101 | ~~~~~~~~~~~~~~~~~~
90102
91103error: the `dbg!` macro is intended as a debugging tool
92- --> $DIR/dbg_macro.rs:32 :5
104+ --> $DIR/dbg_macro.rs:34 :5
93105 |
94106LL | dbg!(1, 2, 3, 4, 5);
95107 | ^^^^^^^^^^^^^^^^^^^
@@ -100,7 +112,7 @@ LL | (1, 2, 3, 4, 5);
100112 | ~~~~~~~~~~~~~~~
101113
102114error: the `dbg!` macro is intended as a debugging tool
103- --> $DIR/dbg_macro.rs:53 :5
115+ --> $DIR/dbg_macro.rs:55 :5
104116 |
105117LL | dbg!();
106118 | ^^^^^^^
112124 |
113125
114126error: the `dbg!` macro is intended as a debugging tool
115- --> $DIR/dbg_macro.rs:56 :13
127+ --> $DIR/dbg_macro.rs:58 :13
116128 |
117129LL | let _ = dbg!();
118130 | ^^^^^^
@@ -123,7 +135,7 @@ LL | let _ = ();
123135 | ~~
124136
125137error: the `dbg!` macro is intended as a debugging tool
126- --> $DIR/dbg_macro.rs:58 :9
138+ --> $DIR/dbg_macro.rs:60 :9
127139 |
128140LL | bar(dbg!());
129141 | ^^^^^^
@@ -134,7 +146,7 @@ LL | bar(());
134146 | ~~
135147
136148error: the `dbg!` macro is intended as a debugging tool
137- --> $DIR/dbg_macro.rs:60 :10
149+ --> $DIR/dbg_macro.rs:62 :10
138150 |
139151LL | foo!(dbg!());
140152 | ^^^^^^
@@ -145,7 +157,7 @@ LL | foo!(());
145157 | ~~
146158
147159error: the `dbg!` macro is intended as a debugging tool
148- --> $DIR/dbg_macro.rs:62 :16
160+ --> $DIR/dbg_macro.rs:64 :16
149161 |
150162LL | foo2!(foo!(dbg!()));
151163 | ^^^^^^
@@ -156,7 +168,7 @@ LL | foo2!(foo!(()));
156168 | ~~
157169
158170error: the `dbg!` macro is intended as a debugging tool
159- --> $DIR/dbg_macro.rs:84 :9
171+ --> $DIR/dbg_macro.rs:86 :9
160172 |
161173LL | dbg!(2);
162174 | ^^^^^^^
@@ -167,7 +179,7 @@ LL | 2;
167179 | ~
168180
169181error: the `dbg!` macro is intended as a debugging tool
170- --> $DIR/dbg_macro.rs:91 :5
182+ --> $DIR/dbg_macro.rs:93 :5
171183 |
172184LL | dbg!(1);
173185 | ^^^^^^^
@@ -178,7 +190,7 @@ LL | 1;
178190 | ~
179191
180192error: the `dbg!` macro is intended as a debugging tool
181- --> $DIR/dbg_macro.rs:97 :5
193+ --> $DIR/dbg_macro.rs:99 :5
182194 |
183195LL | dbg!(1);
184196 | ^^^^^^^
@@ -189,7 +201,7 @@ LL | 1;
189201 | ~
190202
191203error: the `dbg!` macro is intended as a debugging tool
192- --> $DIR/dbg_macro.rs:104 :9
204+ --> $DIR/dbg_macro.rs:106 :9
193205 |
194206LL | dbg!(1);
195207 | ^^^^^^^
@@ -199,5 +211,5 @@ help: remove the invocation before committing it to a version control system
199211LL | 1;
200212 | ~
201213
202- error: aborting due to 18 previous errors
214+ error: aborting due to 19 previous errors
203215
0 commit comments