|
1 |
| -error: `dbg!` macro is intended as a debugging tool |
| 1 | +error: the `dbg!` macro is intended as a debugging tool |
2 | 2 | --> $DIR/dbg_macro.rs:5:22
|
3 | 3 | |
|
4 | 4 | LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
|
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: remove the invocation before committing it to a version control system |
9 | 9 | |
|
10 | 10 | LL | if let Some(n) = n.checked_sub(4) { n } else { n }
|
11 | 11 | | ~~~~~~~~~~~~~~~~
|
12 | 12 |
|
13 |
| -error: `dbg!` macro is intended as a debugging tool |
| 13 | +error: the `dbg!` macro is intended as a debugging tool |
14 | 14 | --> $DIR/dbg_macro.rs:9:8
|
15 | 15 | |
|
16 | 16 | LL | if dbg!(n <= 1) {
|
17 | 17 | | ^^^^^^^^^^^^
|
18 | 18 | |
|
19 |
| -help: ensure to avoid having uses of it in version control |
| 19 | +help: remove the invocation before committing it to a version control system |
20 | 20 | |
|
21 | 21 | LL | if n <= 1 {
|
22 | 22 | | ~~~~~~
|
23 | 23 |
|
24 |
| -error: `dbg!` macro is intended as a debugging tool |
| 24 | +error: the `dbg!` macro is intended as a debugging tool |
25 | 25 | --> $DIR/dbg_macro.rs:10:9
|
26 | 26 | |
|
27 | 27 | LL | dbg!(1)
|
28 | 28 | | ^^^^^^^
|
29 | 29 | |
|
30 |
| -help: ensure to avoid having uses of it in version control |
| 30 | +help: remove the invocation before committing it to a version control system |
31 | 31 | |
|
32 | 32 | LL | 1
|
33 | 33 | |
|
34 | 34 |
|
35 |
| -error: `dbg!` macro is intended as a debugging tool |
| 35 | +error: the `dbg!` macro is intended as a debugging tool |
36 | 36 | --> $DIR/dbg_macro.rs:12:9
|
37 | 37 | |
|
38 | 38 | LL | dbg!(n * factorial(n - 1))
|
39 | 39 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
40 | 40 | |
|
41 |
| -help: ensure to avoid having uses of it in version control |
| 41 | +help: remove the invocation before committing it to a version control system |
42 | 42 | |
|
43 | 43 | LL | n * factorial(n - 1)
|
44 | 44 | |
|
45 | 45 |
|
46 |
| -error: `dbg!` macro is intended as a debugging tool |
| 46 | +error: the `dbg!` macro is intended as a debugging tool |
47 | 47 | --> $DIR/dbg_macro.rs:17:5
|
48 | 48 | |
|
49 | 49 | LL | dbg!(42);
|
50 | 50 | | ^^^^^^^^
|
51 | 51 | |
|
52 |
| -help: ensure to avoid having uses of it in version control |
| 52 | +help: remove the invocation before committing it to a version control system |
53 | 53 | |
|
54 | 54 | LL | 42;
|
55 | 55 | | ~~
|
56 | 56 |
|
57 |
| -error: `dbg!` macro is intended as a debugging tool |
| 57 | +error: the `dbg!` macro is intended as a debugging tool |
58 | 58 | --> $DIR/dbg_macro.rs:18:5
|
59 | 59 | |
|
60 | 60 | LL | dbg!(dbg!(dbg!(42)));
|
61 | 61 | | ^^^^^^^^^^^^^^^^^^^^
|
62 | 62 | |
|
63 |
| -help: ensure to avoid having uses of it in version control |
| 63 | +help: remove the invocation before committing it to a version control system |
64 | 64 | |
|
65 | 65 | LL | dbg!(dbg!(42));
|
66 | 66 | | ~~~~~~~~~~~~~~
|
67 | 67 |
|
68 |
| -error: `dbg!` macro is intended as a debugging tool |
| 68 | +error: the `dbg!` macro is intended as a debugging tool |
69 | 69 | --> $DIR/dbg_macro.rs:19:14
|
70 | 70 | |
|
71 | 71 | LL | foo(3) + dbg!(factorial(4));
|
72 | 72 | | ^^^^^^^^^^^^^^^^^^
|
73 | 73 | |
|
74 |
| -help: ensure to avoid having uses of it in version control |
| 74 | +help: remove the invocation before committing it to a version control system |
75 | 75 | |
|
76 | 76 | LL | foo(3) + factorial(4);
|
77 | 77 | | ~~~~~~~~~~~~
|
78 | 78 |
|
79 |
| -error: `dbg!` macro is intended as a debugging tool |
| 79 | +error: the `dbg!` macro is intended as a debugging tool |
80 | 80 | --> $DIR/dbg_macro.rs:20:5
|
81 | 81 | |
|
82 | 82 | LL | dbg!(1, 2, dbg!(3, 4));
|
83 | 83 | | ^^^^^^^^^^^^^^^^^^^^^^
|
84 | 84 | |
|
85 |
| -help: ensure to avoid having uses of it in version control |
| 85 | +help: remove the invocation before committing it to a version control system |
86 | 86 | |
|
87 | 87 | LL | (1, 2, dbg!(3, 4));
|
88 | 88 | | ~~~~~~~~~~~~~~~~~~
|
89 | 89 |
|
90 |
| -error: `dbg!` macro is intended as a debugging tool |
| 90 | +error: the `dbg!` macro is intended as a debugging tool |
91 | 91 | --> $DIR/dbg_macro.rs:21:5
|
92 | 92 | |
|
93 | 93 | LL | dbg!(1, 2, 3, 4, 5);
|
94 | 94 | | ^^^^^^^^^^^^^^^^^^^
|
95 | 95 | |
|
96 |
| -help: ensure to avoid having uses of it in version control |
| 96 | +help: remove the invocation before committing it to a version control system |
97 | 97 | |
|
98 | 98 | LL | (1, 2, 3, 4, 5);
|
99 | 99 | | ~~~~~~~~~~~~~~~
|
100 | 100 |
|
101 |
| -error: `dbg!` macro is intended as a debugging tool |
| 101 | +error: the `dbg!` macro is intended as a debugging tool |
102 | 102 | --> $DIR/dbg_macro.rs:41:9
|
103 | 103 | |
|
104 | 104 | LL | dbg!(2);
|
105 | 105 | | ^^^^^^^
|
106 | 106 | |
|
107 |
| -help: ensure to avoid having uses of it in version control |
| 107 | +help: remove the invocation before committing it to a version control system |
108 | 108 | |
|
109 | 109 | LL | 2;
|
110 | 110 | | ~
|
111 | 111 |
|
112 |
| -error: `dbg!` macro is intended as a debugging tool |
| 112 | +error: the `dbg!` macro is intended as a debugging tool |
113 | 113 | --> $DIR/dbg_macro.rs:47:5
|
114 | 114 | |
|
115 | 115 | LL | dbg!(1);
|
116 | 116 | | ^^^^^^^
|
117 | 117 | |
|
118 |
| -help: ensure to avoid having uses of it in version control |
| 118 | +help: remove the invocation before committing it to a version control system |
119 | 119 | |
|
120 | 120 | LL | 1;
|
121 | 121 | | ~
|
122 | 122 |
|
123 |
| -error: `dbg!` macro is intended as a debugging tool |
| 123 | +error: the `dbg!` macro is intended as a debugging tool |
124 | 124 | --> $DIR/dbg_macro.rs:52:5
|
125 | 125 | |
|
126 | 126 | LL | dbg!(1);
|
127 | 127 | | ^^^^^^^
|
128 | 128 | |
|
129 |
| -help: ensure to avoid having uses of it in version control |
| 129 | +help: remove the invocation before committing it to a version control system |
130 | 130 | |
|
131 | 131 | LL | 1;
|
132 | 132 | | ~
|
133 | 133 |
|
134 |
| -error: `dbg!` macro is intended as a debugging tool |
| 134 | +error: the `dbg!` macro is intended as a debugging tool |
135 | 135 | --> $DIR/dbg_macro.rs:58:9
|
136 | 136 | |
|
137 | 137 | LL | dbg!(1);
|
138 | 138 | | ^^^^^^^
|
139 | 139 | |
|
140 |
| -help: ensure to avoid having uses of it in version control |
| 140 | +help: remove the invocation before committing it to a version control system |
141 | 141 | |
|
142 | 142 | LL | 1;
|
143 | 143 | | ~
|
|
0 commit comments