@@ -146,9 +146,9 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
146
146
continue ;
147
147
}
148
148
149
- if self . error_implies ( & error2. predicate , & error. predicate )
149
+ if self . error_implies ( error2. predicate , error. predicate )
150
150
&& !( error2. index >= error. index
151
- && self . error_implies ( & error. predicate , & error2. predicate ) )
151
+ && self . error_implies ( error. predicate , error2. predicate ) )
152
152
{
153
153
info ! ( "skipping {:?} (implied by {:?})" , error, error2) ;
154
154
is_suppressed[ index] = true ;
@@ -500,7 +500,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
500
500
ty:: PredicateKind :: RegionOutlives ( ref predicate) => {
501
501
let predicate = self . resolve_vars_if_possible ( predicate) ;
502
502
let err = self
503
- . region_outlives_predicate ( & obligation. cause , & predicate)
503
+ . region_outlives_predicate ( & obligation. cause , predicate)
504
504
. err ( )
505
505
. unwrap ( ) ;
506
506
struct_span_err ! (
@@ -955,7 +955,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
955
955
trait InferCtxtPrivExt < ' tcx > {
956
956
// returns if `cond` not occurring implies that `error` does not occur - i.e., that
957
957
// `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 ;
959
959
960
960
fn report_fulfillment_error (
961
961
& self ,
@@ -1042,7 +1042,7 @@ trait InferCtxtPrivExt<'tcx> {
1042
1042
impl < ' a , ' tcx > InferCtxtPrivExt < ' tcx > for InferCtxt < ' a , ' tcx > {
1043
1043
// returns if `cond` not occurring implies that `error` does not occur - i.e., that
1044
1044
// `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 {
1046
1046
if cond == error {
1047
1047
return true ;
1048
1048
}
@@ -1055,7 +1055,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
1055
1055
}
1056
1056
} ;
1057
1057
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) ) {
1059
1059
if let ty:: PredicateKind :: Trait ( implication, _) = obligation. predicate . kind ( ) {
1060
1060
let error = error. to_poly_trait_ref ( ) ;
1061
1061
let implication = implication. to_poly_trait_ref ( ) ;
0 commit comments