diff options
author | Florian Diebold <[email protected]> | 2019-12-21 14:00:44 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-12-22 23:08:03 +0000 |
commit | 4053fcfca0e33f133c53fa755c1b1bcc0b4c11bb (patch) | |
tree | 6a77ae7692757830e4c0f5966824b6cd6979d4a2 /crates/ra_hir_ty/src/traits.rs | |
parent | 6b5efe5bdab160278469417734f4bb619c7bac61 (diff) |
Introduce our own Chalk TypeFamily, instead of using ChalkIr
It's not very different, except we can directly use Salsa IDs instead of casting
them. This means we need to refactor the handling of errors to get rid of
UNKNOWN_TRAIT though.
Diffstat (limited to 'crates/ra_hir_ty/src/traits.rs')
-rw-r--r-- | crates/ra_hir_ty/src/traits.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/traits.rs b/crates/ra_hir_ty/src/traits.rs index fbab60925..c4dc857bc 100644 --- a/crates/ra_hir_ty/src/traits.rs +++ b/crates/ra_hir_ty/src/traits.rs | |||
@@ -291,7 +291,7 @@ impl FnTrait { | |||
291 | } | 291 | } |
292 | } | 292 | } |
293 | 293 | ||
294 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 294 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
295 | pub struct ClosureFnTraitImplData { | 295 | pub struct ClosureFnTraitImplData { |
296 | def: DefWithBodyId, | 296 | def: DefWithBodyId, |
297 | expr: ExprId, | 297 | expr: ExprId, |
@@ -300,7 +300,7 @@ pub struct ClosureFnTraitImplData { | |||
300 | 300 | ||
301 | /// An impl. Usually this comes from an impl block, but some built-in types get | 301 | /// An impl. Usually this comes from an impl block, but some built-in types get |
302 | /// synthetic impls. | 302 | /// synthetic impls. |
303 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 303 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
304 | pub enum Impl { | 304 | pub enum Impl { |
305 | /// A normal impl from an impl block. | 305 | /// A normal impl from an impl block. |
306 | ImplBlock(ImplId), | 306 | ImplBlock(ImplId), |