Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mapping.rs')
| -rw-r--r-- | crates/hir-ty/src/mapping.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-ty/src/mapping.rs b/crates/hir-ty/src/mapping.rs index f80fb39c1f..c24ae5f618 100644 --- a/crates/hir-ty/src/mapping.rs +++ b/crates/hir-ty/src/mapping.rs @@ -103,14 +103,14 @@ impl From<crate::db::InternedClosureId> for chalk_ir::ClosureId<Interner> { } } -impl From<chalk_ir::GeneratorId<Interner>> for crate::db::InternedGeneratorId { +impl From<chalk_ir::GeneratorId<Interner>> for crate::db::InternedCoroutineId { fn from(id: chalk_ir::GeneratorId<Interner>) -> Self { Self::from_intern_id(id.0) } } -impl From<crate::db::InternedGeneratorId> for chalk_ir::GeneratorId<Interner> { - fn from(id: crate::db::InternedGeneratorId) -> Self { +impl From<crate::db::InternedCoroutineId> for chalk_ir::GeneratorId<Interner> { + fn from(id: crate::db::InternedCoroutineId) -> Self { chalk_ir::GeneratorId(id.as_intern_id()) } } |