macro rules shadowing error should emit where the macro being shadowed lives #49084
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
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.
The
macro-expanded `macro_rules!`s may not shadow existing macros
should mention where the macro being shadowed was defined.For example compiling
stdsimd
I get the following error:which tells me that I am defining a macro that is already defined somewhere, but it is not telling me where. That would make this diagnostic much better.
The text was updated successfully, but these errors were encountered: