diff options
author | Aleksey Kladov <[email protected]> | 2019-10-31 15:45:10 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-03 15:04:06 +0000 |
commit | ba2efca2bbe5f4434f9a2522b2b94df873f3563b (patch) | |
tree | 786ede7a7c94793becb90a4ca735ecbc7d798d2f /crates/ra_hir_def/src/lib.rs | |
parent | f9f1effd011b906903891c09f1cb6b2a42f73e95 (diff) |
Move CrateDefMap to hir_def
Diffstat (limited to 'crates/ra_hir_def/src/lib.rs')
-rw-r--r-- | crates/ra_hir_def/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/lib.rs b/crates/ra_hir_def/src/lib.rs index 6d66f481d..42e080a72 100644 --- a/crates/ra_hir_def/src/lib.rs +++ b/crates/ra_hir_def/src/lib.rs | |||
@@ -13,6 +13,7 @@ pub mod path; | |||
13 | pub mod type_ref; | 13 | pub mod type_ref; |
14 | pub mod builtin_type; | 14 | pub mod builtin_type; |
15 | pub mod adt; | 15 | pub mod adt; |
16 | pub mod diagnostics; | ||
16 | 17 | ||
17 | // FIXME: this should be private | 18 | // FIXME: this should be private |
18 | pub mod nameres; | 19 | pub mod nameres; |
@@ -237,8 +238,8 @@ impl AstItemDef<ast::EnumDef> for EnumId { | |||
237 | // FIXME: rename to `VariantId`, only enums can ave variants | 238 | // FIXME: rename to `VariantId`, only enums can ave variants |
238 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 239 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
239 | pub struct EnumVariantId { | 240 | pub struct EnumVariantId { |
240 | parent: EnumId, | 241 | pub parent: EnumId, |
241 | local_id: LocalEnumVariantId, | 242 | pub local_id: LocalEnumVariantId, |
242 | } | 243 | } |
243 | 244 | ||
244 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 245 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |