Skip to content

rustdoc generates "Notable traits" that are impossible #76590

Closed
@cuviper

Description

@cuviper

I just noticed that the documentation on Vec::spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] has a hover icon with "Notable traits for &'_ [u8]". MaybeUninit<T> can never be a u8 (though it could be MaybeUninit<u8>), so this information is irrelevant.

image

I saw that on documentation for "Version 1.48.0-nightly (a1947b3 2020-09-10)".

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