diff options
author | Aleksey Kladov <[email protected]> | 2018-11-21 14:51:02 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-21 14:51:02 +0000 |
commit | 11f19b784923ac701bc6fc39a6aea712f0091bf7 (patch) | |
tree | 6a5b5ba2543bc52d10501d41a8514bae68b78c36 /crates/ra_analysis/src/descriptors/module | |
parent | 5a87a24f8288d905428db755c7ea806640b6ac1d (diff) |
name res uses paths
Diffstat (limited to 'crates/ra_analysis/src/descriptors/module')
-rw-r--r-- | crates/ra_analysis/src/descriptors/module/nameres.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/descriptors/module/nameres.rs b/crates/ra_analysis/src/descriptors/module/nameres.rs index bf671470c..4c555421d 100644 --- a/crates/ra_analysis/src/descriptors/module/nameres.rs +++ b/crates/ra_analysis/src/descriptors/module/nameres.rs | |||
@@ -23,7 +23,7 @@ use rustc_hash::FxHashMap; | |||
23 | 23 | ||
24 | use ra_syntax::{ | 24 | use ra_syntax::{ |
25 | SmolStr, SyntaxKind::{self, *}, | 25 | SmolStr, SyntaxKind::{self, *}, |
26 | ast::{self, AstNode, ModuleItemOwner} | 26 | ast::{self, ModuleItemOwner} |
27 | }; | 27 | }; |
28 | 28 | ||
29 | use crate::{ | 29 | use crate::{ |
@@ -309,7 +309,7 @@ where | |||
309 | 309 | ||
310 | let mut curr = match import.path.kind { | 310 | let mut curr = match import.path.kind { |
311 | // TODO: handle extern crates | 311 | // TODO: handle extern crates |
312 | PathKind::Abs => return, | 312 | PathKind::Plain => return, |
313 | PathKind::Self_ => module_id, | 313 | PathKind::Self_ => module_id, |
314 | PathKind::Super => { | 314 | PathKind::Super => { |
315 | match module_id.parent(&self.module_tree) { | 315 | match module_id.parent(&self.module_tree) { |