Skip to content

rustdoc: Notable traits shows wrong type parameter #80737

Closed
@camelid

Description

@camelid

The "Notable traits" popup for Entry::or_insert shows notable traits for &'_ mut I when it should show &'a mut V (or at least &'_ mut V):

image

Note that this happens for other functions on Entry. Another example is Entry::key which shows &'_ mut I when it should show &'a K.

I'm not 100% sure this is a bug, but the behavior is definitely confusing: I'm not sure what the notable traits popup is referring to when it references an I type parameter (mut I doesn't even appear in the file that Entry is defined in...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemC-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