Skip to content

Regression in rustdoc of re-export involving namespace overlap #105735

Closed
@dtolnay

Description

@dtolnay
// src/lib.rs

mod thing {
    pub use core::sync::atomic::AtomicU8; // anything from a dependency, type namespace

    #[allow(non_upper_case_globals)]
    pub const AtomicU8: () = (); // value namespace
}

pub use crate::thing::AtomicU8;
cargo +nightly-2022-12-02 doc cargo +nightly-2022-12-03 doc
Screenshot from 2022-12-14 22-02-13 Screenshot from 2022-12-14 22-02-08

I believe the one on the left is what I would consider the correct rendering, and the one on the right is a regression.

The regression is in nightly-2022-12-03, specifically #104963 according to bisect, which makes sense. Mentioning @petrochenkov @cjgillot in case an obvious cause stands out to either of you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions