fn generator_kind(tcx: TyCtxt<'_>, def_id: DefId) -> Option<GeneratorKind>