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