@@ -82,7 +82,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
82
82
where
83
83
T : ToTrace < ' tcx > ,
84
84
{
85
- self . trace_exp ( a_is_expected, a, b) . sub ( & a, & b)
85
+ self . trace_exp ( a_is_expected, a, b) . sub ( a, b)
86
86
}
87
87
88
88
/// Makes `actual <: expected`. For example, if type-checking a
@@ -109,15 +109,15 @@ impl<'a, 'tcx> At<'a, 'tcx> {
109
109
where
110
110
T : ToTrace < ' tcx > ,
111
111
{
112
- self . trace_exp ( a_is_expected, a, b) . eq ( & a, & b)
112
+ self . trace_exp ( a_is_expected, a, b) . eq ( a, b)
113
113
}
114
114
115
115
/// Makes `expected <: actual`.
116
116
pub fn eq < T > ( self , expected : T , actual : T ) -> InferResult < ' tcx , ( ) >
117
117
where
118
118
T : ToTrace < ' tcx > ,
119
119
{
120
- self . trace ( expected, actual) . eq ( & expected, & actual)
120
+ self . trace ( expected, actual) . eq ( expected, actual)
121
121
}
122
122
123
123
pub fn relate < T > ( self , expected : T , variance : ty:: Variance , actual : T ) -> InferResult < ' tcx , ( ) >
@@ -147,7 +147,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
147
147
where
148
148
T : ToTrace < ' tcx > ,
149
149
{
150
- self . trace ( expected, actual) . lub ( & expected, & actual)
150
+ self . trace ( expected, actual) . lub ( expected, actual)
151
151
}
152
152
153
153
/// Computes the greatest-lower-bound, or mutual subtype, of two
@@ -157,7 +157,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
157
157
where
158
158
T : ToTrace < ' tcx > ,
159
159
{
160
- self . trace ( expected, actual) . glb ( & expected, & actual)
160
+ self . trace ( expected, actual) . glb ( expected, actual)
161
161
}
162
162
163
163
/// Sets the "trace" values that will be used for
@@ -186,7 +186,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
186
186
impl < ' a , ' tcx > Trace < ' a , ' tcx > {
187
187
/// Makes `a <: b` where `a` may or may not be expected (if
188
188
/// `a_is_expected` is true, then `a` is expected).
189
- pub fn sub < T > ( self , a : & T , b : & T ) -> InferResult < ' tcx , ( ) >
189
+ pub fn sub < T > ( self , a : T , b : T ) -> InferResult < ' tcx , ( ) >
190
190
where
191
191
T : Relate < ' tcx > ,
192
192
{
@@ -203,7 +203,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
203
203
204
204
/// Makes `a == b`; the expectation is set by the call to
205
205
/// `trace()`.
206
- pub fn eq < T > ( self , a : & T , b : & T ) -> InferResult < ' tcx , ( ) >
206
+ pub fn eq < T > ( self , a : T , b : T ) -> InferResult < ' tcx , ( ) >
207
207
where
208
208
T : Relate < ' tcx > ,
209
209
{
@@ -218,7 +218,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
218
218
} )
219
219
}
220
220
221
- pub fn lub < T > ( self , a : & T , b : & T ) -> InferResult < ' tcx , T >
221
+ pub fn lub < T > ( self , a : T , b : T ) -> InferResult < ' tcx , T >
222
222
where
223
223
T : Relate < ' tcx > ,
224
224
{
@@ -233,7 +233,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
233
233
} )
234
234
}
235
235
236
- pub fn glb < T > ( self , a : & T , b : & T ) -> InferResult < ' tcx , T >
236
+ pub fn glb < T > ( self , a : T , b : T ) -> InferResult < ' tcx , T >
237
237
where
238
238
T : Relate < ' tcx > ,
239
239
{
0 commit comments