Diagnostic doesn't mention cfg'ed out items if the unresolved path is simple (i.e., a single identifier) #132166
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code, I would've expected rustc to mention the cfg'ed out item
Struct
:but it doesn't:
Only if you slightly tweak the input by replacing the simple path
Struct
with a complex one likeself::Struct
orcrate::Struct
, the note "found an item that was configured out" will show up:CC #109005. I don't know if that's intentional or not.
The text was updated successfully, but these errors were encountered: