Skip to content

rustdoc: Invalid automatic link #142456

Open
@Hywan

Description

@Hywan

I open https://docs.rs/smol/latest/smol/stream/struct.Map.html.
I see a link to StreamExt::map(), which is an auto-intra-link, see the source code:

pin_project! {
    /// Stream for the [`StreamExt::map()`] method.
    #[derive(Clone, Debug)]
    #[must_use = "streams do nothing unless polled"]
    pub struct Map<S, F> {
        #[pin]
        stream: S,
        f: F,
    }
}

rustdoc computes it as a link to …/prelude/trait._.html#method.map, which is incorrect.

As agreed with @GuillaumeGomez, I'm opening this bug to track it 🐛.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-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