diff options
author | Zac Pullar-Strecker <[email protected]> | 2020-09-03 09:09:36 +0100 |
---|---|---|
committer | Zac Pullar-Strecker <[email protected]> | 2020-10-08 03:04:57 +0100 |
commit | 26086faab2dab6baeaa050f73a7f64b83ead6807 (patch) | |
tree | fa7ad9e11f2e925f23e33d66bf4981b4a57ac701 /crates/hir | |
parent | c648884397bfdb779c447fa31964dc1fce94bd95 (diff) |
Change Option::Some bug to a fixme note
IMO this is too much work to be worth fixing at the moment.
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/code_model.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index 0b24f247c..231ec0004 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -779,6 +779,7 @@ impl Function { | |||
779 | db.function_data(self.id).has_body | 779 | db.function_data(self.id).has_body |
780 | } | 780 | } |
781 | 781 | ||
782 | /// If this function is a method, the trait or type where it is declared. | ||
782 | pub fn method_owner(self, db: &dyn HirDatabase) -> Option<MethodOwner> { | 783 | pub fn method_owner(self, db: &dyn HirDatabase) -> Option<MethodOwner> { |
783 | match self.as_assoc_item(db).map(|assoc| assoc.container(db)) { | 784 | match self.as_assoc_item(db).map(|assoc| assoc.container(db)) { |
784 | Some(AssocItemContainer::Trait(t)) => Some(t.into()), | 785 | Some(AssocItemContainer::Trait(t)) => Some(t.into()), |