inconsistent lint flag args between normal and post-rustfix compiles in UI tests #50926
Labels
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.
UI tests run with
-A unused
, but UI tests with therun-rustfix
directive go on to apply suggestions and then check that there are no warnings, without passing any lint flags. The inconsistency is a papercut–footgun for UI test authors. We should do exactly one of—-A unused
for the rustfix-succeeded check, too; or-A unused
for UI tests.-A unused
for UI tests? #43896, but the reception seemed unfavorable (one 👎 react and one negatively-disposed comment). If it turned out that there was support for this after all, we would want someone to edit existing tests to not produce spuriousunused
warnings, which would be a very large PR.The text was updated successfully, but these errors were encountered: