Skip to content

rustdoc shows associated type in supertrait bound twice when both Deref and DerefMut have a Target bound #122928

Closed
@RalfJung

Description

@RalfJung

This is visible here:

pub trait AllocBytes: Clone + Debug + Eq + PartialEq + Hash + Deref<Target = [u8], Target = [u8]> + DerefMut {

Compared to the actual sources, the Target = [u8] is duplicated at Deref but missing at DerefMut.

pub trait AllocBytes:
    Clone + fmt::Debug + Eq + PartialEq + Hash + Deref<Target = [u8]> + DerefMut<Target = [u8]>

(On DerefMut the constraint is redundant, that is likely what is throwing rustdoc off.)

Cc @rust-lang/rustdoc

Metadata

Metadata

Assignees

Labels

A-associated-itemsArea: Associated items (types, constants & functions)A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateC-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