Closed
Description
If you have a function defined within a module it will use that module's imports to determine link resolution for intra-doc links in the documentation.
If you do the same with a macro, it seems to "scope" the macro (and thus its intra-doc links) at the crate root only, so the macro's documentation can't benefit from the local imports.
This feels inconsistent, and can it be fixed so that macro intra-links get the local imports for their resolution?
Metadata
Metadata
Assignees
Labels
Area: Intra-doc links, the ability to link to items in docs by nameArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: An issue proposing an enhancement or a PR with one.Issue: In need of a decision.Relevant to the rustdoc team, which will review and decide on the PR/issue.