Skip to content

rustdoc: redundant where 'env: 'env #58737

@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.

Activity

added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
C-bugCategory: This is a bug.
on Feb 25, 2019
added a commit that references this issue on Apr 5, 2019
e5435d9
ollie27

ollie27 commented on Apr 7, 2019

@ollie27
Member

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.html
image

jyn514

jyn514 commented on Aug 25, 2020

@jyn514
Member

This is no longer present for Arguments on nightly ... can someone come up with an MVCE?

added
E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
on Aug 25, 2020
jyn514

jyn514 commented on Dec 16, 2020

@jyn514
Member

Since Arguments is fixed on master and Scope works as well, I'm going to close this. Feel free to reopen if you find somewhere else this bug appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Participants

    @jonas-schievink@GuillaumeGomez@ollie27@jyn514

    Issue actions

      rustdoc: redundant `where 'env: 'env` · Issue #58737 · rust-lang/rust