Skip to content

stable rustdoc should prune unstable items from stdlib docs #31156

Closed
@tomjakubowski

Description

@tomjakubowski

For example, http://doc.rust-lang.org/std/error/trait.Error.html includes impls for unstable structs like std::ffi::IntoStringError. Like #31098, this is "dangling a carrot" which users of stable rust can't reach! I think that the doc page for IntoStringError shouldn't exist in the set of stable docs.

There are already passes to strip things like #[doc(hidden)] and private items from the crate before generating documentation. The same could be done for unstable items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions