]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #101454 - cjgillot:concat-binders, r=estebank
authorbors <bors@rust-lang.org>
Wed, 28 Sep 2022 14:42:55 +0000 (14:42 +0000)
committerbors <bors@rust-lang.org>
Wed, 28 Sep 2022 14:42:55 +0000 (14:42 +0000)
Do not overwrite lifetime binders for another HirId.

This PR makes higher-ranked bounds in where clauses a bit more principled.
We used to conflate `for<'a> T: Trait` with `(for<'a> T): Trait`.
This PR separates both binders.

This caused issued with fn types, which have their own binder, causing us to overwrite the predicates's binders with `fn`'s binders, ICEing.

Fixes https://github.com/rust-lang/rust/issues/98594


Trivial merge