@@ -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,41 @@ 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:26: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:28: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:29: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:49:9
103137 |
104138LL | dbg!(2);
105139 | ^^^^^^^
@@ -110,7 +144,7 @@ LL | 2;
110144 | ~
111145
112146error: the `dbg!` macro is intended as a debugging tool
113- --> $DIR/dbg_macro.rs:47 :5
147+ --> $DIR/dbg_macro.rs:55 :5
114148 |
115149LL | dbg!(1);
116150 | ^^^^^^^
@@ -121,7 +155,7 @@ LL | 1;
121155 | ~
122156
123157error: the `dbg!` macro is intended as a debugging tool
124- --> $DIR/dbg_macro.rs:52 :5
158+ --> $DIR/dbg_macro.rs:60 :5
125159 |
126160LL | dbg!(1);
127161 | ^^^^^^^
@@ -132,7 +166,7 @@ LL | 1;
132166 | ~
133167
134168error: the `dbg!` macro is intended as a debugging tool
135- --> $DIR/dbg_macro.rs:58 :9
169+ --> $DIR/dbg_macro.rs:66 :9
136170 |
137171LL | dbg!(1);
138172 | ^^^^^^^
@@ -142,5 +176,5 @@ help: remove the invocation before committing it to a version control system
142176LL | 1;
143177 | ~
144178
145- error: aborting due to 13 previous errors
179+ error: aborting due to 16 previous errors
146180
0 commit comments