mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 10:58:02 +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
|
|
@ -20,7 +20,7 @@ pub(super) fn trait_(p: &mut Parser<'_>, m: Marker) {
|
|||
// trait Z<U> = where Self: T<U>;
|
||||
generic_params::opt_where_clause(p);
|
||||
p.expect(T![;]);
|
||||
m.complete(p, TRAIT_ALIAS);
|
||||
m.complete(p, TRAIT);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -284,7 +284,6 @@ pub enum SyntaxKind {
|
|||
STRUCT,
|
||||
TOKEN_TREE,
|
||||
TRAIT,
|
||||
TRAIT_ALIAS,
|
||||
TRY_EXPR,
|
||||
TUPLE_EXPR,
|
||||
TUPLE_FIELD,
|
||||
|
|
@ -457,7 +456,6 @@ impl SyntaxKind {
|
|||
| STRUCT
|
||||
| TOKEN_TREE
|
||||
| TRAIT
|
||||
| TRAIT_ALIAS
|
||||
| TRY_EXPR
|
||||
| TUPLE_EXPR
|
||||
| TUPLE_FIELD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue