-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tidy check for dbg #106327
Add tidy check for dbg #106327
Conversation
r? @jyn514 (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
One possible nit: dbg! in multi line block comments ( |
@jyn514 Any idea how to detect that? 😄 |
I know there is a clippy lint for that, but it is not what is intended for now. |
There is a clippy lint for dbg yeah + Is there any specific reason we aren't running clippy with default and a few others in CI? |
x.py clippy doesn't really work 😅 it uses your rustup install of clippy and just hopes that the versions are close enough. It's not reliable enough I'd want to gate on it in CI. If you want, uplifting that lint to rustc seems reasonable (as an allow-by-default lint). cc #97443 |
The block comment issue doesn't seem that annoying considering that the lint is suppressable, if you (for some reason) have to have a And cc @jyn514 considering uplifting that lint into rustc or running clippy in CI is a much bigger rock to throw, the current solution should work okay |
Looks great, thanks! Ideally it would use the clippy lint, but I understand getting clippy working will be a pain 😓 I don't mind landing this in the meantime. @bors r+ |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#106200 (Suggest `impl Fn*` and `impl Future` in `-> _` return suggestions) - rust-lang#106274 (Add JSON output to -Zdump-mono-stats) - rust-lang#106292 (Add codegen test for `Box::new(uninit)` of big arrays) - rust-lang#106327 (Add tidy check for dbg) - rust-lang#106361 (Note maximum integer literal for `IntLiteralTooLarge`) - rust-lang#106396 (Allow passing a specific date to `bump-stage0`) - rust-lang#106436 (Enable doctests for rustc_query_impl) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #106169