Skip to content

Docs feature banner will not show on top level docs when using glob export #120487

Closed
@iamsauravsharma

Description

@iamsauravsharma

I tried this code:

#![feature(doc_cfg)]

mod a {
    #[doc(cfg(feature = "a"))]
    #[cfg(feature = "a")]
    pub struct Test1;
}

pub use a::*;

I expected to see this happen:
Screenshot 2024-01-30 at 13-06-34 doc_cfg - Rust

Instead, this happened:
Screenshot 2024-01-30 at 13-06-57 doc_cfg - Rust

This is issue from nightly-2023-12-16. First screenshot is of nightly-2023-12-15 and second is of nightly-2023-12-16

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.F-doc_cfg`#![feature(doc_cfg)]`T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions