Allow shadowing of procedural macro generated macros #57283
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following expression compiles if
macro_rules! m
is generated by a macro_rules macro, but not ifmacro_rules! m
is generated by a procedural macro. I believe it should compile in both cases. The invocation ofm!
should resolve to the innermost one, as happens for all other types of items.Repro:
src/main.rs
src/lib.rs
Mentioning @petrochenkov who worked on #52841 and fixed #53205.
Mentioning @cramertj who hit this using proc-macro-hack in futures.
The text was updated successfully, but these errors were encountered: