-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall 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.Relevant to the rustdoc team, which will review and decide on the PR/issue.

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.
phrohdoh and estebank
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall 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.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Rollup merge of rust-lang#58894 - GuillaumeGomez:invalid-lifetime-bou…
ollie27 commentedon Apr 7, 2019
This needs to be reopened because #58894 didn't actually fix this. An example from

std
is https://doc.rust-lang.org/nightly/std/fmt/struct.Arguments.htmljyn514 commentedon Aug 25, 2020
This is no longer present for
Arguments
on nightly ... can someone come up with an MVCE?jyn514 commentedon Dec 16, 2020
Since
Arguments
is fixed on master andScope
works as well, I'm going to close this. Feel free to reopen if you find somewhere else this bug appears.