Repository navigation
build(just): let clippy fix mode reach the codegen workspace - #839
Merged
nihalpasham merged 1 commit intoAug 13, 2026
Merged
Conversation
`clippy` gained a second pass for crates/rustc-codegen-cuda in NVIDIA#834, because that crate carries its own [workspace] and no root invocation crosses that boundary. `clippy-fix` did not, so a warning the gate reports there had no `--fix` pass to answer it -- the one place where fix mode was useful and absent. The root line only changes spelling, to match `clippy`: target flags are additive and the virtual root workspace has no default-members, so `--all-targets --lib --tests` already selected the same members and targets. Verified: `just clippy-fix` runs both passes (the second reaches `rustc_codegen_cuda`), exits 0 on a clean tree, and rewrites nothing. Signed-off-by: Vyncint Ng <[email protected]>
Collaborator
|
Gist: the follow-up offered in the #834 merge comment: Verified here:
Landing once CI is green. |
nihalpasham
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The follow-up you offered when #834 landed: "
clippy-fixwidening left as a follow-up if you want fix mode to reach the codegen workspace too."The gap
#834 gave
clippya second pass forcrates/rustc-codegen-cuda, because that crate carries its own[workspace]for the rustc-private dylibs and no root invocation crosses that boundary.clippy-fixnever got one, so a warning the gate reports there had no--fixpass to answer it — the one place where fix mode was both useful and absent.The change
Adds the same second pass, spelled the way
clippyspells it.The root line only changes spelling: target flags are additive and the virtual root workspace has no default-members, so
--all-targets --lib --testsalready selected the same members and targets. I've said that in the comment rather than repeating the wrong rationale you corrected on #834.Verified
just clippy-fixruns both passes and the second reachesrustc_codegen_cuda(visible in its output);git statusshows only theJustfileafterwards;just --liststill renders, and the docstring now says "(root + codegen workspaces)" to matchclippy.No GPU needed for any of it.