From ce1b34fd59a6145a4bb5682d672c846e101725d4 Mon Sep 17 00:00:00 2001 From: Michael Chesser Date: Tue, 7 Jan 2020 09:29:03 +1030 Subject: Improve const generics parsing - Handle const generics type args - Fix issue with const generic as first parameter in trait impl --- xtask/src/ast_src.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index d494a4a38..67d1f41bc 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -206,6 +206,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { "LIFETIME_ARG", "TYPE_ARG", "ASSOC_TYPE_ARG", + "CONST_ARG", "PARAM_LIST", "PARAM", "SELF_PARAM", @@ -511,10 +512,12 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { type_args: [TypeArg], lifetime_args: [LifetimeArg], assoc_type_args: [AssocTypeArg], + const_arg: [ConstArg], } struct TypeArg { TypeRef } struct AssocTypeArg { NameRef, TypeRef } struct LifetimeArg {} + struct ConstArg { Literal, BlockExpr } struct MacroItems: ModuleItemOwner, FnDefOwner { } -- cgit v1.2.3