Skip to content

Commit 38c522c

Browse files
committed
Project Binder and Predicate from Interner trait
1 parent e8d152d commit 38c522c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_middle/src/ty/context.rs

+2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
100100
type AdtDef = ty::AdtDef<'tcx>;
101101
type SubstsRef = ty::SubstsRef<'tcx>;
102102
type DefId = DefId;
103+
type Binder<T> = Binder<'tcx, T>;
103104
type Ty = Ty<'tcx>;
104105
type Const = ty::Const<'tcx>;
105106
type Region = Region<'tcx>;
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

+2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ pub trait Interner {
3232
type AdtDef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3333
type SubstsRef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3434
type DefId: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
35+
type Binder<T>;
3536
type Ty: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3637
type Const: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3738
type Region: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
39+
type Predicate;
3840
type TypeAndMut: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3941
type Mutability: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
4042
type Movability: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;

0 commit comments

Comments
 (0)