Skip to content

Commit f1c83de

Browse files
varkoryodaldevoid
andcommitted
Add consts to TypeRelation
Co-Authored-By: Gabriel Smith <[email protected]>
1 parent 9b67bd4 commit f1c83de

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/librustc/ty/relate.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,19 @@ pub trait TypeRelation<'a, 'gcx: 'a+'tcx, 'tcx: 'a> : Sized {
7676
// additional hooks for other types in the future if needed
7777
// without making older code, which called `relate`, obsolete.
7878

79-
fn tys(&mut self, a: Ty<'tcx>, b: Ty<'tcx>)
80-
-> RelateResult<'tcx, Ty<'tcx>>;
81-
82-
fn regions(&mut self, a: ty::Region<'tcx>, b: ty::Region<'tcx>)
83-
-> RelateResult<'tcx, ty::Region<'tcx>>;
79+
fn tys(&mut self, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>>;
80+
81+
fn regions(
82+
&mut self,
83+
a: ty::Region<'tcx>,
84+
b: ty::Region<'tcx>
85+
) -> RelateResult<'tcx, ty::Region<'tcx>>;
86+
87+
fn consts(
88+
&mut self,
89+
a: &'tcx ty::LazyConst<'tcx>,
90+
b: &'tcx ty::LazyConst<'tcx>
91+
) -> RelateResult<'tcx, &'tcx ty::LazyConst<'tcx>>;
8492

8593
fn binders<T>(&mut self, a: &ty::Binder<T>, b: &ty::Binder<T>)
8694
-> RelateResult<'tcx, ty::Binder<T>>

0 commit comments

Comments
 (0)