From 182c05a96c25321ac3ff262cea098e0c4d7ed6f8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 13 Mar 2019 16:04:28 +0300 Subject: add name resolution from the old impl unlike the old impl, this also handles macro imports across crates --- crates/ra_hir/src/nameres/lower.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/nameres/lower.rs') 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::{ pub struct ImportId(RawId); impl_arena_id!(ImportId); -#[derive(Debug, PartialEq, Eq)] -pub(super) struct ImportData { +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ImportData { pub(super) path: Path, pub(super) alias: Option, pub(super) is_glob: bool, -- cgit v1.2.3