Unfound macro diagnostic could detect a later definition and suggest moving it #79385
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
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
"You have a use of an undefined macro. I found a macro definition with the same name later in the module hierarchy. I suggest you move the macro definition so that it appears before the
mod a
in the module hierarchy, like so: ..."Instead, this happened:
(where the help here does not actually address the problem.)
Version info
Nightly channel
Build using the Nightly version: 1.50.0-nightly
(2020-11-23 d9a105f)
The text was updated successfully, but these errors were encountered: