@@ -11,7 +11,7 @@ LL | if let Some(n) = n.checked_sub(4) { n } else { n }
11
11
| ~~~~~~~~~~~~~~~~
12
12
13
13
error: the `dbg!` macro is intended as a debugging tool
14
- --> $DIR/dbg_macro.rs:9 :8
14
+ --> $DIR/dbg_macro.rs:10 :8
15
15
|
16
16
LL | if dbg!(n <= 1) {
17
17
| ^^^^^^^^^^^^
@@ -22,7 +22,7 @@ LL | if n <= 1 {
22
22
| ~~~~~~
23
23
24
24
error: the `dbg!` macro is intended as a debugging tool
25
- --> $DIR/dbg_macro.rs:10 :9
25
+ --> $DIR/dbg_macro.rs:11 :9
26
26
|
27
27
LL | dbg!(1)
28
28
| ^^^^^^^
33
33
|
34
34
35
35
error: the `dbg!` macro is intended as a debugging tool
36
- --> $DIR/dbg_macro.rs:12 :9
36
+ --> $DIR/dbg_macro.rs:13 :9
37
37
|
38
38
LL | dbg!(n * factorial(n - 1))
39
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,7 +44,7 @@ LL | n * factorial(n - 1)
44
44
|
45
45
46
46
error: the `dbg!` macro is intended as a debugging tool
47
- --> $DIR/dbg_macro.rs:17 :5
47
+ --> $DIR/dbg_macro.rs:18 :5
48
48
|
49
49
LL | dbg!(42);
50
50
| ^^^^^^^^
@@ -55,7 +55,7 @@ LL | 42;
55
55
| ~~
56
56
57
57
error: the `dbg!` macro is intended as a debugging tool
58
- --> $DIR/dbg_macro.rs:18 :5
58
+ --> $DIR/dbg_macro.rs:19 :5
59
59
|
60
60
LL | dbg!(dbg!(dbg!(42)));
61
61
| ^^^^^^^^^^^^^^^^^^^^
@@ -66,7 +66,7 @@ LL | dbg!(dbg!(42));
66
66
| ~~~~~~~~~~~~~~
67
67
68
68
error: the `dbg!` macro is intended as a debugging tool
69
- --> $DIR/dbg_macro.rs:19 :14
69
+ --> $DIR/dbg_macro.rs:20 :14
70
70
|
71
71
LL | foo(3) + dbg!(factorial(4));
72
72
| ^^^^^^^^^^^^^^^^^^
@@ -77,7 +77,7 @@ LL | foo(3) + factorial(4);
77
77
| ~~~~~~~~~~~~
78
78
79
79
error: the `dbg!` macro is intended as a debugging tool
80
- --> $DIR/dbg_macro.rs:20 :5
80
+ --> $DIR/dbg_macro.rs:21 :5
81
81
|
82
82
LL | dbg!(1, 2, dbg!(3, 4));
83
83
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -88,7 +88,7 @@ LL | (1, 2, dbg!(3, 4));
88
88
| ~~~~~~~~~~~~~~~~~~
89
89
90
90
error: the `dbg!` macro is intended as a debugging tool
91
- --> $DIR/dbg_macro.rs:21 :5
91
+ --> $DIR/dbg_macro.rs:22 :5
92
92
|
93
93
LL | dbg!(1, 2, 3, 4, 5);
94
94
| ^^^^^^^^^^^^^^^^^^^
@@ -99,7 +99,63 @@ LL | (1, 2, 3, 4, 5);
99
99
| ~~~~~~~~~~~~~~~
100
100
101
101
error: 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
103
159
|
104
160
LL | dbg!(2);
105
161
| ^^^^^^^
@@ -110,7 +166,7 @@ LL | 2;
110
166
| ~
111
167
112
168
error: the `dbg!` macro is intended as a debugging tool
113
- --> $DIR/dbg_macro.rs:47 :5
169
+ --> $DIR/dbg_macro.rs:74 :5
114
170
|
115
171
LL | dbg!(1);
116
172
| ^^^^^^^
@@ -121,7 +177,7 @@ LL | 1;
121
177
| ~
122
178
123
179
error: the `dbg!` macro is intended as a debugging tool
124
- --> $DIR/dbg_macro.rs:52 :5
180
+ --> $DIR/dbg_macro.rs:79 :5
125
181
|
126
182
LL | dbg!(1);
127
183
| ^^^^^^^
@@ -132,7 +188,7 @@ LL | 1;
132
188
| ~
133
189
134
190
error: the `dbg!` macro is intended as a debugging tool
135
- --> $DIR/dbg_macro.rs:58 :9
191
+ --> $DIR/dbg_macro.rs:85 :9
136
192
|
137
193
LL | dbg!(1);
138
194
| ^^^^^^^
@@ -142,5 +198,5 @@ help: remove the invocation before committing it to a version control system
142
198
LL | 1;
143
199
| ~
144
200
145
- error: aborting due to 13 previous errors
201
+ error: aborting due to 18 previous errors
146
202
0 commit comments