Closed
5 of 5 issues completedDescription
Problem you are trying to solve
here is a transcript of a session with rustup
PS C:\Users\jyn\src\example> rustup toolchain list
nightly-x86_64-pc-windows-msvc (default)
1.74-x86_64-pc-windows-msvc
stage1
PS C:\Users\jyn\src\example> rustup uninstall nightly
info: uninstalling toolchain 'nightly-x86_64-pc-windows-msvc'
info: toolchain 'nightly-x86_64-pc-windows-msvc' uninstalled
PS C:\Users\jyn\src\example> rustup toolchain list
1.74-x86_64-pc-windows-msvc
stage1
PS C:\Users\jyn\src\example> rustc
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2024-01-07, rust version 1.77.0-nightly (b6a8c762e 2024-01-06)
info: downloading component 'cargo'
^C
PS C:\Users\jyn\src\example> rustc +nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' is not installed
PS C:\Users\jyn\src\example> rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
Proposed Solution & Progress
[The following behaviors of the current rustup
should be changed:]
- uninstalling the default toolchain happens silently. i would expect either a warning (by the same logic as Give a warning before uninstalling the active/default toolchain, or the last/host target for a toolchain #3319), or for rustup to switch to a different default toolchain.
- running
rustc
afterwards implicitly reinstalls the toolchain. -
I do not expect rustup to implicitly install in any case other than when[@rami3l: We shouldn't do even that, instead we should let the user explicitly install the required toolchain with a command.]rust-toolchain.toml
is in the current directory. in fact, you can see thatrustc +nightly
does not implicitly install, onlyrustc
by itself. - running
rustup --version
also silently installs. - running
rustup show
also silently installs.
Notes
rustup 1.26.0 (5af9b94 2023-04-05)