about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-02-21 23:27:08 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-02-21 23:27:08 +0100
commitc6f5c7ba60808bc48f4506acf40c1dabc1d07851 (patch)
treef47815154d29c74b576380783501f01b0a11d7de /compiler
parent03a8cc7df1d65554a4d40825b0490c93ac0f0236 (diff)
downloadrust-c6f5c7ba60808bc48f4506acf40c1dabc1d07851.tar.gz
rust-c6f5c7ba60808bc48f4506acf40c1dabc1d07851.zip
chalk/lowering: lower generator types.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_traits/src/chalk/lowering.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/chalk/lowering.rs b/compiler/rustc_traits/src/chalk/lowering.rs
index 2cd179526bf..e3c865ce9e6 100644
--- a/compiler/rustc_traits/src/chalk/lowering.rs
+++ b/compiler/rustc_traits/src/chalk/lowering.rs
@@ -323,7 +323,10 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::Ty<RustInterner<'tcx>>> for Ty<'tcx> {
             ty::Closure(def_id, substs) => {
                 chalk_ir::TyKind::Closure(chalk_ir::ClosureId(def_id), substs.lower_into(interner))
             }
-            ty::Generator(_def_id, _substs, _) => unimplemented!(),
+            ty::Generator(def_id, substs, _) => chalk_ir::TyKind::Generator(
+                chalk_ir::GeneratorId(def_id),
+                substs.lower_into(interner),
+            ),
             ty::GeneratorWitness(_) => unimplemented!(),
             ty::Never => chalk_ir::TyKind::Never,
             ty::Tuple(types) => {