@@ -9,8 +9,8 @@ use rustc_hir::intravisit::{
9
9
use rustc_hir:: FnRetTy :: Return ;
10
10
use rustc_hir:: {
11
11
BareFnTy , BodyId , FnDecl , GenericArg , GenericBound , GenericParam , GenericParamKind , Generics , Impl , ImplItem ,
12
- ImplItemKind , Item , ItemKind , LangItem , Lifetime , LifetimeName , ParamName , PolyTraitRef , PredicateOrigin ,
13
- TraitFn , TraitItem , TraitItemKind , Ty , TyKind , WherePredicate ,
12
+ ImplItemKind , Item , ItemKind , LangItem , Lifetime , LifetimeName , ParamName , PolyTraitRef , PredicateOrigin , TraitFn ,
13
+ 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;
@@ -461,7 +461,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
461
461
sub_visitor. visit_fn_decl ( decl) ;
462
462
self . nested_elision_site_lts . append ( & mut sub_visitor. all_lts ( ) ) ;
463
463
} ,
464
- TyKind :: TraitObject ( bounds, ref lt, _) => {
464
+ TyKind :: TraitObject ( bounds, lt, _) => {
465
465
if !lt. is_elided ( ) {
466
466
self . unelided_trait_object_lifetime = true ;
467
467
}
0 commit comments