1 error: `dbg!` macro is intended as a debugging tool
2 --> $DIR/dbg_macro.rs:5:22
4 LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n }
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::dbg-macro` implied by `-D warnings`
8 help: ensure to avoid having uses of it in version control
10 LL | if let Some(n) = n.checked_sub(4) { n } else { n }
13 error: `dbg!` macro is intended as a debugging tool
14 --> $DIR/dbg_macro.rs:9:8
16 LL | if dbg!(n <= 1) {
19 help: ensure to avoid having uses of it in version control
24 error: `dbg!` macro is intended as a debugging tool
25 --> $DIR/dbg_macro.rs:10:9
30 help: ensure to avoid having uses of it in version control
35 error: `dbg!` macro is intended as a debugging tool
36 --> $DIR/dbg_macro.rs:12:9
38 LL | dbg!(n * factorial(n - 1))
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
41 help: ensure to avoid having uses of it in version control
43 LL | n * factorial(n - 1)
46 error: `dbg!` macro is intended as a debugging tool
47 --> $DIR/dbg_macro.rs:17:5
52 help: ensure to avoid having uses of it in version control
57 error: `dbg!` macro is intended as a debugging tool
58 --> $DIR/dbg_macro.rs:18:5
60 LL | dbg!(dbg!(dbg!(42)));
61 | ^^^^^^^^^^^^^^^^^^^^
63 help: ensure to avoid having uses of it in version control
68 error: `dbg!` macro is intended as a debugging tool
69 --> $DIR/dbg_macro.rs:19:14
71 LL | foo(3) + dbg!(factorial(4));
74 help: ensure to avoid having uses of it in version control
76 LL | foo(3) + factorial(4);
79 error: `dbg!` macro is intended as a debugging tool
80 --> $DIR/dbg_macro.rs:20:5
82 LL | dbg!(1, 2, dbg!(3, 4));
83 | ^^^^^^^^^^^^^^^^^^^^^^
85 help: ensure to avoid having uses of it in version control
87 LL | (1, 2, dbg!(3, 4));
90 error: `dbg!` macro is intended as a debugging tool
91 --> $DIR/dbg_macro.rs:21:5
93 LL | dbg!(1, 2, 3, 4, 5);
96 help: ensure to avoid having uses of it in version control
101 error: `dbg!` macro is intended as a debugging tool
102 --> $DIR/dbg_macro.rs:41:9
107 help: ensure to avoid having uses of it in version control
112 error: `dbg!` macro is intended as a debugging tool
113 --> $DIR/dbg_macro.rs:47:5
118 help: ensure to avoid having uses of it in version control
123 error: `dbg!` macro is intended as a debugging tool
124 --> $DIR/dbg_macro.rs:52:5
129 help: ensure to avoid having uses of it in version control
134 error: `dbg!` macro is intended as a debugging tool
135 --> $DIR/dbg_macro.rs:58:9
140 help: ensure to avoid having uses of it in version control
145 error: aborting due to 13 previous errors