@@ -313,7 +313,7 @@ impl<'tcx> Visitor<'tcx> for CollectItemTypesVisitor<'tcx> {
313
313
fn visit_expr ( & mut self , expr : & ' tcx hir:: Expr < ' tcx > ) {
314
314
if let hir:: ExprKind :: Closure ( closure) = expr. kind {
315
315
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 ) ;
317
317
// We do not call `type_of` for closures here as that
318
318
// depends on typecheck and would therefore hide
319
319
// any further errors in case one typeck fails.
@@ -691,11 +691,11 @@ fn lower_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
691
691
}
692
692
match item. kind {
693
693
hir:: ForeignItemKind :: Fn ( ..) => {
694
- tcx. ensure_ok ( ) . codegen_fn_attrs ( item. owner_id ) ;
694
+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( item. owner_id ) ;
695
695
tcx. ensure_ok ( ) . fn_sig ( item. owner_id )
696
696
}
697
697
hir:: ForeignItemKind :: Static ( ..) => {
698
- tcx. ensure_ok ( ) . codegen_fn_attrs ( item. owner_id ) ;
698
+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( item. owner_id ) ;
699
699
let mut visitor = HirPlaceholderCollector :: default ( ) ;
700
700
visitor. visit_foreign_item ( item) ;
701
701
placeholder_type_error (
@@ -782,7 +782,7 @@ fn lower_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
782
782
tcx. ensure_ok ( ) . type_of ( def_id) ;
783
783
tcx. ensure_ok ( ) . predicates_of ( def_id) ;
784
784
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) ;
786
786
}
787
787
}
788
788
}
@@ -795,7 +795,7 @@ fn lower_trait_item(tcx: TyCtxt<'_>, trait_item_id: hir::TraitItemId) {
795
795
796
796
match trait_item. kind {
797
797
hir:: TraitItemKind :: Fn ( ..) => {
798
- tcx. ensure_ok ( ) . codegen_fn_attrs ( def_id) ;
798
+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( def_id) ;
799
799
tcx. ensure_ok ( ) . type_of ( def_id) ;
800
800
tcx. ensure_ok ( ) . fn_sig ( def_id) ;
801
801
}
@@ -867,7 +867,7 @@ fn lower_impl_item(tcx: TyCtxt<'_>, impl_item_id: hir::ImplItemId) {
867
867
let icx = ItemCtxt :: new ( tcx, def_id. def_id ) ;
868
868
match impl_item. kind {
869
869
hir:: ImplItemKind :: Fn ( ..) => {
870
- tcx. ensure_ok ( ) . codegen_fn_attrs ( def_id) ;
870
+ tcx. ensure_ok ( ) . codegen_fn_attrs_imp ( def_id) ;
871
871
tcx. ensure_ok ( ) . fn_sig ( def_id) ;
872
872
}
873
873
hir:: ImplItemKind :: Type ( _) => {
0 commit comments