Skip to content

Rustdoc regression: duplicate macro in sidebar #89852

Closed
@dtolnay

Description

@dtolnay
#[macro_export]
macro_rules! repro {
    () => {};
}

pub use crate::repro as repro2;
$ cargo doc --open

In current stable, and nightly-2021-08-28:

Screenshot from 2021-10-13 10-33-42


In current beta, current nightly, and nightly-2021-08-29:

Screenshot from 2021-10-13 10-33-55


Notice that repro appears twice in the sidebar under the list of macros exported by the crate.

Bisects to #88019.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions