diff options
author | Aleksey Kladov <[email protected]> | 2019-03-13 13:04:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-17 09:46:13 +0000 |
commit | 182c05a96c25321ac3ff262cea098e0c4d7ed6f8 (patch) | |
tree | 151c81b7b5f55dda12a555c69993a86a61b84243 /crates/ra_hir/src/nameres/lower.rs | |
parent | 0d8d9186563637f493ac7691268319373251b18a (diff) |
add name resolution from the old impl
unlike the old impl, this also handles macro imports across crates
Diffstat (limited to 'crates/ra_hir/src/nameres/lower.rs')
-rw-r--r-- | crates/ra_hir/src/nameres/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres/lower.rs b/crates/ra_hir/src/nameres/lower.rs index 56262ad6d..24707aed1 100644 --- a/crates/ra_hir/src/nameres/lower.rs +++ b/crates/ra_hir/src/nameres/lower.rs | |||
@@ -18,8 +18,8 @@ use crate::{ | |||
18 | pub struct ImportId(RawId); | 18 | pub struct ImportId(RawId); |
19 | impl_arena_id!(ImportId); | 19 | impl_arena_id!(ImportId); |
20 | 20 | ||
21 | #[derive(Debug, PartialEq, Eq)] | 21 | #[derive(Debug, Clone, PartialEq, Eq)] |
22 | pub(super) struct ImportData { | 22 | pub struct ImportData { |
23 | pub(super) path: Path, | 23 | pub(super) path: Path, |
24 | pub(super) alias: Option<Name>, | 24 | pub(super) alias: Option<Name>, |
25 | pub(super) is_glob: bool, | 25 | pub(super) is_glob: bool, |