Skip to content

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

Closed
@lqd

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

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