Skip to content

NLL: incorrect "unused mut" lint warning, with multiple closures #51904

Closed

Description

@lqd

Found while trying to bootstrap Rust with NLL enabled, just in case we're not already tracking this incorrect warning (as we're already tracking other similar ones in #51801 and #51830 and more).

Reduced from libsyntax::parser::parser::parse_dot_or_call_expr_with. Probably not exactly minimal, but smaller than the whole parser :)

Repro here on the playground

Activity

  1. added
    A-NLLArea: Non-lexical lifetimes (NLL)
    NLL-diagnosticsWorking towards the "diagnostic parity" goal
    on Jun 29, 2018
  2. nikomatsakis commented on Jun 29, 2018

    @nikomatsakis
    Contributor

    Tagging as NLL-deferred because #51918 has precedence

  3. added
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jul 3, 2018
  4. added a commit that references this issue on Jul 5, 2018
    b51ca20
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)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-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

    Issue actions