-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
refactor clippy in bootstrap #122883
refactor clippy in bootstrap #122883
Conversation
This comment has been minimized.
This comment has been minimized.
dcaa724
to
006354c
Compare
This PR modifies If appropriate, please update |
This comment has been minimized.
This comment has been minimized.
879b09a
to
e6a675c
Compare
I was planning to run clippy on bootstrap and various other tools on CI, which means I will need to make some more changes to fix clippy warnings. As it makes this PR difficult to review, I will do that as a follow-up to this PR once it's merged. r? bootstrap |
Thanks for the PR! |
…bertlarsan68 refactor clippy in bootstrap Previously, using clippy in bootstrap was not very useful as explained in rust-lang#122825. In short, regardless of the given path clippy would always check the entire compiler and std tree. This makes it impossible to run clippy on different paths with different set of rules. This PR fixes that by allowing developers to run clippy with specific rules on specific paths (e.g., we can run `x clippy compiler -Aclippy::all -Dclippy::correctness` and `x clippy library/std -Dclippy::all` and none of them will affect each other). Resolves rust-lang#122825
probably failing in #124025 (comment) |
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Previously this command was linting compiler and library together. As we no longer run clippy on the entire tree unless it's explicitly requested, we need to update this command by adding `library` path. Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
e6a675c
to
16cf0e6
Compare
Rebased. @bors r=albertlarsan68 |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#122813 (Qualifier tweaking) - rust-lang#122883 (refactor clippy in bootstrap) - rust-lang#123997 (Delay span bug when `Self` kw resolves to `DefKind::{Mod,Trait}`) - rust-lang#124045 (Reinstate nnethercote to the review rotation.) - rust-lang#124051 (Fix empty-set symbol in comments) - rust-lang#124052 (Make the comments for `ReturnDest` variants doc comments) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#122883 - onur-ozkan:clippy-build-step, r=albertlarsan68 refactor clippy in bootstrap Previously, using clippy in bootstrap was not very useful as explained in rust-lang#122825. In short, regardless of the given path clippy would always check the entire compiler and std tree. This makes it impossible to run clippy on different paths with different set of rules. This PR fixes that by allowing developers to run clippy with specific rules on specific paths (e.g., we can run `x clippy compiler -Aclippy::all -Dclippy::correctness` and `x clippy library/std -Dclippy::all` and none of them will affect each other). Resolves rust-lang#122825
Previously, using clippy in bootstrap was not very useful as explained in #122825. In short, regardless of the given path clippy would always check the entire compiler and std tree. This makes it impossible to run clippy on different paths with different set of rules. This PR fixes that by allowing developers to run clippy with specific rules on specific paths (e.g., we can run
x clippy compiler -Aclippy::all -Dclippy::correctness
andx clippy library/std -Dclippy::all
and none of them will affect each other).Resolves #122825