diff options
author | Aleksey Kladov <[email protected]> | 2018-11-27 22:22:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-27 22:22:17 +0000 |
commit | 806ea03b64455a0c10fd8a8d6d98ed4e7ac15058 (patch) | |
tree | 2e90519d66e589c1351e228f69c57d720e2fbf4f /crates/ra_analysis/src/hir/module/nameres.rs | |
parent | 36b1d20c1661877c0c5a55ccd07522bc97bfc254 (diff) |
drop descriptor suffix, use hir:: instead
Diffstat (limited to 'crates/ra_analysis/src/hir/module/nameres.rs')
-rw-r--r-- | crates/ra_analysis/src/hir/module/nameres.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/hir/module/nameres.rs b/crates/ra_analysis/src/hir/module/nameres.rs index db5d6d9c0..2ff5e0537 100644 --- a/crates/ra_analysis/src/hir/module/nameres.rs +++ b/crates/ra_analysis/src/hir/module/nameres.rs | |||
@@ -371,7 +371,7 @@ mod tests { | |||
371 | use crate::{ | 371 | use crate::{ |
372 | AnalysisChange, | 372 | AnalysisChange, |
373 | mock_analysis::{MockAnalysis, analysis_and_position}, | 373 | mock_analysis::{MockAnalysis, analysis_and_position}, |
374 | hir::{HirDatabase, module::ModuleDescriptor}, | 374 | hir::{self, HirDatabase}, |
375 | input::FilesDatabase, | 375 | input::FilesDatabase, |
376 | }; | 376 | }; |
377 | use super::*; | 377 | use super::*; |
@@ -380,7 +380,7 @@ mod tests { | |||
380 | let (analysis, pos) = analysis_and_position(fixture); | 380 | let (analysis, pos) = analysis_and_position(fixture); |
381 | let db = analysis.imp.db; | 381 | let db = analysis.imp.db; |
382 | let source_root = db.file_source_root(pos.file_id); | 382 | let source_root = db.file_source_root(pos.file_id); |
383 | let descr = ModuleDescriptor::guess_from_position(&*db, pos) | 383 | let descr = hir::Module::guess_from_position(&*db, pos) |
384 | .unwrap() | 384 | .unwrap() |
385 | .unwrap(); | 385 | .unwrap(); |
386 | let module_id = descr.module_id; | 386 | let module_id = descr.module_id; |