-
-
Notifications
You must be signed in to change notification settings - Fork 15k
error promoting type-tests from closures #108635
Copy link
Copy link
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)A-borrow-checkerArea: The borrow checkerArea: The borrow checkerC-bugCategory: This is a bug.Category: This is a bug.NLL-completeWorking towards the "valid code works" goalWorking towards the "valid code works" goalT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)A-borrow-checkerArea: The borrow checkerArea: The borrow checkerC-bugCategory: This is a bug.Category: This is a bug.NLL-completeWorking towards the "valid code works" goalWorking towards the "valid code works" goalT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The following should pass borrowck:
When promoting the type-test
I::Item::<'_>: 'staticfrom the closure to the parent function, we fail to do so because we can't express'_in terms of universal regions because the corresponding free region doesn't have anexternal_name?:rust/compiler/rustc_borrowck/src/region_infer/mod.rs
Line 1147 in 0b4ba4c
@rustbot label C-bug T-types A-NLL NLL-complete A-borrow-checker