diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-21 14:25:15 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-21 14:25:15 +0000 |
commit | 4528cb3f2c0724d140519c952099e35c63ce8f77 (patch) | |
tree | 085b33cc69bac4812fa5e25b7f227f21e030d91d /crates/ra_hir_def/src/nameres | |
parent | df45f28fedab9b0620ea038849ec8e93c3b4ab26 (diff) | |
parent | 4e0168ec14b74003e8388b72b64c2ca78b580274 (diff) |
Merge #2633
2633: Remove imports from hir r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/raw.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ra_hir_def/src/nameres/raw.rs b/crates/ra_hir_def/src/nameres/raw.rs index ecb4d7c03..df5dac88a 100644 --- a/crates/ra_hir_def/src/nameres/raw.rs +++ b/crates/ra_hir_def/src/nameres/raw.rs | |||
@@ -48,12 +48,6 @@ pub struct ImportSourceMap { | |||
48 | 48 | ||
49 | type ImportSourcePtr = Either<AstPtr<ast::UseTree>, AstPtr<ast::ExternCrateItem>>; | 49 | type ImportSourcePtr = Either<AstPtr<ast::UseTree>, AstPtr<ast::ExternCrateItem>>; |
50 | 50 | ||
51 | impl ImportSourceMap { | ||
52 | pub fn get(&self, import: LocalImportId) -> ImportSourcePtr { | ||
53 | self.map[import].clone() | ||
54 | } | ||
55 | } | ||
56 | |||
57 | impl RawItems { | 51 | impl RawItems { |
58 | pub(crate) fn raw_items_query( | 52 | pub(crate) fn raw_items_query( |
59 | db: &(impl DefDatabase + AstDatabase), | 53 | db: &(impl DefDatabase + AstDatabase), |