diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_impl/module.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 878dc37c8..e9ff06dc8 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | use ra_db::{Cancelable, SourceRootId, FileId}; | 1 | use ra_db::{Cancelable, SourceRootId, FileId}; |
2 | use ra_syntax::{ast, SyntaxNode, AstNode, TreePtr}; | 2 | use ra_syntax::{ast, SyntaxNode, AstNode, TreeArc}; |
3 | 3 | ||
4 | use crate::{ | 4 | use crate::{ |
5 | Module, ModuleSource, Problem, | 5 | Module, ModuleSource, Problem, |
@@ -57,7 +57,7 @@ impl Module { | |||
57 | pub fn declaration_source_impl( | 57 | pub fn declaration_source_impl( |
58 | &self, | 58 | &self, |
59 | db: &impl HirDatabase, | 59 | db: &impl HirDatabase, |
60 | ) -> Cancelable<Option<(FileId, TreePtr<ast::Module>)>> { | 60 | ) -> Cancelable<Option<(FileId, TreeArc<ast::Module>)>> { |
61 | let loc = self.def_id.loc(db); | 61 | let loc = self.def_id.loc(db); |
62 | let module_tree = db.module_tree(loc.source_root_id)?; | 62 | let module_tree = db.module_tree(loc.source_root_id)?; |
63 | let link = ctry!(loc.module_id.parent_link(&module_tree)); | 63 | let link = ctry!(loc.module_id.parent_link(&module_tree)); |
@@ -173,7 +173,7 @@ impl Module { | |||
173 | pub fn problems_impl( | 173 | pub fn problems_impl( |
174 | &self, | 174 | &self, |
175 | db: &impl HirDatabase, | 175 | db: &impl HirDatabase, |
176 | ) -> Cancelable<Vec<(TreePtr<SyntaxNode>, Problem)>> { | 176 | ) -> Cancelable<Vec<(TreeArc<SyntaxNode>, Problem)>> { |
177 | let loc = self.def_id.loc(db); | 177 | let loc = self.def_id.loc(db); |
178 | let module_tree = db.module_tree(loc.source_root_id)?; | 178 | let module_tree = db.module_tree(loc.source_root_id)?; |
179 | Ok(loc.module_id.problems(&module_tree, db)) | 179 | Ok(loc.module_id.problems(&module_tree, db)) |