aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_impl
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r--crates/ra_hir/src/code_model_impl/function.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs
index 8a2ab5714..6ce5c77b1 100644
--- a/crates/ra_hir/src/code_model_impl/function.rs
+++ b/crates/ra_hir/src/code_model_impl/function.rs
@@ -30,10 +30,6 @@ impl Function {
30 db.body_hir(*self) 30 db.body_hir(*self)
31 } 31 }
32 32
33 pub(crate) fn module(&self, db: &impl HirDatabase) -> Module {
34 self.id.loc(db).module
35 }
36
37 /// The containing impl block, if this is a method. 33 /// The containing impl block, if this is a method.
38 pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> { 34 pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> {
39 let module_impls = db.impls_in_module(self.module(db)); 35 let module_impls = db.impls_in_module(self.module(db));