Skip to content

Commit 69e4990

Browse files
committed
update equal_up_to_regions
1 parent f632bd1 commit 69e4990

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_mir/transform/validate.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ pub fn equal_up_to_regions(
7474
fn relate_with_variance<T: Relate<'tcx>>(
7575
&mut self,
7676
_: ty::Variance,
77-
a: &T,
78-
b: &T,
77+
a: T,
78+
b: T,
7979
) -> RelateResult<'tcx, T> {
8080
// Ignore variance, require types to be exactly the same.
8181
self.relate(a, b)
@@ -108,8 +108,8 @@ pub fn equal_up_to_regions(
108108

109109
fn binders<T>(
110110
&mut self,
111-
a: &ty::Binder<T>,
112-
b: &ty::Binder<T>,
111+
a: ty::Binder<T>,
112+
b: ty::Binder<T>,
113113
) -> RelateResult<'tcx, ty::Binder<T>>
114114
where
115115
T: Relate<'tcx>,
@@ -121,7 +121,7 @@ pub fn equal_up_to_regions(
121121

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

127127
struct TypeChecker<'a, 'tcx> {

0 commit comments

Comments
 (0)