Open jyn514 opened 7 months ago
Following the long-term goal of eliminating implicit installation (https://github.com/rust-lang/rustup/issues/3635), I think the best thing to do here is to add a warning.
@rami3l i still think this suggestion from the description is the best approach:
rustup set default-host foo
should behave the same asrustup set default-host foo && rustup default $channel-foo
, where $channel is the channel of the current default toolchain.
if rustup default nightly
for a non-installed toolchain warns instead of installing, that's fine. but i do not think rustup should leave the default toolchain so that it doesn't match the default host.
Problem you are trying to solve
i have a
stable-x86_64-pc-windows-gnu
toolchain as my default:i want it to be
-msvc
instead so i can use windbg (i don't have gdb installed). i ranrustup set default-host x86_64-pc-windows-msvc
, which succeeded, but did not install any toolchains or change the default:then i tried
rustup update stable
, which did install the -msvc toolchain, but did not change the default:Solution you'd like
rustup set default-host foo
should behave the same asrustup set default-host foo && rustup default $channel-foo
, where$channel
is the channel of the current default toolchain.ideally, rustup would give a warning if the default toolchain did not match the default host (e.g.
rustup default nightly-x86_64-pc-windows-gnu
with a default-host ofmsvc
).Notes
rustup 1.26.0 (5af9b9484 2023-04-05)