diff options
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 4 | ||||
-rw-r--r-- | crates/ra_hir_def/src/body/scope.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 482393006..a26251cde 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -10,14 +10,14 @@ use hir_expand::{ | |||
10 | name::{name, AsName, Name}, | 10 | name::{name, AsName, Name}, |
11 | HirFileId, MacroDefId, MacroDefKind, | 11 | HirFileId, MacroDefId, MacroDefKind, |
12 | }; | 12 | }; |
13 | use ra_syntax::{ | 13 | use rustc_hash::FxHashMap; |
14 | use syntax::{ | ||
14 | ast::{ | 15 | ast::{ |
15 | self, ArgListOwner, ArrayExprKind, AstChildren, LiteralKind, LoopBodyOwner, NameOwner, | 16 | self, ArgListOwner, ArrayExprKind, AstChildren, LiteralKind, LoopBodyOwner, NameOwner, |
16 | SlicePatComponents, | 17 | SlicePatComponents, |
17 | }, | 18 | }, |
18 | AstNode, AstPtr, | 19 | AstNode, AstPtr, |
19 | }; | 20 | }; |
20 | use rustc_hash::FxHashMap; | ||
21 | use test_utils::mark; | 21 | use test_utils::mark; |
22 | 22 | ||
23 | use crate::{ | 23 | use crate::{ |
diff --git a/crates/ra_hir_def/src/body/scope.rs b/crates/ra_hir_def/src/body/scope.rs index f783e18b5..079f14c29 100644 --- a/crates/ra_hir_def/src/body/scope.rs +++ b/crates/ra_hir_def/src/body/scope.rs | |||
@@ -171,7 +171,7 @@ fn compute_expr_scopes(expr: ExprId, body: &Body, scopes: &mut ExprScopes, scope | |||
171 | mod tests { | 171 | mod tests { |
172 | use hir_expand::{name::AsName, InFile}; | 172 | use hir_expand::{name::AsName, InFile}; |
173 | use ra_db::{fixture::WithFixture, FileId, SourceDatabase}; | 173 | use ra_db::{fixture::WithFixture, FileId, SourceDatabase}; |
174 | use ra_syntax::{algo::find_node_at_offset, ast, AstNode}; | 174 | use syntax::{algo::find_node_at_offset, ast, AstNode}; |
175 | use test_utils::{assert_eq_text, extract_offset, mark}; | 175 | use test_utils::{assert_eq_text, extract_offset, mark}; |
176 | 176 | ||
177 | use crate::{db::DefDatabase, test_db::TestDB, FunctionId, ModuleDefId}; | 177 | use crate::{db::DefDatabase, test_db::TestDB, FunctionId, ModuleDefId}; |