File tree 1 file changed +5
-5
lines changed
src/librustc_mir/transform
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ pub fn equal_up_to_regions(
74
74
fn relate_with_variance < T : Relate < ' tcx > > (
75
75
& mut self ,
76
76
_: ty:: Variance ,
77
- a : & T ,
78
- b : & T ,
77
+ a : T ,
78
+ b : T ,
79
79
) -> RelateResult < ' tcx , T > {
80
80
// Ignore variance, require types to be exactly the same.
81
81
self . relate ( a, b)
@@ -108,8 +108,8 @@ pub fn equal_up_to_regions(
108
108
109
109
fn binders < T > (
110
110
& mut self ,
111
- a : & ty:: Binder < T > ,
112
- b : & ty:: Binder < T > ,
111
+ a : ty:: Binder < T > ,
112
+ b : ty:: Binder < T > ,
113
113
) -> RelateResult < ' tcx , ty:: Binder < T > >
114
114
where
115
115
T : Relate < ' tcx > ,
@@ -121,7 +121,7 @@ pub fn equal_up_to_regions(
121
121
122
122
// Instantiate and run relation.
123
123
let mut relator: LifetimeIgnoreRelation < ' tcx > = LifetimeIgnoreRelation { tcx : tcx, param_env } ;
124
- relator. relate ( & src, & dest) . is_ok ( )
124
+ relator. relate ( src, dest) . is_ok ( )
125
125
}
126
126
127
127
struct TypeChecker < ' a , ' tcx > {
You can’t perform that action at this time.
0 commit comments