mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-15 16:11:01 +00:00
Merge Trait and TraitAlias handling
This commit is contained in:
parent
a9450ebba3
commit
82f174fbd9
74 changed files with 68 additions and 577 deletions
|
@ -163,7 +163,6 @@ impl Definition {
|
|||
Definition::Const(it) => name_range(it, sema).and_then(syn_ctx_is_root),
|
||||
Definition::Static(it) => name_range(it, sema).and_then(syn_ctx_is_root),
|
||||
Definition::Trait(it) => name_range(it, sema).and_then(syn_ctx_is_root),
|
||||
Definition::TraitAlias(it) => name_range(it, sema).and_then(syn_ctx_is_root),
|
||||
Definition::TypeAlias(it) => name_range(it, sema).and_then(syn_ctx_is_root),
|
||||
Definition::Local(it) => {
|
||||
name_range(it.primary_source(sema.db), sema).and_then(syn_ctx_is_root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue