diff options
author | Lukas Wirth <[email protected]> | 2021-04-06 10:45:41 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-04-06 10:45:41 +0100 |
commit | 9fbba7bc45ec6bea9468931d9d9fdd0141826f0a (patch) | |
tree | 266da1eafcd60457fa99cc422a415e27992c08d7 /crates/hir_ty/src/db.rs | |
parent | 047b5313013383fc4fafaef6d6d8d6a64549e3cb (diff) |
Add chalk_ir::Const to TyKind::Array
Diffstat (limited to 'crates/hir_ty/src/db.rs')
-rw-r--r-- | crates/hir_ty/src/db.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir_ty/src/db.rs b/crates/hir_ty/src/db.rs index 07510ae02..326c20240 100644 --- a/crates/hir_ty/src/db.rs +++ b/crates/hir_ty/src/db.rs | |||
@@ -88,6 +88,8 @@ pub trait HirDatabase: DefDatabase + Upcast<dyn DefDatabase> { | |||
88 | #[salsa::interned] | 88 | #[salsa::interned] |
89 | fn intern_lifetime_param_id(&self, param_id: LifetimeParamId) -> InternedLifetimeParamId; | 89 | fn intern_lifetime_param_id(&self, param_id: LifetimeParamId) -> InternedLifetimeParamId; |
90 | #[salsa::interned] | 90 | #[salsa::interned] |
91 | fn intern_const_param_id(&self, param_id: ConstParamId) -> InternedConstParamId; | ||
92 | #[salsa::interned] | ||
91 | fn intern_impl_trait_id(&self, id: ImplTraitId) -> InternedOpaqueTyId; | 93 | fn intern_impl_trait_id(&self, id: ImplTraitId) -> InternedOpaqueTyId; |
92 | #[salsa::interned] | 94 | #[salsa::interned] |
93 | fn intern_closure(&self, id: (DefWithBodyId, ExprId)) -> InternedClosureId; | 95 | fn intern_closure(&self, id: (DefWithBodyId, ExprId)) -> InternedClosureId; |
@@ -162,6 +164,10 @@ pub struct InternedLifetimeParamId(salsa::InternId); | |||
162 | impl_intern_key!(InternedLifetimeParamId); | 164 | impl_intern_key!(InternedLifetimeParamId); |
163 | 165 | ||
164 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 166 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
167 | pub struct InternedConstParamId(salsa::InternId); | ||
168 | impl_intern_key!(InternedConstParamId); | ||
169 | |||
170 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | ||
165 | pub struct InternedOpaqueTyId(salsa::InternId); | 171 | pub struct InternedOpaqueTyId(salsa::InternId); |
166 | impl_intern_key!(InternedOpaqueTyId); | 172 | impl_intern_key!(InternedOpaqueTyId); |
167 | 173 | ||