aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src/code_model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir/src/code_model.rs')
-rw-r--r--crates/hir/src/code_model.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 3277597c6..fadd010e2 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -789,11 +789,7 @@ impl Function {
789 } 789 }
790 790
791 /// whether this function is associated with some trait/impl 791 /// whether this function is associated with some trait/impl
792 pub fn is_associated(self, db: &dyn HirDatabase) -> bool { 792 pub fn is_assoc_item(self, db: &dyn HirDatabase) -> bool {
793 if self.self_param(db).is_some() {
794 return false;
795 }
796
797 let fn_parent_kind = self 793 let fn_parent_kind = self
798 .source(db) 794 .source(db)
799 .value 795 .value