Skip to content

Linking to str::replacen from alloc crate docstring creates a broken link fragment #98941

Open
@WilliamVenner

Description

@WilliamVenner

Hi, in my PR #97977 I was unable to link to str::replacen from the alloc crate in a docstring:

/// [`str::replacen(..., 1)`]: str::replacen

Rustbook (x86_64-unknown-linux-gnu) - embedded-book
Rustbook (x86_64-unknown-linux-gnu) - edition-guide
Building stage0 tool linkchecker (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.17s
alloc/string/struct.String.html:842: broken link fragment `#method.replacen` pointing to `core/primitive.str.html`
number of HTML files scanned: 32333
number of HTML redirects found: 10095
number of links checked: 2261468
number of links ignored due to external: 112628

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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