diff options
Diffstat (limited to 'crates/hir_def/src/intern.rs')
-rw-r--r-- | crates/hir_def/src/intern.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir_def/src/intern.rs b/crates/hir_def/src/intern.rs index 28ec72cff..4d8fbd324 100644 --- a/crates/hir_def/src/intern.rs +++ b/crates/hir_def/src/intern.rs | |||
@@ -15,6 +15,7 @@ use rustc_hash::FxHasher; | |||
15 | 15 | ||
16 | type InternMap<T> = DashMap<Arc<T>, (), BuildHasherDefault<FxHasher>>; | 16 | type InternMap<T> = DashMap<Arc<T>, (), BuildHasherDefault<FxHasher>>; |
17 | 17 | ||
18 | #[derive(Hash)] | ||
18 | pub struct Interned<T: Internable> { | 19 | pub struct Interned<T: Internable> { |
19 | arc: Arc<T>, | 20 | arc: Arc<T>, |
20 | } | 21 | } |
@@ -152,6 +153,6 @@ macro_rules! impl_internable { | |||
152 | )+ }; | 153 | )+ }; |
153 | } | 154 | } |
154 | 155 | ||
155 | impl_internable!(crate::type_ref::TypeRef, crate::type_ref::TraitRef); | 156 | impl_internable!(crate::type_ref::TypeRef, crate::type_ref::TraitRef, crate::path::ModPath); |
156 | 157 | ||
157 | // endregion | 158 | // endregion |