rustc shouldn't say 'not in scope' when using a derive macro as a macro_rules macro #76429
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code (playground):
This is not particularly helpful (in fact it's incorrect).
Debug
is in scope, it's just not a macro rules macro. Instead the error should say something likeThe text was updated successfully, but these errors were encountered: