Skip to content

Bugs in "component add" message #3721

@smoelius

Description

@smoelius

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions