|
| 1 | +error: `dbg!` macro is intended as a debugging tool |
| 2 | + --> $DIR/dbg_macro.rs:5:22 |
| 3 | + | |
| 4 | +LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n } |
| 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 | +LL | if let Some(n) = n.checked_sub(4) { n } else { n } |
| 11 | + | ~~~~~~~~~~~~~~~~ |
| 12 | + |
| 13 | +error: `dbg!` macro is intended as a debugging tool |
| 14 | + --> $DIR/dbg_macro.rs:9:8 |
| 15 | + | |
| 16 | +LL | if dbg!(n <= 1) { |
| 17 | + | ^^^^^^^^^^^^ |
| 18 | + | |
| 19 | +help: ensure to avoid having uses of it in version control |
| 20 | + | |
| 21 | +LL | if n <= 1 { |
| 22 | + | ~~~~~~ |
| 23 | + |
| 24 | +error: `dbg!` macro is intended as a debugging tool |
| 25 | + --> $DIR/dbg_macro.rs:10:9 |
| 26 | + | |
| 27 | +LL | dbg!(1) |
| 28 | + | ^^^^^^^ |
| 29 | + | |
| 30 | +help: ensure to avoid having uses of it in version control |
| 31 | + | |
| 32 | +LL | 1 |
| 33 | + | |
| 34 | + |
| 35 | +error: `dbg!` macro is intended as a debugging tool |
| 36 | + --> $DIR/dbg_macro.rs:12:9 |
| 37 | + | |
| 38 | +LL | dbg!(n * factorial(n - 1)) |
| 39 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 40 | + | |
| 41 | +help: ensure to avoid having uses of it in version control |
| 42 | + | |
| 43 | +LL | n * factorial(n - 1) |
| 44 | + | |
| 45 | + |
| 46 | +error: `dbg!` macro is intended as a debugging tool |
| 47 | + --> $DIR/dbg_macro.rs:17:5 |
| 48 | + | |
| 49 | +LL | dbg!(42); |
| 50 | + | ^^^^^^^^ |
| 51 | + | |
| 52 | +help: ensure to avoid having uses of it in version control |
| 53 | + | |
| 54 | +LL | 42; |
| 55 | + | ~~ |
| 56 | + |
| 57 | +error: `dbg!` macro is intended as a debugging tool |
| 58 | + --> $DIR/dbg_macro.rs:18:5 |
| 59 | + | |
| 60 | +LL | dbg!(dbg!(dbg!(42))); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 62 | + | |
| 63 | +help: ensure to avoid having uses of it in version control |
| 64 | + | |
| 65 | +LL | dbg!(dbg!(42)); |
| 66 | + | ~~~~~~~~~~~~~~ |
| 67 | + |
| 68 | +error: `dbg!` macro is intended as a debugging tool |
| 69 | + --> $DIR/dbg_macro.rs:19:14 |
| 70 | + | |
| 71 | +LL | foo(3) + dbg!(factorial(4)); |
| 72 | + | ^^^^^^^^^^^^^^^^^^ |
| 73 | + | |
| 74 | +help: ensure to avoid having uses of it in version control |
| 75 | + | |
| 76 | +LL | foo(3) + factorial(4); |
| 77 | + | ~~~~~~~~~~~~ |
| 78 | + |
| 79 | +error: `dbg!` macro is intended as a debugging tool |
| 80 | + --> $DIR/dbg_macro.rs:20:5 |
| 81 | + | |
| 82 | +LL | dbg!(1, 2, dbg!(3, 4)); |
| 83 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 84 | + | |
| 85 | +help: ensure to avoid having uses of it in version control |
| 86 | + | |
| 87 | +LL | (1, 2, dbg!(3, 4)); |
| 88 | + | ~~~~~~~~~~~~~~~~~~ |
| 89 | + |
| 90 | +error: `dbg!` macro is intended as a debugging tool |
| 91 | + --> $DIR/dbg_macro.rs:21:5 |
| 92 | + | |
| 93 | +LL | dbg!(1, 2, 3, 4, 5); |
| 94 | + | ^^^^^^^^^^^^^^^^^^^ |
| 95 | + | |
| 96 | +help: ensure to avoid having uses of it in version control |
| 97 | + | |
| 98 | +LL | (1, 2, 3, 4, 5); |
| 99 | + | ~~~~~~~~~~~~~~~ |
| 100 | + |
| 101 | +error: aborting due to 9 previous errors |
| 102 | + |
0 commit comments