Skip to content

hashbrown's trait implementations appear in std docs #62763

Description

@17cupsofcoffee

Perhaps this is a known issue, but I've noticed that since hashbrown was integrated into the standard library, impls from that crate now show up under the 'Implementations on Foreign Types' section of the trait docs.

This is unfortunate, since the hashbrown versions of those types aren't actually accessible through std (std::collections::HashMap and std::collections::HashSet are effectively newtypes wrapping them). Adding to the confusion, these seem to get precedence naming-wise over the actual implementations that you can use, which are referred to by their fully qualified names further down the page.

I'm not sure if anything can actually be done about this without changes to rustdoc, and it's not a huge deal, but I figured it was worth raising :)

Activity

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

Metadata

Metadata

Labels

A-collectionsArea: `std::collections`A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libs-api[DEPRECATED; DO NOT USE]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