Skip to content

add workspace lints, forbid dbg! usage, remove current usages#3204

Merged
GuillaumeGomez merged 1 commit intorust-lang:mainfrom
syphar:no-dbg
Feb 13, 2026
Merged

add workspace lints, forbid dbg! usage, remove current usages#3204
GuillaumeGomez merged 1 commit intorust-lang:mainfrom
syphar:no-dbg

Conversation

@syphar
Copy link
Member

@syphar syphar commented Feb 13, 2026

after not having the build-logs in the cratesfyi log stream I saw that I actually left a dbg! macro call in one of the main web handlers...

Of course this contributes quite much to our currently high log usage.

To be very save, this adds config for workspace lints, and sets warn for dbg! and todo! (we have -D warnings in just lint)

I also removed them in tests for now, while there is allow-dbg-in-tests, I couldn't quickly figure out how to best have a workspace-level clippy.toml.

@syphar syphar requested a review from a team as a code owner February 13, 2026 05:40
@syphar syphar self-assigned this Feb 13, 2026
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Feb 13, 2026
@GuillaumeGomez
Copy link
Member

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 91dcccd into rust-lang:main Feb 13, 2026
13 checks passed
@GuillaumeGomez GuillaumeGomez deleted the no-dbg branch February 13, 2026 09:55
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Feb 13, 2026
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants