Skip to content

Rustdoc regression: stable items reexported from unstable modules appear unstable #134702

Closed
@tgross35

Description

@tgross35

Previously, stable items that are reexported from unstable modules (to stable modules) showed up as stable, which is correct because the user has a way to access them. However, since 1.83, they show up as unstable. This is accurate in one sense as they can't be stably accessed via the displayed path but is misleading because the types themselves are actually stably usable.

As an example, here is the most recent documentation from the most recent 1.83, as well as nightly https://doc.rust-lang.org/1.83.0/std/ffi/c_str/struct.FromBytesUntilNulError.html:

Image

From 1.82 https://doc.rust-lang.org/1.82.0/std/ffi/c_str/struct.FromBytesUntilNulError.html:

Image

And then 1.69, before it moved modules https://doc.rust-lang.org/1.69.0/core/ffi/struct.FromBytesUntilNulError.html:

Image

There was a related issue in the near past with method signatures https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Moving.20to.20a.20module.20breaks.20stability.20indicators

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)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-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions