cargo test gives bad advice when given invalid target #68238
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Problem
It is possible to run tests for various targets using
cargo test --target [triple]
. When given an invalid triple, cargo indicates the user should run--print target-list
for help. However, this is not valid advice.Steps
cargo test --target invalid-target
cargo test --print target-list
Possible Solution(s)
cargo should implement
--print target-list
, or the advice should be removed.Notes
Output of
cargo version
: cargo 1.40.0 (bc8e4c8be 2019-11-22)The text was updated successfully, but these errors were encountered: