diff options
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index e65cbcb27..9a412bc82 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -339,7 +339,7 @@ where | |||
339 | // Populate extern crates prelude | 339 | // Populate extern crates prelude |
340 | { | 340 | { |
341 | let root_id = module_id.crate_root(&self.module_tree); | 341 | let root_id = module_id.crate_root(&self.module_tree); |
342 | let file_id = root_id.source(&self.module_tree).file_id(); | 342 | let file_id = root_id.source(&self.module_tree).file_id; |
343 | let crate_graph = self.db.crate_graph(); | 343 | let crate_graph = self.db.crate_graph(); |
344 | if let Some(crate_id) = crate_graph.crate_id_for_crate_root(file_id.as_original_file()) | 344 | if let Some(crate_id) = crate_graph.crate_id_for_crate_root(file_id.as_original_file()) |
345 | { | 345 | { |
@@ -399,7 +399,7 @@ where | |||
399 | kind: DefKind::Module, | 399 | kind: DefKind::Module, |
400 | source_root_id: self.source_root, | 400 | source_root_id: self.source_root, |
401 | module_id, | 401 | module_id, |
402 | source_item_id: module_id.source(&self.module_tree).0, | 402 | source_item_id: module_id.source(&self.module_tree), |
403 | }; | 403 | }; |
404 | let def_id = def_loc.id(self.db); | 404 | let def_id = def_loc.id(self.db); |
405 | self.add_module_item(&mut module_items, name, PerNs::types(def_id)); | 405 | self.add_module_item(&mut module_items, name, PerNs::types(def_id)); |