@@ -8,8 +8,9 @@ LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
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 | if let Some(n) = n.checked_sub(4) { n } else { n }
12
- | ~~~~~~~~~~~~~~~~
11
+ LL - if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
12
+ LL + if let Some(n) = n.checked_sub(4) { n } else { n }
13
+ |
13
14
14
15
error: the `dbg!` macro is intended as a debugging tool
15
16
--> tests/ui-toml/dbg_macro/dbg_macro.rs:10:8
@@ -19,8 +20,9 @@ LL | if dbg!(n <= 1) {
19
20
|
20
21
help: remove the invocation before committing it to a version control system
21
22
|
22
- LL | if n <= 1 {
23
- | ~~~~~~
23
+ LL - if dbg!(n <= 1) {
24
+ LL + if n <= 1 {
25
+ |
24
26
25
27
error: the `dbg!` macro is intended as a debugging tool
26
28
--> tests/ui-toml/dbg_macro/dbg_macro.rs:11:9
@@ -30,7 +32,8 @@ LL | dbg!(1)
30
32
|
31
33
help: remove the invocation before committing it to a version control system
32
34
|
33
- LL | 1
35
+ LL - dbg!(1)
36
+ LL + 1
34
37
|
35
38
36
39
error: the `dbg!` macro is intended as a debugging tool
@@ -41,7 +44,8 @@ LL | dbg!(n * factorial(n - 1))
41
44
|
42
45
help: remove the invocation before committing it to a version control system
43
46
|
44
- LL | n * factorial(n - 1)
47
+ LL - dbg!(n * factorial(n - 1))
48
+ LL + n * factorial(n - 1)
45
49
|
46
50
47
51
error: the `dbg!` macro is intended as a debugging tool
@@ -52,8 +56,9 @@ LL | dbg!(42);
52
56
|
53
57
help: remove the invocation before committing it to a version control system
54
58
|
55
- LL | 42;
56
- | ~~
59
+ LL - dbg!(42);
60
+ LL + 42;
61
+ |
57
62
58
63
error: the `dbg!` macro is intended as a debugging tool
59
64
--> tests/ui-toml/dbg_macro/dbg_macro.rs:19:14
@@ -63,8 +68,9 @@ LL | foo(3) + dbg!(factorial(4));
63
68
|
64
69
help: remove the invocation before committing it to a version control system
65
70
|
66
- LL | foo(3) + factorial(4);
67
- | ~~~~~~~~~~~~
71
+ LL - foo(3) + dbg!(factorial(4));
72
+ LL + foo(3) + factorial(4);
73
+ |
68
74
69
75
error: the `dbg!` macro is intended as a debugging tool
70
76
--> tests/ui-toml/dbg_macro/dbg_macro.rs:20:5
@@ -74,8 +80,9 @@ LL | dbg!(1, 2, 3, 4, 5);
74
80
|
75
81
help: remove the invocation before committing it to a version control system
76
82
|
77
- LL | (1, 2, 3, 4, 5);
78
- | ~~~~~~~~~~~~~~~
83
+ LL - dbg!(1, 2, 3, 4, 5);
84
+ LL + (1, 2, 3, 4, 5);
85
+ |
79
86
80
87
error: aborting due to 7 previous errors
81
88
0 commit comments