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