You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unknown feature names are not reported if there are other errors #58390
A-diagnosticsArea: Messages for errors, warnings, and lintsE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
I just added an impl that I thought should be valid now with rust-lang/rfcs#2451, but I got a compiler error. So I found the RFC and copied the feature name re_rebalancing_coherence from it. However, I still got the compile error, so I spent a while trying to figure out if the impl was really valid. Eventually, I tried commenting out the impl, and then (thanks to #52644), the compiler told me the feature was unknown (it has been renamed to re_rebalance_coherence). The impl was valid using the correct feature name. I didn't get the error saying the feature name was invalid because of the error caused by the feature name being invalid.
The challenge here is that the current logic for reporting unknown features doesn't get run until stability checking. So, if there's an error before then, then the check doesn't run. While it's possible for us to get language features up-front for error reporting, library features are collected much later. So, before we can report unknown feature names earlier, we have to figure out how to collect the library names earlier.
A-diagnosticsArea: Messages for errors, warnings, and lintsE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Activity
euclio commentedon Feb 14, 2019
I'd like to work on this.
euclio commentedon Feb 14, 2019
The challenge here is that the current logic for reporting unknown features doesn't get run until stability checking. So, if there's an error before then, then the check doesn't run. While it's possible for us to get language features up-front for error reporting, library features are collected much later. So, before we can report unknown feature names earlier, we have to figure out how to collect the library names earlier.
estebank commentedon Sep 28, 2025
Current output:
Tried other cases to check that the error is still being emitted even if there are other errors.
zakrad commentedon Aug 7, 2026
@rustbot claim
Rollup merge of rust-lang#160683 - zakrad:regr-test-58390, r=estebank
Rollup merge of rust-lang#160683 - zakrad:regr-test-58390, r=estebank
Rollup merge of #160683 - zakrad:regr-test-58390, r=estebank