diff options
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 7e5138d05..befbb2a9b 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -54,7 +54,6 @@ mod mod_resolution; | |||
54 | #[cfg(test)] | 54 | #[cfg(test)] |
55 | mod tests; | 55 | mod tests; |
56 | 56 | ||
57 | use std::hash::BuildHasherDefault; | ||
58 | use std::sync::Arc; | 57 | use std::sync::Arc; |
59 | 58 | ||
60 | use once_cell::sync::Lazy; | 59 | use once_cell::sync::Lazy; |
@@ -62,7 +61,7 @@ use ra_arena::{impl_arena_id, Arena, RawId}; | |||
62 | use ra_db::{Edition, FileId}; | 61 | use ra_db::{Edition, FileId}; |
63 | use ra_prof::profile; | 62 | use ra_prof::profile; |
64 | use ra_syntax::ast; | 63 | use ra_syntax::ast; |
65 | use rustc_hash::{FxHashMap, FxHashSet, FxHasher}; | 64 | use rustc_hash::{FxHashMap, FxHashSet}; |
66 | use test_utils::tested_by; | 65 | use test_utils::tested_by; |
67 | 66 | ||
68 | use crate::{ | 67 | use crate::{ |
@@ -74,8 +73,6 @@ use crate::{ | |||
74 | AstId, BuiltinType, Crate, HirFileId, MacroDef, Module, ModuleDef, Name, Path, PathKind, Trait, | 73 | AstId, BuiltinType, Crate, HirFileId, MacroDef, Module, ModuleDef, Name, Path, PathKind, Trait, |
75 | }; | 74 | }; |
76 | 75 | ||
77 | pub(crate) type ImmFxHashMap<K, V> = im::HashMap<K, V, BuildHasherDefault<FxHasher>>; | ||
78 | |||
79 | pub(crate) use self::raw::{ImportSourceMap, RawItems}; | 76 | pub(crate) use self::raw::{ImportSourceMap, RawItems}; |
80 | 77 | ||
81 | pub use self::{ | 78 | pub use self::{ |
@@ -142,7 +139,7 @@ pub(crate) struct ModuleData { | |||
142 | pub struct ModuleScope { | 139 | pub struct ModuleScope { |
143 | items: FxHashMap<Name, Resolution>, | 140 | items: FxHashMap<Name, Resolution>, |
144 | macros: FxHashMap<Name, MacroDef>, | 141 | macros: FxHashMap<Name, MacroDef>, |
145 | textual_macros: ImmFxHashMap<Name, MacroDef>, | 142 | textual_macros: FxHashMap<Name, MacroDef>, |
146 | } | 143 | } |
147 | 144 | ||
148 | static BUILTIN_SCOPE: Lazy<FxHashMap<Name, Resolution>> = Lazy::new(|| { | 145 | static BUILTIN_SCOPE: Lazy<FxHashMap<Name, Resolution>> = Lazy::new(|| { |