-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goalT-langRelevant to the language teamRelevant to the language team
Description
Consider: https://github.com/rust-lang/rust/blob/master/src/test/ui/span/issue-11925.nll.stderr
Compare it to: https://github.com/rust-lang/rust/blob/master/src/test/ui/span/issue-11925.stderr
The former is missing a note that "borrowed value needs to live until here"
Oftentimes, NLL diagnostics do include a note of the form "needs to live until use here." But apparently for this case (due to closures? Or destructors? Or both?) we do not have such a use to point at.
Anyway, this represents a regression in the informativeness of our diagnostics under NLL.
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goalT-langRelevant to the language teamRelevant to the language team