Skip to content

Broken link to incoherent impl #109123

Open
Open
@lukas-code

Description

@lukas-code

On this page https://doc.rust-lang.org/nightly/core/primitive.slice.html#method.binary_search_by_key (core, not std) there is a broken link [sort_by_key] -> slice::sort_by_key (interpreted as protocol "slice"). This seems to happen because sort_by_key is defined as an incoherent impl in alloc.

screenshot of link

I found this when running a link checker for a no-std project with a type with Deref<Target = [T]>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.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