diff options
Diffstat (limited to 'crates/ra_analysis/src/hir/module/nameres.rs')
-rw-r--r-- | crates/ra_analysis/src/hir/module/nameres.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/hir/module/nameres.rs b/crates/ra_analysis/src/hir/module/nameres.rs index f48f51c8d..5c87e7af2 100644 --- a/crates/ra_analysis/src/hir/module/nameres.rs +++ b/crates/ra_analysis/src/hir/module/nameres.rs | |||
@@ -19,12 +19,12 @@ use std::{ | |||
19 | }; | 19 | }; |
20 | 20 | ||
21 | use rustc_hash::FxHashMap; | 21 | use rustc_hash::FxHashMap; |
22 | |||
23 | use ra_syntax::{ | 22 | use ra_syntax::{ |
24 | TextRange, | 23 | TextRange, |
25 | SmolStr, SyntaxKind::{self, *}, | 24 | SmolStr, SyntaxKind::{self, *}, |
26 | ast::{self, AstNode} | 25 | ast::{self, AstNode} |
27 | }; | 26 | }; |
27 | use ra_db::SourceRootId; | ||
28 | 28 | ||
29 | use crate::{ | 29 | use crate::{ |
30 | Cancelable, FileId, | 30 | Cancelable, FileId, |
@@ -35,7 +35,6 @@ use crate::{ | |||
35 | HirDatabase, | 35 | HirDatabase, |
36 | module::{ModuleId, ModuleTree}, | 36 | module::{ModuleId, ModuleTree}, |
37 | }, | 37 | }, |
38 | input::SourceRootId, | ||
39 | }; | 38 | }; |
40 | 39 | ||
41 | /// Item map is the result of the name resolution. Item map contains, for each | 40 | /// Item map is the result of the name resolution. Item map contains, for each |
@@ -342,11 +341,11 @@ where | |||
342 | 341 | ||
343 | #[cfg(test)] | 342 | #[cfg(test)] |
344 | mod tests { | 343 | mod tests { |
344 | use ra_db::FilesDatabase; | ||
345 | use crate::{ | 345 | use crate::{ |
346 | AnalysisChange, | 346 | AnalysisChange, |
347 | mock_analysis::{MockAnalysis, analysis_and_position}, | 347 | mock_analysis::{MockAnalysis, analysis_and_position}, |
348 | hir::{self, HirDatabase}, | 348 | hir::{self, HirDatabase}, |
349 | input::FilesDatabase, | ||
350 | }; | 349 | }; |
351 | use super::*; | 350 | use super::*; |
352 | 351 | ||