about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-10-01 18:42:38 +0200
committerGitHub <noreply@github.com>2025-10-01 18:42:38 +0200
commit8e289788f95d2f611f49f40c1059e555ea9390dc (patch)
tree8bc641be29b93ccf22ab91bcf2b75cfb5636d890 /compiler
parentae60ebd46daace4af7eae5e254b39f55b8b51e92 (diff)
parent96fb1b3b559ccc8ed051c95fa5385f9ba4030a01 (diff)
downloadrust-8e289788f95d2f611f49f40c1059e555ea9390dc.tar.gz
rust-8e289788f95d2f611f49f40c1059e555ea9390dc.zip
Rollup merge of #147226 - jdonszelmann:pattern-types-next-solver, r=lcnr
include `outer_inclusive_binder` of pattern types

Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/237

r? ```@lcnr```
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_type_ir/src/flags.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_type_ir/src/flags.rs b/compiler/rustc_type_ir/src/flags.rs
index 24704c5bb53..ea3903d401e 100644
--- a/compiler/rustc_type_ir/src/flags.rs
+++ b/compiler/rustc_type_ir/src/flags.rs
@@ -347,6 +347,7 @@ impl<I: Interner> FlagComputation<I> {
 
     fn add_ty_pat(&mut self, pat: <I as Interner>::Pat) {
         self.add_flags(pat.flags());
+        self.add_exclusive_binder(pat.outer_exclusive_binder());
     }
 
     fn add_predicate(&mut self, binder: ty::Binder<I, ty::PredicateKind<I>>) {