mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
feat: Resolve builtin-attr and tools in ide layer
This commit is contained in:
parent
4691a0647b
commit
e58af219a4
15 changed files with 209 additions and 99 deletions
|
@ -263,6 +263,8 @@ fn module_def_to_hl_tag(def: Definition) -> HlTag {
|
|||
hir::GenericParam::ConstParam(_) => SymbolKind::ConstParam,
|
||||
},
|
||||
Definition::Label(_) => SymbolKind::Label,
|
||||
Definition::BuiltinAttr(_) => SymbolKind::Label, // FIXME
|
||||
Definition::Tool(_) => SymbolKind::Label, // FIXME
|
||||
};
|
||||
HlTag::Symbol(symbol)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue