Skip to content

Cross-crate intra-doc links broken for functions when there's a doc(hidden) full-crate reexport involved #73363

Closed
@Manishearth

Description

@Manishearth

Discovered in rust-lang/futures-rs#2177 (comment)

// crate main:
pub use dependency::future::{ready, Ready};

// crate dependency:

#[doc(hidden)]
pub mod __reexport {
    pub use crate::*;
}

pub mod future {
    mod ready {

        /// Link to [`ready`](function@ready)
        pub struct Ready;
        pub fn ready() {}

    }
    pub use self::ready::{ready, Ready};

}

The link to ready does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameT-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