Unexpected warning when doc string invokes a macro which is defined within the same module #133656
Labels
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-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a follow-up of #124535 (comment).
TLDR: it looks like #124535 might have not been completely resolved, or at least there are some undetected edge cases in c4c7859...
Issue Description
In the minimal reproduction (rami3l/repro_rust_124535), we have:
I expected to see this happen: ✅
Instead, this happened:
Also, it's worth noticing that after inlining the macro invocation in
lib.rs
, i.e.:... the error seems gone.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: