@@ -1207,7 +1207,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1207
1207
record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) )
1208
1208
}
1209
1209
} ;
1210
- record ! ( self . tables. asyncness[ def_id] <- m_sig. header. asyncness) ;
1210
+ self . tables . asyncness . set ( def_id. index , m_sig. header . asyncness ) ;
1211
1211
self . tables . impl_constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
1212
1212
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
1213
1213
container,
@@ -1265,7 +1265,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1265
1265
}
1266
1266
ty:: AssocKind :: Fn => {
1267
1267
let hir:: ImplItemKind :: Fn ( ref sig, body) = ast_item. kind else { bug ! ( ) } ;
1268
- record ! ( self . tables. asyncness[ def_id] <- sig. header. asyncness) ;
1268
+ self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
1269
1269
record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
1270
1270
// Can be inside `impl const Trait`, so using sig.header.constness is not reliable
1271
1271
let constness = if self . tcx . is_const_fn_raw ( def_id) {
@@ -1394,7 +1394,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1394
1394
EntryKind :: Const
1395
1395
}
1396
1396
hir:: ItemKind :: Fn ( ref sig, .., body) => {
1397
- record ! ( self . tables. asyncness[ def_id] <- sig. header. asyncness) ;
1397
+ self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
1398
1398
record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
1399
1399
self . tables . impl_constness . set ( def_id. index , sig. header . constness ) ;
1400
1400
EntryKind :: Fn
@@ -1886,7 +1886,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1886
1886
1887
1887
match nitem. kind {
1888
1888
hir:: ForeignItemKind :: Fn ( _, ref names, _) => {
1889
- record ! ( self . tables. asyncness[ def_id] <- hir:: IsAsync :: NotAsync ) ;
1889
+ self . tables . asyncness . set ( def_id. index , hir:: IsAsync :: NotAsync ) ;
1890
1890
record ! ( self . tables. fn_arg_names[ def_id] <- * names) ;
1891
1891
let constness = if self . tcx . is_const_fn_raw ( def_id) {
1892
1892
hir:: Constness :: Const
0 commit comments