Skip to content

[nll] overly strict T: 'static bound arising from closure #53570

@nikomatsakis

Description

@nikomatsakis
Contributor

The recent crater run found an incorrect T: 'static bound compiling cswinter.locustdb.c5942997e6bdbb94fe0920e67bd96b0637399b97 (log). This looks perhaps like a variant of #53119.

Minimized reproduction available here..

Activity

added this to the Rust 2018 RC milestone on Aug 21, 2018
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Aug 21, 2018
nikomatsakis

nikomatsakis commented on Aug 21, 2018

@nikomatsakis
ContributorAuthor

The following errors look similar, but it's hard to tell if it's the same problem:

nikomatsakis

nikomatsakis commented on Aug 27, 2018

@nikomatsakis
ContributorAuthor

Did a bit of digging. The error here seems to result from us (incorrectly, I think?) promoting a '_#5 bound (which represents 'a in the minimized example) to 'static. I'm not 100% sure why this is happening yet, had to stop digging for now, will return to it.

self-assigned this
on Aug 27, 2018
nikomatsakis

nikomatsakis commented on Aug 27, 2018

@nikomatsakis
ContributorAuthor

OK, I see the problem and have a forthcoming fix.

nikomatsakis

nikomatsakis commented on Sep 5, 2018

@nikomatsakis
ContributorAuthor

Leaving this on the RC milestone — fix is in #53745

added a commit that references this issue on Sep 7, 2018
295ad30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)NLL-completeWorking towards the "valid code works" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @nikomatsakis

      Issue actions

        [nll] overly strict `T: 'static` bound arising from closure · Issue #53570 · rust-lang/rust