@@ -146,9 +146,9 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
146146 continue ;
147147 }
148148
149- if self . error_implies ( & error2. predicate , & error. predicate )
149+ if self . error_implies ( error2. predicate , error. predicate )
150150 && !( error2. index >= error. index
151- && self . error_implies ( & error. predicate , & error2. predicate ) )
151+ && self . error_implies ( error. predicate , error2. predicate ) )
152152 {
153153 info ! ( "skipping {:?} (implied by {:?})" , error, error2) ;
154154 is_suppressed[ index] = true ;
@@ -500,7 +500,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
500500 ty:: PredicateKind :: RegionOutlives ( ref predicate) => {
501501 let predicate = self . resolve_vars_if_possible ( predicate) ;
502502 let err = self
503- . region_outlives_predicate ( & obligation. cause , & predicate)
503+ . region_outlives_predicate ( & obligation. cause , predicate)
504504 . err ( )
505505 . unwrap ( ) ;
506506 struct_span_err ! (
@@ -955,7 +955,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
955955trait InferCtxtPrivExt < ' tcx > {
956956 // returns if `cond` not occurring implies that `error` does not occur - i.e., that
957957 // `error` occurring implies that `cond` occurs.
958- fn error_implies ( & self , cond : & ty:: Predicate < ' tcx > , error : & ty:: Predicate < ' tcx > ) -> bool ;
958+ fn error_implies ( & self , cond : ty:: Predicate < ' tcx > , error : ty:: Predicate < ' tcx > ) -> bool ;
959959
960960 fn report_fulfillment_error (
961961 & self ,
@@ -1042,7 +1042,7 @@ trait InferCtxtPrivExt<'tcx> {
10421042impl < ' a , ' tcx > InferCtxtPrivExt < ' tcx > for InferCtxt < ' a , ' tcx > {
10431043 // returns if `cond` not occurring implies that `error` does not occur - i.e., that
10441044 // `error` occurring implies that `cond` occurs.
1045- fn error_implies ( & self , cond : & ty:: Predicate < ' tcx > , error : & ty:: Predicate < ' tcx > ) -> bool {
1045+ fn error_implies ( & self , cond : ty:: Predicate < ' tcx > , error : ty:: Predicate < ' tcx > ) -> bool {
10461046 if cond == error {
10471047 return true ;
10481048 }
@@ -1055,7 +1055,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
10551055 }
10561056 } ;
10571057
1058- for obligation in super :: elaborate_predicates ( self . tcx , std:: iter:: once ( * cond) ) {
1058+ for obligation in super :: elaborate_predicates ( self . tcx , std:: iter:: once ( cond) ) {
10591059 if let ty:: PredicateKind :: Trait ( implication, _) = obligation. predicate . kind ( ) {
10601060 let error = error. to_poly_trait_ref ( ) ;
10611061 let implication = implication. to_poly_trait_ref ( ) ;
0 commit comments