diff options
author | uHOOCCOOHu <[email protected]> | 2019-09-02 07:36:20 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-09-02 07:36:20 +0100 |
commit | a66214b34effe1ad7f4351a1b920cf3a8f98d3c0 (patch) | |
tree | 21c38c3888edbf0d17b59a4c09494788cea61d1c /crates/ra_hir/src/nameres.rs | |
parent | dfa758f6a9146fbcb5109e7294d0a8e561c77913 (diff) |
Fix import strategy of `macro_use` and its test
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index bbdc606cd..f69179bf6 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -101,6 +101,8 @@ pub struct CrateDefMap { | |||
101 | /// However, do we want to put it as a global variable? | 101 | /// However, do we want to put it as a global variable? |
102 | poison_macros: FxHashSet<MacroDefId>, | 102 | poison_macros: FxHashSet<MacroDefId>, |
103 | 103 | ||
104 | exported_macros: FxHashMap<Name, MacroDefId>, | ||
105 | |||
104 | diagnostics: Vec<DefDiagnostic>, | 106 | diagnostics: Vec<DefDiagnostic>, |
105 | } | 107 | } |
106 | 108 | ||
@@ -245,6 +247,7 @@ impl CrateDefMap { | |||
245 | root, | 247 | root, |
246 | modules, | 248 | modules, |
247 | poison_macros: FxHashSet::default(), | 249 | poison_macros: FxHashSet::default(), |
250 | exported_macros: FxHashMap::default(), | ||
248 | diagnostics: Vec::new(), | 251 | diagnostics: Vec::new(), |
249 | } | 252 | } |
250 | }; | 253 | }; |