@@ -13,7 +13,7 @@ use rustc_hir::intravisit::{
13
13
walk_poly_trait_ref, walk_trait_ref, walk_ty, walk_unambig_ty, walk_where_predicate,
14
14
} ;
15
15
use rustc_hir:: {
16
- AmbigArg , BareFnTy , BodyId , FnDecl , FnSig , GenericArg , GenericArgs , GenericBound , GenericParam , GenericParamKind ,
16
+ AmbigArg , BodyId , FnDecl , FnPtrTy , FnSig , GenericArg , GenericArgs , GenericBound , GenericParam , GenericParamKind ,
17
17
Generics , HirId , Impl , ImplItem , ImplItemKind , Item , ItemKind , Lifetime , LifetimeKind , LifetimeParamKind , Node ,
18
18
PolyTraitRef , PredicateOrigin , TraitFn , TraitItem , TraitItemKind , Ty , TyKind , WhereBoundPredicate , WherePredicate ,
19
19
WherePredicateKind , lang_items,
@@ -480,7 +480,7 @@ impl<'tcx> Visitor<'tcx> for RefVisitor<'_, 'tcx> {
480
480
481
481
fn visit_ty ( & mut self , ty : & ' tcx Ty < ' _ , AmbigArg > ) {
482
482
match ty. kind {
483
- TyKind :: BareFn ( & BareFnTy { decl, .. } ) => {
483
+ TyKind :: FnPtr ( & FnPtrTy { decl, .. } ) => {
484
484
let mut sub_visitor = RefVisitor :: new ( self . cx ) ;
485
485
sub_visitor. visit_fn_decl ( decl) ;
486
486
self . nested_elision_site_lts . append ( & mut sub_visitor. all_lts ( ) ) ;
0 commit comments