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