aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/hir/module/nameres.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/hir/module/nameres.rs')
-rw-r--r--crates/ra_analysis/src/hir/module/nameres.rs4
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;