@@ -82,7 +82,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
8282 where
8383 T : ToTrace < ' tcx > ,
8484 {
85- self . trace_exp ( a_is_expected, a, b) . sub ( & a, & b)
85+ self . trace_exp ( a_is_expected, a, b) . sub ( a, b)
8686 }
8787
8888 /// Makes `actual <: expected`. For example, if type-checking a
@@ -109,15 +109,15 @@ impl<'a, 'tcx> At<'a, 'tcx> {
109109 where
110110 T : ToTrace < ' tcx > ,
111111 {
112- self . trace_exp ( a_is_expected, a, b) . eq ( & a, & b)
112+ self . trace_exp ( a_is_expected, a, b) . eq ( a, b)
113113 }
114114
115115 /// Makes `expected <: actual`.
116116 pub fn eq < T > ( self , expected : T , actual : T ) -> InferResult < ' tcx , ( ) >
117117 where
118118 T : ToTrace < ' tcx > ,
119119 {
120- self . trace ( expected, actual) . eq ( & expected, & actual)
120+ self . trace ( expected, actual) . eq ( expected, actual)
121121 }
122122
123123 pub fn relate < T > ( self , expected : T , variance : ty:: Variance , actual : T ) -> InferResult < ' tcx , ( ) >
@@ -147,7 +147,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
147147 where
148148 T : ToTrace < ' tcx > ,
149149 {
150- self . trace ( expected, actual) . lub ( & expected, & actual)
150+ self . trace ( expected, actual) . lub ( expected, actual)
151151 }
152152
153153 /// Computes the greatest-lower-bound, or mutual subtype, of two
@@ -157,7 +157,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
157157 where
158158 T : ToTrace < ' tcx > ,
159159 {
160- self . trace ( expected, actual) . glb ( & expected, & actual)
160+ self . trace ( expected, actual) . glb ( expected, actual)
161161 }
162162
163163 /// Sets the "trace" values that will be used for
@@ -186,7 +186,7 @@ impl<'a, 'tcx> At<'a, 'tcx> {
186186impl < ' a , ' tcx > Trace < ' a , ' tcx > {
187187 /// Makes `a <: b` where `a` may or may not be expected (if
188188 /// `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 , ( ) >
190190 where
191191 T : Relate < ' tcx > ,
192192 {
@@ -203,7 +203,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
203203
204204 /// Makes `a == b`; the expectation is set by the call to
205205 /// `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 , ( ) >
207207 where
208208 T : Relate < ' tcx > ,
209209 {
@@ -218,7 +218,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
218218 } )
219219 }
220220
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 >
222222 where
223223 T : Relate < ' tcx > ,
224224 {
@@ -233,7 +233,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
233233 } )
234234 }
235235
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 >
237237 where
238238 T : Relate < ' tcx > ,
239239 {
0 commit comments