mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Change Option::Some bug to a fixme note
IMO this is too much work to be worth fixing at the moment.
This commit is contained in:
parent
c648884397
commit
26086faab2
2 changed files with 4 additions and 3 deletions
|
@ -779,6 +779,7 @@ impl Function {
|
|||
db.function_data(self.id).has_body
|
||||
}
|
||||
|
||||
/// If this function is a method, the trait or type where it is declared.
|
||||
pub fn method_owner(self, db: &dyn HirDatabase) -> Option<MethodOwner> {
|
||||
match self.as_assoc_item(db).map(|assoc| assoc.container(db)) {
|
||||
Some(AssocItemContainer::Trait(t)) => Some(t.into()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue