-
-
Notifications
You must be signed in to change notification settings - Fork 15k
cargo test gives bad advice when given invalid target #68238
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-listfor help. However, this is not valid advice.Steps
cargo test --target invalid-targetcargo test --print target-listPossible 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)