Skip to content

Commit c6f5c7b

Browse files
committed
chalk/lowering: lower generator types.
1 parent 03a8cc7 commit c6f5c7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_traits/src/chalk/lowering.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::Ty<RustInterner<'tcx>>> for Ty<'tcx> {
323323
ty::Closure(def_id, substs) => {
324324
chalk_ir::TyKind::Closure(chalk_ir::ClosureId(def_id), substs.lower_into(interner))
325325
}
326-
ty::Generator(_def_id, _substs, _) => unimplemented!(),
326+
ty::Generator(def_id, substs, _) => chalk_ir::TyKind::Generator(
327+
chalk_ir::GeneratorId(def_id),
328+
substs.lower_into(interner),
329+
),
327330
ty::GeneratorWitness(_) => unimplemented!(),
328331
ty::Never => chalk_ir::TyKind::Never,
329332
ty::Tuple(types) => {

0 commit comments

Comments
 (0)