apply_member_constraints
is incomplete
#142073
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-member-constraints
`#[feature(member_constraints)]`
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Applying member constraints can result in overly strong constraints, causing the following test to fail:
This is caused by the following code:
rust/compiler/rustc_borrowck/src/region_infer/mod.rs
Lines 743 to 759 in 425e142
This sort of incompleteness is unfortunately required as we can use this to lift otherwise unconstrained regions to
'static
, e.g. the following snippet otherwise fails to compileThis may become a larger concern as we're working towards the new solver which introduces a significant amount of additional uses of opaques.
The text was updated successfully, but these errors were encountered: