I think there may be a couple of bugs here:
|
let selector = match self.cfg.get_default()? { |
|
Some(ToolchainName::Official(n)) if n == self.desc => "", |
|
_ => " --toolchain {toolchain}", |
|
}; |
|
Err(anyhow!("'{binary_lossy}' is not installed for the toolchain '{desc}'.\nTo install, run `rustup component add {selector}{component_name}`")) |
selector is not part of the format string, so {toolchain} won't get filled in.
- There appears to be a space missing between
{selector} and {component} name.
I think there may be a couple of bugs here:
rustup/src/toolchain/distributable.rs
Lines 441 to 445 in 6e8769c
selectoris not part of the format string, so{toolchain}won't get filled in.{selector}and{component}name.