@@ -690,7 +690,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
690690 name : String ,
691691 sub : ty:: subst:: SubstsRef < ' tcx > ,
692692 pos : usize ,
693- other_ty : & Ty < ' tcx > ,
693+ other_ty : Ty < ' tcx > ,
694694 ) {
695695 // `value` and `other_value` hold two incomplete type representation for display.
696696 // `name` is the path of both types being compared. `sub`
@@ -768,10 +768,10 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
768768 path : String ,
769769 sub : ty:: subst:: SubstsRef < ' tcx > ,
770770 other_path : String ,
771- other_ty : & Ty < ' tcx > ,
771+ other_ty : Ty < ' tcx > ,
772772 ) -> Option < ( ) > {
773773 for ( i, ta) in sub. types ( ) . enumerate ( ) {
774- if & ta == other_ty {
774+ if ta == other_ty {
775775 self . highlight_outer ( & mut t1_out, & mut t2_out, path, sub, i, & other_ty) ;
776776 return Some ( ( ) ) ;
777777 }
@@ -839,7 +839,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
839839 /// Compares two given types, eliding parts that are the same between them and highlighting
840840 /// relevant differences, and return two representation of those types for highlighted printing.
841841 fn cmp ( & self , t1 : Ty < ' tcx > , t2 : Ty < ' tcx > ) -> ( DiagnosticStyledString , DiagnosticStyledString ) {
842- fn equals < ' tcx > ( a : & Ty < ' tcx > , b : & Ty < ' tcx > ) -> bool {
842+ fn equals < ' tcx > ( a : Ty < ' tcx > , b : Ty < ' tcx > ) -> bool {
843843 match ( & a. sty , & b. sty ) {
844844 ( a, b) if * a == * b => true ,
845845 ( & ty:: Int ( _) , & ty:: Infer ( ty:: InferTy :: IntVar ( _) ) )
@@ -1099,7 +1099,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
10991099 }
11001100 } ;
11011101
1102- let span = cause. span ( & self . tcx ) ;
1102+ let span = cause. span ( self . tcx ) ;
11031103
11041104 diag. span_label ( span, terr. to_string ( ) ) ;
11051105 if let Some ( ( sp, msg) ) = secondary_span {
@@ -1233,7 +1233,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
12331233 trace, terr
12341234 ) ;
12351235
1236- let span = trace. cause . span ( & self . tcx ) ;
1236+ let span = trace. cause . span ( self . tcx ) ;
12371237 let failure_code = trace. cause . as_failure_code ( terr) ;
12381238 let mut diag = match failure_code {
12391239 FailureCode :: Error0317 ( failure_str) => {
0 commit comments