Recommended toolchain install
command line isn't exactly right
#4212
Closed
2 tasks done
Verification
Problem
In the behavior introduced in the latest release, the error message if you don't have the toolchain installed is not actually correct if your rust-toolchain.toml file formerly triggered the installation of more than just a toolchain. This is common in cross-compile situations with the
targets
key.rustup 1.28 tells me:
...but that's not actually correct, because that does not install the
targets
listed in the toml.cargo build
fails.On the other hand,
rustup toolchain install
with no arguments does the right thing.Steps
cargo build
.cargo build
again.Possible Solution(s)
In the event that the command is failing in a directory with a (valid)
rust-toolchain.toml
, perhaps the error message should suggest the no-argument version ofrustup toolchain install
.Notes
No response
Rustup version
Installed toolchains
Many.
OS version
Linux gwydion 6.9.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: