Hidden code suggestions are not tested #73641
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The enum
SuggestionStyle
(which is used byDiagnosticBuilder
functions likespan_suggestion_short
) allows for code suggestions to not be displayed in compiler output, but still be made available to tools like IDE quick-fix andcargo fix
, if it is obvious from the diagnostics what should be done.But UI tests only check compiler output, so such suggestions are not being tested to see if they are valid/good/etc.
@rustbot modify labels: +A-diagnostics +A-suggestion-diagnostics +A-testsuite
The text was updated successfully, but these errors were encountered: