Repository navigation
docs: three docs give three different rustup component lists, none matching the pin - #1030
Merged
nihalpasham merged 2 commits intoAug 19, 2026
Merged
Conversation
…tching the pin
The same onboarding step -- install the pinned toolchain and its components --
appears in three places with three different answers, and the pin has a fourth:
README.md:183 rust-src rustc-dev llvm-tools [3]
book/appendix/building-from-source.md:42
rust-src rustc-dev llvm-tools [3]
book/getting-started/installation.md:243
rust-src rustc-dev rust-analyzer llvm-tools [4]
rust-toolchain.toml + rust-analyzer clippy rustfmt [6]
`cargo oxide new` scaffold the same 6
`rustfmt` and `clippy` are missing from all three, and `rustfmt` is not
optional: `cargo oxide fmt` shells out to `cargo fmt`, and
`cuda-intrinsics-gen` runs `rustfmt_source` on every file it generates
(`generate.rs:35`). NVIDIA#727 added it to the pin for exactly that reason.
Inside a checkout none of this bites, because `rust-toolchain.toml` makes rustup
install whatever the pin names -- which is why `check-toolchain-parity.sh`
deliberately leaves these command lines out of scope ("the `rustup component
add` command lines ... are not quotes of it"). But README.md:183 sits directly
under `cargo +nightly-2026-04-03 install --git ... cargo-oxide`, which is the
out-of-checkout path: there is no `rust-toolchain.toml` there, so rustup installs
exactly what the line names and the gap is real.
All three now name the pin's six, matching the scaffold `cargo oxide new` writes
into user projects.
Left alone deliberately -- three narrower lines that name a component because a
specific symptom names it, not as the install step:
building-from-source.md:265 `rustup component add rustc-dev ...`
installation.md:371 `rustup component add llvm-tools ...` for a missing llc
installation.md:374 `rustup component add rust-src llvm-tools ...`
The devcontainer's five (`llvm-tools` omitted because the image ships LLVM 21
and sets `CUDA_OXIDE_LLC`) is also deliberate and already guarded, so it is
unchanged.
Verified: all three lines now expand to exactly the pin's component list,
compared programmatically against `rust-toolchain.toml`; `just book`
(`sphinx-build -W --keep-going`) succeeds; check-toolchain-parity and
check-crate-inventory pass.
Signed-off-by: Vyncint Ng <[email protected]>
Collaborator
|
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.
Summary
The same onboarding step — install the pinned toolchain and its components — appears in three places with three different answers, and the pin has a fourth:
README.md:183book/appendix/building-from-source.md:42book/getting-started/installation.md:243rust-toolchain.tomlcargo oxide newscaffoldrustfmtandclippyare missing from all three, andrustfmtis not optional:cargo oxide fmtshells out tocargo fmt, andcuda-intrinsics-genrunsrustfmt_sourceon every file it generates (generate.rs:35). #727 added it to the pin for exactly that reason.Why this bites despite the pin
Inside a checkout it doesn't —
rust-toolchain.tomlmakes rustup install whatever the pin names, which is whycheck-toolchain-parity.shdeliberately leaves these command lines out of scope ("therustup component addcommand lines … are not quotes of it").But
README.md:183sits directly undercargo +nightly-2026-04-03 install --git … cargo-oxide, which is the out-of-checkout path: there is norust-toolchain.tomlthere, so rustup installs exactly what the line names and the gap is real.All three now name the pin's six, matching the scaffold
cargo oxide newwrites into user projects.Left alone deliberately
Three narrower lines that name a component because a specific symptom names it, not as the install step:
building-from-source.md:265—rustup component add rustc-dev …installation.md:371—rustup component add llvm-tools …for a missingllcinstallation.md:374—rustup component add rust-src llvm-tools …The devcontainer's five (
llvm-toolsomitted because the image ships LLVM 21 and setsCUDA_OXIDE_LLC) is also deliberate and already guarded, so it is unchanged.Testing
Local, no GPU.
rust-toolchain.tomljust book(sphinx-build -W --keep-going) succeedscheck-toolchain-parity.shandcheck-crate-inventory.shpasscargo oxide run <example>— not applicable