The compiler should complain about unknown features before complaining about missing crate attributes #83998
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
I think it would be much more helpful if the compiler complained about the unknown feature before it complains about me needing to add the feature. This led to a very confusing moment when I was missing the
s
at the end ofcustom_test_frameworks
which the compiler didn't tell me about. That, or maybe it should just display both of those errors at once?What I'm describing here is rather specific but maybe this can be made more general so that the compiler always rants about unknown attributes first? Not sure how feasible that is or how much sense that makes in other cases.
The text was updated successfully, but these errors were encountered: