Skip to content

Anchor names for some impls are not predictable #71912

Description

@nwalfield

I have a struct with a generic type:

struct ComponentBundle<C> {
    component: C,
    ...
}

Then I have implementations for different concrete types, e.g.,:

impl ComponentBundle<UserID> {
    ...
}

I want to link to the documentation for one of those implementations. But their anchors are called "#method.revocation_status-1", "#method.revocation_status-2", etc., which is brittle. It would be nice if the anchor names were more predictable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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