Skip to content

Commit f92b450

Browse files
committed
Project Binder and Predicate from Interner trait
1 parent 2eb4609 commit f92b450

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
103103
type Ty = Ty<'tcx>;
104104
type Const = ty::Const<'tcx>;
105105
type Region = Region<'tcx>;
106+
type Binder<T> = Binder<'tcx, T>;
107+
type Predicate = Predicate<'tcx>;
106108
type TypeAndMut = TypeAndMut<'tcx>;
107109
type Mutability = hir::Mutability;
108110
type Movability = hir::Movability;

compiler/rustc_type_ir/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ pub trait Interner {
4343
+ Ord
4444
+ BoundAtOrAboveBinder
4545
+ Flags;
46+
type Binder<T>;
47+
type Predicate: OuterExclusiveBinder + Flags;
4648
type TypeAndMut: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
4749
type Mutability: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
4850
type Movability: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;

0 commit comments

Comments
 (0)