mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add data queries for macros
This commit is contained in:
parent
55ec93a337
commit
c37fe779c6
8 changed files with 102 additions and 19 deletions
|
@ -472,7 +472,7 @@ fn filename_and_frag_for_def(
|
|||
}
|
||||
Definition::Const(c) => format!("const.{}.html", c.name(db)?),
|
||||
Definition::Static(s) => format!("static.{}.html", s.name(db)),
|
||||
Definition::Macro(mac) => format!("macro.{}.html", mac.name(db)?),
|
||||
Definition::Macro(mac) => format!("macro.{}.html", mac.name(db)),
|
||||
Definition::Field(field) => {
|
||||
let def = match field.parent_def(db) {
|
||||
hir::VariantDef::Struct(it) => Definition::Adt(it.into()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue