diff options
author | pcpthm <[email protected]> | 2019-03-14 08:25:51 +0000 |
---|---|---|
committer | pcpthm <[email protected]> | 2019-03-14 08:25:51 +0000 |
commit | adad641c521fc9f4a02e6d3672ad0718aa66ca91 (patch) | |
tree | d978fe7a2ca5ed38c169537387157239e7737faf /crates/ra_hir/src | |
parent | 9280788b1eb7efb27ac1cc1308ac0b4c739c7eaf (diff) |
derive Hash for ra_hir::ModuleDef
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index dd7eeebd0..87a7195e6 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -69,7 +69,7 @@ pub struct Module { | |||
69 | } | 69 | } |
70 | 70 | ||
71 | /// The defs which can be visible in the module. | 71 | /// The defs which can be visible in the module. |
72 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | 72 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
73 | pub enum ModuleDef { | 73 | pub enum ModuleDef { |
74 | Module(Module), | 74 | Module(Module), |
75 | Function(Function), | 75 | Function(Function), |