-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I tried this code:
#![no_std]
#[doc(no_inline)]
pub use core::marker::Copy;
I expected to see this happen: Rustdoc links to https://doc.rust-lang.org/nightly/core/macro.Copy.html.
Instead, this happened: Rustdoc links to https://doc.rust-lang.org/nightly/core/marker/derive.Copy.html.
This is wrong in two ways:
- It uses
macro.Item.html
andderive.Item.html
inconsistently - It links to the
marker
submodule in the re-export crate but not when documentingcore
(pub macro
defined in submodule is shown at the wrong path #74355).
This issue is only for tracking 1.
Thanks @danielhenrymantilla for the bug report!
Meta
rustdoc --version
: rustdoc 1.50.0-nightly (0edce6f 2020-12-24)
danielhenrymantilla
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.