mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
G: use names in traits
This commit is contained in:
parent
c13e6db774
commit
fa2131365e
3 changed files with 9 additions and 7 deletions
|
@ -3,7 +3,7 @@ use super::*;
|
|||
pub(super) fn trait_item(p: &mut Parser) {
|
||||
assert!(p.at(TRAIT_KW));
|
||||
p.bump();
|
||||
p.expect(IDENT);
|
||||
name(p);
|
||||
p.expect(L_CURLY);
|
||||
p.expect(R_CURLY);
|
||||
}
|
||||
|
|
|
@ -3,9 +3,10 @@ FILE@[0; 18)
|
|||
UNSAFE_KW@[0; 6)
|
||||
WHITESPACE@[6; 7)
|
||||
TRAIT_KW@[7; 12)
|
||||
WHITESPACE@[12; 13)
|
||||
IDENT@[13; 14) "T"
|
||||
WHITESPACE@[14; 15)
|
||||
NAME@[12; 15)
|
||||
WHITESPACE@[12; 13)
|
||||
IDENT@[13; 14) "T"
|
||||
WHITESPACE@[14; 15)
|
||||
L_CURLY@[15; 16)
|
||||
R_CURLY@[16; 17)
|
||||
WHITESPACE@[17; 18)
|
||||
|
|
|
@ -5,9 +5,10 @@ FILE@[0; 23)
|
|||
AUTO_KW@[7; 11)
|
||||
WHITESPACE@[11; 12)
|
||||
TRAIT_KW@[12; 17)
|
||||
WHITESPACE@[17; 18)
|
||||
IDENT@[18; 19) "T"
|
||||
WHITESPACE@[19; 20)
|
||||
NAME@[17; 20)
|
||||
WHITESPACE@[17; 18)
|
||||
IDENT@[18; 19) "T"
|
||||
WHITESPACE@[19; 20)
|
||||
L_CURLY@[20; 21)
|
||||
R_CURLY@[21; 22)
|
||||
WHITESPACE@[22; 23)
|
||||
|
|
Loading…
Reference in a new issue