Skip to content

Commit

Permalink
Explain in comment about listing targets in custom toolchains
Browse files Browse the repository at this point in the history
Co-authored-by: rami3l <[email protected]>
  • Loading branch information
majaha and rami3l authored May 1, 2024
1 parent 45b7272 commit ec430bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ fn show(cfg: &Cfg, m: &ArgMatches) -> Result<utils::ExitCode> {
let active_toolchain_targets: Vec<TargetTriple> = active_toolchain_name
.and_then(|atn| match atn {
ToolchainName::Official(desc) => DistributableToolchain::new(cfg, desc.clone()).ok(),
// So far, it is not possible to list targets for a custom toolchain.
ToolchainName::Custom(_) => None,
})
.and_then(|distributable| {
Expand Down

0 comments on commit ec430bd

Please sign in to comment.