mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Allow name querying for derive helpers
This commit is contained in:
parent
aa1491ecde
commit
ddad2847ab
8 changed files with 53 additions and 18 deletions
|
@ -121,7 +121,7 @@ impl Definition {
|
|||
Definition::Label(it) => it.name(db),
|
||||
Definition::BuiltinAttr(_) => return None, // FIXME
|
||||
Definition::ToolModule(_) => return None, // FIXME
|
||||
Definition::DeriveHelper(_) => return None, // FIXME
|
||||
Definition::DeriveHelper(it) => it.name(db),
|
||||
};
|
||||
Some(name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue