rustc_ty_utils::ty
fn asyncness(tcx: TyCtxt<'_>, def_id: DefId) -> IsAsync
Check if a function is async.