@@ -1207,7 +1207,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12071207 record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) )
12081208 }
12091209 } ;
1210- record ! ( self . tables. asyncness[ def_id] <- m_sig. header. asyncness) ;
1210+ self . tables . asyncness . set ( def_id. index , m_sig. header . asyncness ) ;
12111211 self . tables . impl_constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
12121212 record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
12131213 container,
@@ -1265,7 +1265,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12651265 }
12661266 ty:: AssocKind :: Fn => {
12671267 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 ) ;
12691269 record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
12701270 // Can be inside `impl const Trait`, so using sig.header.constness is not reliable
12711271 let constness = if self . tcx . is_const_fn_raw ( def_id) {
@@ -1394,7 +1394,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
13941394 EntryKind :: Const
13951395 }
13961396 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 ) ;
13981398 record ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
13991399 self . tables . impl_constness . set ( def_id. index , sig. header . constness ) ;
14001400 EntryKind :: Fn
@@ -1886,7 +1886,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
18861886
18871887 match nitem. kind {
18881888 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 ) ;
18901890 record ! ( self . tables. fn_arg_names[ def_id] <- * names) ;
18911891 let constness = if self . tcx . is_const_fn_raw ( def_id) {
18921892 hir:: Constness :: Const
0 commit comments