Skip to content

rustdoc: redundant where 'env: 'env #58737

Closed
@ghost

Description

Source: https://docs.rs/crossbeam/0.7.1/crossbeam/thread/struct.Scope.html

Generated by rustdoc:

pub struct Scope<'env>
where
    'env: 'env,
 { /* fields omitted */ }

Original code:

pub struct Scope<'env> {
    handles: SharedVec<SharedOption<thread::JoinHandle<()>>>,
    wait_group: WaitGroup,
    _marker: PhantomData<&'env mut &'env ()>,
}

Rustdoc has somehow inferred the 'env: 'env bound, which is a tautology.

Metadata

Metadata

Labels

C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-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