diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-14 08:32:13 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-14 08:32:13 +0000 |
commit | f7065c294c24b48014f2b2594126dad4a43caee8 (patch) | |
tree | d978fe7a2ca5ed38c169537387157239e7737faf /crates | |
parent | 9280788b1eb7efb27ac1cc1308ac0b4c739c7eaf (diff) | |
parent | adad641c521fc9f4a02e6d3672ad0718aa66ca91 (diff) |
Merge #973
973: derive Hash for ra_hir::ModuleDef r=matklad a=pcpthm
I wanted to use `HashSet` but it seems like `Hash` derive is missing for no reason.
Co-authored-by: pcpthm <[email protected]>
Diffstat (limited to 'crates')
-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), |