Skip to content

rustdoc: duplicated lifetimes #56331

Closed
@Centril

Description

@Centril

Example: https://doc.rust-lang.org/nightly/std/slice/struct.Iter.html

pub struct Iter<'a, T> where
    T: 'a + 'a,  { /* fields omitted */ }

Behavior is observable on stable and nightly.

Clearly 'a + 'a can be shortened to just 'a.

Metadata

Metadata

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