@@ -10,7 +10,7 @@ use rustc_hir::FnRetTy::Return;
10
10
use rustc_hir:: {
11
11
BareFnTy , BodyId , FnDecl , GenericArg , GenericBound , GenericParam , GenericParamKind , Generics , Impl , ImplItem ,
12
12
ImplItemKind , Item , ItemKind , LangItem , Lifetime , LifetimeName , ParamName , PolyTraitRef , PredicateOrigin ,
13
- TraitBoundModifier , TraitFn , TraitItem , TraitItemKind , Ty , TyKind , WherePredicate ,
13
+ TraitFn , TraitItem , TraitItemKind , Ty , TyKind , WherePredicate ,
14
14
} ;
15
15
use rustc_lint:: { LateContext , LateLintPass } ;
16
16
use rustc_middle:: hir:: nested_filter as middle_nested_filter;
@@ -422,7 +422,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
422
422
self . record ( & Some ( * lifetime) ) ;
423
423
}
424
424
425
- fn visit_poly_trait_ref ( & mut self , poly_tref : & ' tcx PolyTraitRef < ' tcx > , tbm : TraitBoundModifier ) {
425
+ fn visit_poly_trait_ref ( & mut self , poly_tref : & ' tcx PolyTraitRef < ' tcx > ) {
426
426
let trait_ref = & poly_tref. trait_ref ;
427
427
if CLOSURE_TRAIT_BOUNDS . iter ( ) . any ( |& item| {
428
428
self . cx
@@ -435,7 +435,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
435
435
sub_visitor. visit_trait_ref ( trait_ref) ;
436
436
self . nested_elision_site_lts . append ( & mut sub_visitor. all_lts ( ) ) ;
437
437
} else {
438
- walk_poly_trait_ref ( self , poly_tref, tbm ) ;
438
+ walk_poly_trait_ref ( self , poly_tref) ;
439
439
}
440
440
}
441
441
@@ -466,7 +466,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
466
466
self . unelided_trait_object_lifetime = true ;
467
467
}
468
468
for bound in bounds {
469
- self . visit_poly_trait_ref ( bound, TraitBoundModifier :: None ) ;
469
+ self . visit_poly_trait_ref ( bound) ;
470
470
}
471
471
} ,
472
472
_ => walk_ty ( self , ty) ,
0 commit comments