about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-03-27 04:35:12 +0000
committerbors <bors@rust-lang.org>2025-03-27 04:35:12 +0000
commitea1da921c80c9296a81bce56330f178c125f0013 (patch)
tree3d6de269a66a90af24886258aa9fcb5e9c1a8d78 /compiler/rustc_pattern_analysis/src
parent2216f269c53594087dafeb99b435f1c9e3f9b7dc (diff)
parent93b3be33001d15e85b38d99560eaa337812ee90a (diff)
downloadrust-ea1da921c80c9296a81bce56330f178c125f0013.tar.gz
rust-ea1da921c80c9296a81bce56330f178c125f0013.zip
Auto merge of #138915 - compiler-errors:binder-tweak, r=lcnr
Instantiate binder before registering nested obligations for auto/built-in traits

Instead of turning a `Binder<Vec<Ty>>` into a bunch of higher-ranked predicates, instantiate the binder eagerly *once* and turn them into a bunch of non-higher-ranked predicates.

Right now this feels like a noop, but this `enter_forall_and_leak_universe` call would be the singular place where we could instantiate bound lifetime assumptions for coroutine witnesses... if we had them. Thus consolidating the binder instantiation here is useful if we want to fix the coroutine-auto-trait problem.

r? lcnr
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions