Skip to content

Rustdoc 'specification' disagrees with actual output on re-exports. #149640

@ralfbiedert

Description

@ralfbiedert

Location (URL)

https://doc.rust-lang.org/beta/rustdoc/write-documentation/re-exports.html

Summary

The documentation for this

mod private_mod {
    /// First
    pub struct InPrivate;
}

/// Second
#[doc(hidden)]
pub use self::private_mod::InPrivate as Hidden;
/// Third
pub use self::Hidden as Visible;

says the output should be First Third, while in reality it is Third First.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.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