Skip to content

build(just): let clippy fix mode reach the codegen workspace - #839

Merged
nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:build/just-clippy-fix-codegen-workspace
Aug 13, 2026
Merged

nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:build/just-clippy-fix-codegen-workspace

Conversation

@vyncint

@vyncint vyncint commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The follow-up you offered when #834 landed: "clippy-fix widening left as a follow-up if you want fix mode to reach the codegen workspace too."

The gap

#834 gave clippy a second pass for crates/rustc-codegen-cuda, because that crate carries its own [workspace] for the rustc-private dylibs and no root invocation crosses that boundary. clippy-fix never got one, so a warning the gate reports there had no --fix pass to answer it — the one place where fix mode was both useful and absent.

The change

Adds the same second pass, spelled the way clippy spells it.

The root line only changes spelling: 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. I've said that in the comment rather than repeating the wrong rationale you corrected on #834.

Verified

  • just clippy-fix runs both passes and the second reaches rustc_codegen_cuda (visible in its output);
  • exits 0 on a clean tree and rewrites nothing — git status shows only the Justfile afterwards;
  • just --list still renders, and the docstring now says "(root + codegen workspaces)" to match clippy.

No GPU needed for any of it.

`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]>
@nihalpasham nihalpasham added build-related Build scripts, toolchain discovery, or compilation setup QoL-improvement Quality-of-life improvement; not a correctness fix labels Aug 13, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Gist: the follow-up offered in the #834 merge comment: clippy-fix now reaches the codegen workspace with the same two-pass fan-out the merged gate uses, minus -D warnings as fix mode wants.

Verified here:

  • both passes mirror the gate's spelling; the root-line respelling is coverage-neutral (virtual workspace, no default-members);
  • just -n clippy-fix dry-runs cleanly.

Landing once CI is green.

@nihalpasham
nihalpasham merged commit ebc468e into NVIDIA:main Aug 13, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-related Build scripts, toolchain discovery, or compilation setup QoL-improvement Quality-of-life improvement; not a correctness fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants