aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/type_args.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-08-09 11:16:47 +0100
committerAleksey Kladov <[email protected]>2019-08-09 11:16:47 +0100
commitf3ee5a15090d8ba6ec220e1f907ed3af27e57734 (patch)
treed4042c35679ca1e4db06fd9976d90d025fca0966 /crates/ra_parser/src/grammar/type_args.rs
parent5f82012779c374d9f6b518634aefb14ce28e17e6 (diff)
Move numeric names inside of `NameRef`
Diffstat (limited to 'crates/ra_parser/src/grammar/type_args.rs')
-rw-r--r--crates/ra_parser/src/grammar/type_args.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/type_args.rs b/crates/ra_parser/src/grammar/type_args.rs
index f1d999dea..3db08b280 100644
--- a/crates/ra_parser/src/grammar/type_args.rs
+++ b/crates/ra_parser/src/grammar/type_args.rs
@@ -38,12 +38,12 @@ fn type_arg(p: &mut Parser) {
38 // test associated_type_bounds 38 // test associated_type_bounds
39 // fn print_all<T: Iterator<Item: Display>>(printables: T) {} 39 // fn print_all<T: Iterator<Item: Display>>(printables: T) {}
40 IDENT if p.nth(1) == T![:] => { 40 IDENT if p.nth(1) == T![:] => {
41 name_ref(p, false); 41 name_ref(p);
42 type_params::bounds(p); 42 type_params::bounds(p);
43 m.complete(p, ASSOC_TYPE_ARG); 43 m.complete(p, ASSOC_TYPE_ARG);
44 } 44 }
45 IDENT if p.nth(1) == T![=] => { 45 IDENT if p.nth(1) == T![=] => {
46 name_ref(p, false); 46 name_ref(p);
47 p.bump(); 47 p.bump();
48 types::type_(p); 48 types::type_(p);
49 m.complete(p, ASSOC_TYPE_ARG); 49 m.complete(p, ASSOC_TYPE_ARG);