Skip to content

rustdoc: regression: macro_export in doc(hidden) mod disappears #108231

Closed
@Nugine

Description

@Nugine

Code

I tried this code:

#[doc(hidden)]
pub mod __internal {
    /// Foooooo
    #[macro_export]
    macro_rules! foo {
        () => {};
    }
}

I expected to see this happen:
expected.png

Instead, this happened:
happened.png

Version it worked on

It most recently worked on: Rust 1.67.1, Rust nightly-2023-02-03

rustc 1.69.0-nightly (f3126500f 2023-02-02)
binary: rustc
commit-hash: f3126500f25114ba4e0ac3e76694dd45a22de56d
commit-date: 2023-02-02
host: x86_64-unknown-linux-gnu
release: 1.69.0-nightly
LLVM version: 15.0.7

Version with regression

Rust nightly-2023-02-04

rustc --version --verbose:

rustc 1.69.0-nightly (658fad6c5 2023-02-03)
binary: rustc
commit-hash: 658fad6c5506f41c35b64fb1a22ceb0992697ff3
commit-date: 2023-02-03
host: x86_64-unknown-linux-gnu
release: 1.69.0-nightly
LLVM version: 15.0.7

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged

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-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions