Skip to content

NLL: missing suggestion to use move keyword on closures #51169

Closed
@pnkfelix

Description

@pnkfelix

In a number of tests, NLL regresses the diagnostics in that they stop including the suggestion: “to force the closure to take ownership, use the move keyword.”

This is relevant to the following ui/ stderr test files:

Update: various diagnostics have improved to the point where I can now identify them as belonging to this issue, when before they were too impoverished for me to tell. I'm adding to the list above as I discover such cases.

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.NLL-diagnosticsWorking towards the "diagnostic parity" goalT-langRelevant to the language 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