@@ -5,55 +5,70 @@ LL | if let Some(n) = dbg!(n.checked_sub(4)) {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::dbg-macro` implied by `-D warnings`
8
- = help: ensure to avoid having uses of it in version control
8
+ help: ensure to avoid having uses of it in version control
9
+ |
10
+ LL | if let Some(n) = n.checked_sub(4) {
11
+ | ^^^^^^^^^^^^^^^^
9
12
10
13
error: `dbg!` macro is intended as a debugging tool
11
14
--> $DIR/dbg_macro.rs:12:8
12
15
|
13
16
LL | if dbg!(n <= 1) {
14
17
| ^^^^^^^^^^^^
18
+ help: ensure to avoid having uses of it in version control
15
19
|
16
- = help: ensure to avoid having uses of it in version control
20
+ LL | if n <= 1 {
21
+ | ^^^^^^
17
22
18
23
error: `dbg!` macro is intended as a debugging tool
19
24
--> $DIR/dbg_macro.rs:13:9
20
25
|
21
26
LL | dbg!(1)
22
27
| ^^^^^^^
28
+ help: ensure to avoid having uses of it in version control
29
+ |
30
+ LL | 1
23
31
|
24
- = help: ensure to avoid having uses of it in version control
25
32
26
33
error: `dbg!` macro is intended as a debugging tool
27
34
--> $DIR/dbg_macro.rs:15:9
28
35
|
29
36
LL | dbg!(n * factorial(n - 1))
30
37
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
38
+ help: ensure to avoid having uses of it in version control
39
+ |
40
+ LL | n * factorial(n - 1)
31
41
|
32
- = help: ensure to avoid having uses of it in version control
33
42
34
43
error: `dbg!` macro is intended as a debugging tool
35
44
--> $DIR/dbg_macro.rs:20:5
36
45
|
37
46
LL | dbg!(42);
38
47
| ^^^^^^^^
48
+ help: ensure to avoid having uses of it in version control
39
49
|
40
- = help: ensure to avoid having uses of it in version control
50
+ LL | 42;
51
+ | ^^
41
52
42
53
error: `dbg!` macro is intended as a debugging tool
43
54
--> $DIR/dbg_macro.rs:21:5
44
55
|
45
56
LL | dbg!(dbg!(dbg!(42)));
46
57
| ^^^^^^^^^^^^^^^^^^^^
58
+ help: ensure to avoid having uses of it in version control
47
59
|
48
- = help: ensure to avoid having uses of it in version control
60
+ LL | dbg!(dbg!(42));
61
+ | ^^^^^^^^^^^^^^
49
62
50
63
error: `dbg!` macro is intended as a debugging tool
51
64
--> $DIR/dbg_macro.rs:22:14
52
65
|
53
66
LL | foo(3) + dbg!(factorial(4));
54
67
| ^^^^^^^^^^^^^^^^^^
68
+ help: ensure to avoid having uses of it in version control
55
69
|
56
- = help: ensure to avoid having uses of it in version control
70
+ LL | foo(3) + factorial(4);
71
+ | ^^^^^^^^^^^^
57
72
58
73
error: aborting due to 7 previous errors
59
74
0 commit comments