mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Move doc-comment highlight injection from AST to HIR
This commit is contained in:
parent
a69f7ce312
commit
11e9bc60a2
6 changed files with 64 additions and 19 deletions
|
@ -11,8 +11,8 @@ use hir_ty::db::HirDatabase;
|
|||
use syntax::ast;
|
||||
|
||||
use crate::{
|
||||
Adt, Const, ConstParam, Enum, Field, Function, GenericParam, LifetimeParam, MacroDef, Module,
|
||||
ModuleDef, Static, Struct, Trait, TypeAlias, TypeParam, Union, Variant,
|
||||
Adt, Const, ConstParam, Enum, Field, Function, GenericParam, Impl, LifetimeParam, MacroDef,
|
||||
Module, ModuleDef, Static, Struct, Trait, TypeAlias, TypeParam, Union, Variant,
|
||||
};
|
||||
|
||||
pub trait HasAttrs {
|
||||
|
@ -64,6 +64,7 @@ impl_has_attrs![
|
|||
(Adt, AdtId),
|
||||
(Module, ModuleId),
|
||||
(GenericParam, GenericParamId),
|
||||
(Impl, ImplId),
|
||||
];
|
||||
|
||||
macro_rules! impl_has_attrs_enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue