@@ -11,7 +11,7 @@ LL | if let Some(n) = n.checked_sub(4) { n } else { n }
1111 | ~~~~~~~~~~~~~~~~
1212
1313error: the `dbg!` macro is intended as a debugging tool
14- --> $DIR/dbg_macro.rs:9 :8
14+ --> $DIR/dbg_macro.rs:10 :8
1515 |
1616LL | if dbg!(n <= 1) {
1717 | ^^^^^^^^^^^^
@@ -22,7 +22,7 @@ LL | if n <= 1 {
2222 | ~~~~~~
2323
2424error: the `dbg!` macro is intended as a debugging tool
25- --> $DIR/dbg_macro.rs:10 :9
25+ --> $DIR/dbg_macro.rs:11 :9
2626 |
2727LL | dbg!(1)
2828 | ^^^^^^^
3333 |
3434
3535error: the `dbg!` macro is intended as a debugging tool
36- --> $DIR/dbg_macro.rs:12 :9
36+ --> $DIR/dbg_macro.rs:13 :9
3737 |
3838LL | dbg!(n * factorial(n - 1))
3939 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,7 +44,7 @@ LL | n * factorial(n - 1)
4444 |
4545
4646error: the `dbg!` macro is intended as a debugging tool
47- --> $DIR/dbg_macro.rs:17 :5
47+ --> $DIR/dbg_macro.rs:18 :5
4848 |
4949LL | dbg!(42);
5050 | ^^^^^^^^
@@ -55,7 +55,7 @@ LL | 42;
5555 | ~~
5656
5757error: the `dbg!` macro is intended as a debugging tool
58- --> $DIR/dbg_macro.rs:18 :5
58+ --> $DIR/dbg_macro.rs:19 :5
5959 |
6060LL | dbg!(dbg!(dbg!(42)));
6161 | ^^^^^^^^^^^^^^^^^^^^
@@ -66,7 +66,7 @@ LL | dbg!(dbg!(42));
6666 | ~~~~~~~~~~~~~~
6767
6868error: the `dbg!` macro is intended as a debugging tool
69- --> $DIR/dbg_macro.rs:19 :14
69+ --> $DIR/dbg_macro.rs:20 :14
7070 |
7171LL | foo(3) + dbg!(factorial(4));
7272 | ^^^^^^^^^^^^^^^^^^
@@ -77,7 +77,7 @@ LL | foo(3) + factorial(4);
7777 | ~~~~~~~~~~~~
7878
7979error: the `dbg!` macro is intended as a debugging tool
80- --> $DIR/dbg_macro.rs:20 :5
80+ --> $DIR/dbg_macro.rs:21 :5
8181 |
8282LL | dbg!(1, 2, dbg!(3, 4));
8383 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -88,7 +88,7 @@ LL | (1, 2, dbg!(3, 4));
8888 | ~~~~~~~~~~~~~~~~~~
8989
9090error: the `dbg!` macro is intended as a debugging tool
91- --> $DIR/dbg_macro.rs:21 :5
91+ --> $DIR/dbg_macro.rs:22 :5
9292 |
9393LL | dbg!(1, 2, 3, 4, 5);
9494 | ^^^^^^^^^^^^^^^^^^^
@@ -99,7 +99,63 @@ LL | (1, 2, 3, 4, 5);
9999 | ~~~~~~~~~~~~~~~
100100
101101error: the `dbg!` macro is intended as a debugging tool
102- --> $DIR/dbg_macro.rs:41:9
102+ --> $DIR/dbg_macro.rs:42:5
103+ |
104+ LL | dbg!();
105+ | ^^^^^^^
106+ |
107+ help: remove the invocation before committing it to a version control system
108+ |
109+ LL - dbg!();
110+ LL +
111+ |
112+
113+ error: the `dbg!` macro is intended as a debugging tool
114+ --> $DIR/dbg_macro.rs:44:13
115+ |
116+ LL | let _ = dbg!();
117+ | ^^^^^^
118+ |
119+ help: remove the invocation before committing it to a version control system
120+ |
121+ LL | let _ = ();
122+ | ~~
123+
124+ error: the `dbg!` macro is intended as a debugging tool
125+ --> $DIR/dbg_macro.rs:45:9
126+ |
127+ LL | bar(dbg!());
128+ | ^^^^^^
129+ |
130+ help: remove the invocation before committing it to a version control system
131+ |
132+ LL | bar(());
133+ | ~~
134+
135+ error: the `dbg!` macro is intended as a debugging tool
136+ --> $DIR/dbg_macro.rs:46:10
137+ |
138+ LL | foo!(dbg!());
139+ | ^^^^^^
140+ |
141+ help: remove the invocation before committing it to a version control system
142+ |
143+ LL | foo!(());
144+ | ~~
145+
146+ error: the `dbg!` macro is intended as a debugging tool
147+ --> $DIR/dbg_macro.rs:47:16
148+ |
149+ LL | foo2!(foo!(dbg!()));
150+ | ^^^^^^
151+ |
152+ help: remove the invocation before committing it to a version control system
153+ |
154+ LL | foo2!(foo!(()));
155+ | ~~
156+
157+ error: the `dbg!` macro is intended as a debugging tool
158+ --> $DIR/dbg_macro.rs:68:9
103159 |
104160LL | dbg!(2);
105161 | ^^^^^^^
@@ -110,7 +166,7 @@ LL | 2;
110166 | ~
111167
112168error: the `dbg!` macro is intended as a debugging tool
113- --> $DIR/dbg_macro.rs:47 :5
169+ --> $DIR/dbg_macro.rs:74 :5
114170 |
115171LL | dbg!(1);
116172 | ^^^^^^^
@@ -121,7 +177,7 @@ LL | 1;
121177 | ~
122178
123179error: the `dbg!` macro is intended as a debugging tool
124- --> $DIR/dbg_macro.rs:52 :5
180+ --> $DIR/dbg_macro.rs:79 :5
125181 |
126182LL | dbg!(1);
127183 | ^^^^^^^
@@ -132,7 +188,7 @@ LL | 1;
132188 | ~
133189
134190error: the `dbg!` macro is intended as a debugging tool
135- --> $DIR/dbg_macro.rs:58 :9
191+ --> $DIR/dbg_macro.rs:85 :9
136192 |
137193LL | dbg!(1);
138194 | ^^^^^^^
@@ -142,5 +198,5 @@ help: remove the invocation before committing it to a version control system
142198LL | 1;
143199 | ~
144200
145- error: aborting due to 13 previous errors
201+ error: aborting due to 18 previous errors
146202
0 commit comments