Avoid matching duplicate impl outline items in tests

This commit is contained in:
Antonio Scandurra 2022-03-29 11:59:34 +02:00
parent 9df2dacd85
commit a86118cfe2

View file

@ -961,11 +961,8 @@ fn rust_lang() -> Language {
name: (_) @name) @item name: (_) @name) @item
(impl_item (impl_item
"impl" @context "impl" @context
type: (_) @name) @item trait: (_)? @name
(impl_item "for"? @context
"impl" @context
trait: (_) @name
"for" @context
type: (_) @name) @item type: (_) @name) @item
(function_item (function_item
"fn" @context "fn" @context