Skip to content

Commit

Permalink
update equal_up_to_regions
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jun 30, 2020
1 parent f632bd1 commit 69e4990
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc_mir/transform/validate.rs
Expand Up @@ -74,8 +74,8 @@ pub fn equal_up_to_regions(
fn relate_with_variance<T: Relate<'tcx>>(
&mut self,
_: ty::Variance,
a: &T,
b: &T,
a: T,
b: T,
) -> RelateResult<'tcx, T> {
// Ignore variance, require types to be exactly the same.
self.relate(a, b)
Expand Down Expand Up @@ -108,8 +108,8 @@ pub fn equal_up_to_regions(

fn binders<T>(
&mut self,
a: &ty::Binder<T>,
b: &ty::Binder<T>,
a: ty::Binder<T>,
b: ty::Binder<T>,
) -> RelateResult<'tcx, ty::Binder<T>>
where
T: Relate<'tcx>,
Expand All @@ -121,7 +121,7 @@ pub fn equal_up_to_regions(

// Instantiate and run relation.
let mut relator: LifetimeIgnoreRelation<'tcx> = LifetimeIgnoreRelation { tcx: tcx, param_env };
relator.relate(&src, &dest).is_ok()
relator.relate(src, dest).is_ok()
}

struct TypeChecker<'a, 'tcx> {
Expand Down

0 comments on commit 69e4990

Please sign in to comment.