From 3d70aeb412ab2ebc8e7b9418d75e8c3cd2d63df3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 19:55:33 +0300 Subject: Use names&refs --- src/parser/grammar/type_args.rs | 2 +- src/parser/grammar/type_params.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser/grammar') 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) { m.complete(p, LIFETIME_ARG); }, IDENT if p.nth(1) == EQ => { - p.bump(); + name_ref(p); p.bump(); types::type_(p); 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) { fn type_param(p: &mut Parser) { assert!(p.at(IDENT)); let m = p.start(); - p.bump(); + name(p); if p.at(COLON) { bounds(p); } -- cgit v1.2.3