@@ -313,7 +313,7 @@ impl<'tcx> Visitor<'tcx> for CollectItemTypesVisitor<'tcx> {
313313 fn visit_expr ( & mut self , expr : & ' tcx hir:: Expr < ' tcx > ) {
314314 if let hir:: ExprKind :: Closure ( closure) = expr. kind {
315315 self . tcx . ensure_ok ( ) . generics_of ( closure. def_id ) ;
316- self . tcx . ensure_ok ( ) . codegen_fn_attrs ( closure. def_id ) ;
316+ self . tcx . ensure_ok ( ) . codegen_fn_attrs_imp ( closure. def_id ) ;
317317 // We do not call `type_of` for closures here as that
318318 // depends on typecheck and would therefore hide
319319 // any further errors in case one typeck fails.
@@ -691,11 +691,11 @@ fn lower_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
691691 }
692692 match item. kind {
693693 hir:: ForeignItemKind :: Fn ( ..) => {
694- tcx. ensure_ok ( ) . codegen_fn_attrs ( item. owner_id ) ;
694+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( item. owner_id ) ;
695695 tcx. ensure_ok ( ) . fn_sig ( item. owner_id )
696696 }
697697 hir:: ForeignItemKind :: Static ( ..) => {
698- tcx. ensure_ok ( ) . codegen_fn_attrs ( item. owner_id ) ;
698+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( item. owner_id ) ;
699699 let mut visitor = HirPlaceholderCollector :: default ( ) ;
700700 visitor. visit_foreign_item ( item) ;
701701 placeholder_type_error (
@@ -782,7 +782,7 @@ fn lower_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
782782 tcx. ensure_ok ( ) . type_of ( def_id) ;
783783 tcx. ensure_ok ( ) . predicates_of ( def_id) ;
784784 tcx. ensure_ok ( ) . fn_sig ( def_id) ;
785- tcx. ensure_ok ( ) . codegen_fn_attrs ( def_id) ;
785+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( def_id) ;
786786 }
787787 }
788788}
@@ -795,7 +795,7 @@ fn lower_trait_item(tcx: TyCtxt<'_>, trait_item_id: hir::TraitItemId) {
795795
796796 match trait_item. kind {
797797 hir:: TraitItemKind :: Fn ( ..) => {
798- tcx. ensure_ok ( ) . codegen_fn_attrs ( def_id) ;
798+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( def_id) ;
799799 tcx. ensure_ok ( ) . type_of ( def_id) ;
800800 tcx. ensure_ok ( ) . fn_sig ( def_id) ;
801801 }
@@ -867,7 +867,7 @@ fn lower_impl_item(tcx: TyCtxt<'_>, impl_item_id: hir::ImplItemId) {
867867 let icx = ItemCtxt :: new ( tcx, def_id. def_id ) ;
868868 match impl_item. kind {
869869 hir:: ImplItemKind :: Fn ( ..) => {
870- tcx. ensure_ok ( ) . codegen_fn_attrs ( def_id) ;
870+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( def_id) ;
871871 tcx. ensure_ok ( ) . fn_sig ( def_id) ;
872872 }
873873 hir:: ImplItemKind :: Type ( _) => {
0 commit comments