Help text "consider downloading the target with `rustup target add..." only works for the default-active toolchain. #122006
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
Might be a bit of an edge-case but I ran into this twice in a couple of months; it would be nice if the error message gave you the command to install it specifically for the toolchain being used. The first time I was manually specifying nightly when building wasm and the second I wasn't in my project's folder with a
rust-toolchain
file when I ranrustup target add x86_64-unknown-linux-musl
(it seems like rustup uses the toolchain of your project; nice!).Also relevant is #97685.
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: