Skip to content

NLL diagnostics has lost "closure may outlive the current function" notes #51026

Closed
@pnkfelix

Description

@pnkfelix

The following ui/ tests have regressed in the quality of their diagnostic output (compared to AST borrowck, at least) due to the loss of notes of the form "closure may outlive the current function"

  • borrowck/borrowck-escaping-closure-error-1.rs
  • borrowck/borrowck-escaping-closure-error-2.rs
  • issue-4335.stderr
  • region-borrow-params-issue-29793-small.rs
  • regions-nested-fns-2.rs "closure may outlive the current function" isn't correct here
  • src/test/ui/issue-40510-3.nll.stderr
  • src/test/ui/issue-49824.nll.stderr

(This list of tests is drawn from an informal paper document that I have been using to keep notes for myself as I work on this...)

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions