aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/grammar/type_args.rs2
-rw-r--r--src/parser/grammar/type_params.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/grammar/type_args.rs b/src/parser/grammar/type_args.rs
index 6b2217012..276c8b4ae 100644
--- a/src/parser/grammar/type_args.rs
+++ b/src/parser/grammar/type_args.rs
@@ -35,7 +35,7 @@ fn type_arg(p: &mut Parser) {
35 m.complete(p, LIFETIME_ARG); 35 m.complete(p, LIFETIME_ARG);
36 }, 36 },
37 IDENT if p.nth(1) == EQ => { 37 IDENT if p.nth(1) == EQ => {
38 p.bump(); 38 name_ref(p);
39 p.bump(); 39 p.bump();
40 types::type_(p); 40 types::type_(p);
41 m.complete(p, ASSOC_TYPE_ARG); 41 m.complete(p, ASSOC_TYPE_ARG);
diff --git a/src/parser/grammar/type_params.rs b/src/parser/grammar/type_params.rs
index 3648ab5f3..ccb44c0df 100644
--- a/src/parser/grammar/type_params.rs
+++ b/src/parser/grammar/type_params.rs
@@ -38,7 +38,7 @@ pub(super) fn list(p: &mut Parser) {
38 fn type_param(p: &mut Parser) { 38 fn type_param(p: &mut Parser) {
39 assert!(p.at(IDENT)); 39 assert!(p.at(IDENT));
40 let m = p.start(); 40 let m = p.start();
41 p.bump(); 41 name(p);
42 if p.at(COLON) { 42 if p.at(COLON) {
43 bounds(p); 43 bounds(p);
44 } 44 }