You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Currently if a component is not installed for a custom-linked toolchain, you will get an error message like this:
error: 'rustc' is not installed for the toolchain 'r2stage1'
To install, run `rustup component add rustc --toolchain r2stage1`
Yet that is not helpful since the toolchain is not an official toolchain that just doesn't have the component installed. Instead, the error should be something like:
error: 'rustc' is not installed for the toolchain 'r2stage1'
The toolchain 'r2stage' was created with `rustup toolchain link` so you will have to install the component yourself.
Steps
Link a toolchain; e.g.: rustup toolchain link stage1 rust/build/x86_64-apple-darwin/stage1
Delete a component (e.g. by running ./x.py clean with the example in (1))
Try using the component: rustc +r2stage1 foo.rs
Possible Solution(s)
I suggest an error like this:
error: 'rustc' is not installed for the toolchain 'r2stage1'
The toolchain 'r2stage' was created with `rustup toolchain link` so you will have to install the component yourself.
Notes
Output of rustup --version: rustup 1.22.1 (b01adbbc3 2020-07-08)
The text was updated successfully, but these errors were encountered:
camelid
changed the title
Only print install help message if toolchain is not a linked toolchain
Installation help message is printed when attempting to use uninstalled component for toolchains created with toolchain linkOct 21, 2020
Problem
Currently if a component is not installed for a custom-linked toolchain, you will get an error message like this:
Yet that is not helpful since the toolchain is not an official toolchain that just doesn't have the component installed. Instead, the error should be something like:
Steps
rustup toolchain link stage1 rust/build/x86_64-apple-darwin/stage1
./x.py clean
with the example in (1))rustc +r2stage1 foo.rs
Possible Solution(s)
I suggest an error like this:
Notes
Output of
rustup --version
:rustup 1.22.1 (b01adbbc3 2020-07-08)
The text was updated successfully, but these errors were encountered: