cfg resolve diagnostic doesn't show up for derive macro that matches trait name #134448
Labels
A-cfg
Area: `cfg` conditional compilation
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
Without the macro feature enabled.
Current output
Desired output
Rationale and extra context
The detection of cfg'd out items should treat items that match the expected type (e.g. a macro) as higher priority than items which match the name (e.g.
FromRef
)Other cases
Rust Version
Anything else?
Similar to but not the same as #132166
Possibly relevant to #129183
The text was updated successfully, but these errors were encountered: