@@ -885,6 +885,7 @@ impl EncodeContext<'tcx> {
885885                        } 
886886                    } ; 
887887                    FnData  { 
888+                         asyncness :  hir:: IsAsync :: NotAsync , 
888889                        constness :  hir:: Constness :: NotConst , 
889890                        param_names, 
890891                        sig :  self . lazy ( & tcx. fn_sig ( def_id) ) , 
@@ -982,6 +983,7 @@ impl EncodeContext<'tcx> {
982983            ty:: AssocKind :: Method  => { 
983984                let  fn_data = if  let  hir:: ImplItemKind :: Method ( ref  sig,  body)  = ast_item. node  { 
984985                    FnData  { 
986+                         asyncness :  sig. header . asyncness , 
985987                        constness :  sig. header . constness , 
986988                        param_names :  self . encode_fn_param_names_for_body ( body) , 
987989                        sig :  self . lazy ( & tcx. fn_sig ( def_id) ) , 
@@ -1128,6 +1130,7 @@ impl EncodeContext<'tcx> {
11281130            } 
11291131            hir:: ItemKind :: Fn ( _,  header,  ..,  body)  => { 
11301132                let  data = FnData  { 
1133+                     asyncness :  header. asyncness , 
11311134                    constness :  header. constness , 
11321135                    param_names :  self . encode_fn_param_names_for_body ( body) , 
11331136                    sig :  self . lazy ( tcx. fn_sig ( def_id) ) , 
@@ -1675,6 +1678,7 @@ impl EncodeContext<'tcx> {
16751678        let  kind = match  nitem. node  { 
16761679            hir:: ForeignItemKind :: Fn ( _,  ref  names,  _)  => { 
16771680                let  data = FnData  { 
1681+                     asyncness :  hir:: IsAsync :: NotAsync , 
16781682                    constness :  hir:: Constness :: NotConst , 
16791683                    param_names :  self . encode_fn_param_names ( names) , 
16801684                    sig :  self . lazy ( tcx. fn_sig ( def_id) ) , 
0 commit comments