Open
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
the error: DEPRECATED: future versions of rustup will require --force-non-host to install a non-host toolchain as the default.
warning shows up, even if you are installing a non-default toolchain
Steps
on a glibc linux system, run rustup toolchain add nightly-x86_64-unknown-linux-musl
Possible Solution(s)
If --force-non-host
is to be required when installing any non-host toolchain, the "as the default" text should be removed. If the warning description is correct, the warning should only appear when trying to install a default toolchain.
Notes
The "I am on the latest version" checkbox should be optional, as the latest rustup has not yet been packaged for nix.
Rustup version
rustup 1.26.0 (1980-01-01)
Installed toolchains
nightly-2025-02-16-x86_64-unknown-linux-gnu
nightly-2025-02-26-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-musl
stage1
OS version
NixOS 24.11 (Vicuna)
24.11.712909.1dab772dd4a6