Improve error message for no such subcommand
#10900
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-rustup
Area: rustup interaction
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
E-easy
Experience: Easy
Problem
With the rustup changes to set
$RUSTC
et al, it's become more likely that people will accidentally use+toolchain
on cargo/rustc/etc directly rather than through the rustup shims. While we shouldn't try to handle the toolchain flag ourselves, it would be beneficial to recognize it in the "no such subcommand" path and print a help note notifying the user that cargo received the +toolchain argument but can't handle it.Proposed Solution
Notes
Some rustup context:
The text was updated successfully, but these errors were encountered: