diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-15 22:15:30 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-15 22:15:30 +0000 |
commit | ad10c4b8e2d81af7fc35a466cd434e2c3952bfd8 (patch) | |
tree | 895770caf6ae51bf9fad7766924212ff5f326758 /crates/ra_hir_def/src | |
parent | d843455de2d619bf4f2577bd004044fa88c56533 (diff) | |
parent | f36ac059f362050dae36569940b94a331387294a (diff) |
Merge #2270
2270: Reduce some duplication r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 49e33ccc4..e5b073a0f 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -125,12 +125,12 @@ pub struct ModuleData { | |||
125 | pub impls: Vec<ImplId>, | 125 | pub impls: Vec<ImplId>, |
126 | } | 126 | } |
127 | 127 | ||
128 | #[derive(Default, Debug, PartialEq, Eq, Clone)] | 128 | #[derive(Default, Debug, PartialEq, Eq)] |
129 | pub(crate) struct Declarations { | 129 | pub(crate) struct Declarations { |
130 | fns: FxHashMap<FileAstId<ast::FnDef>, FunctionId>, | 130 | fns: FxHashMap<FileAstId<ast::FnDef>, FunctionId>, |
131 | } | 131 | } |
132 | 132 | ||
133 | #[derive(Debug, Default, PartialEq, Eq, Clone)] | 133 | #[derive(Debug, Default, PartialEq, Eq)] |
134 | pub struct ModuleScope { | 134 | pub struct ModuleScope { |
135 | items: FxHashMap<Name, Resolution>, | 135 | items: FxHashMap<Name, Resolution>, |
136 | /// Macros visable in current module in legacy textual scope | 136 | /// Macros visable in current module in legacy textual scope |