Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3dd1a9b

Browse files
authored
dogfood: run with -D clippy::dbg_macro (rust-lang#14579)
This prevents forgotten `dbg!()` calls from entering Clippy codebase by mistake. Suggested by @y21 when one of my PR forgot to remove one `dbg!()` call. changelog: none
2 parents ec105ba + 85bf0b2 commit 3dd1a9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/dogfood.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ fn run_clippy_for_package(project: &str, args: &[&str]) -> bool {
8080

8181
command.arg("--").args(args);
8282
command.arg("-Cdebuginfo=0"); // disable debuginfo to generate less data in the target dir
83+
command.args(["-D", "clippy::dbg_macro"]);
8384

8485
if cfg!(feature = "internal") {
8586
// internal lints only exist if we build with the internal feature

0 commit comments

Comments
 (0)