Improve error message for wrong target names #10982
Labels
A-cargo-targets
Area: selection and definition of targets (lib, bins, examples, tests, benches)
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
If you type the wrong target name, Cargo presents a rather terse error message:
If the typo detection works, then it will provide a suggestion; but if it does not, then it doesn't print anything.
It would be helpful if cargo provided a list of valid target names. There are two similar cases where it does that:
or
I think the case where the typo detection fails, it should just list all the target names, similar to those two other error messages.
Here is where this code lives.
The text was updated successfully, but these errors were encountered: