From 1f32e5b4558126d872f455c65a94d9640a93c285 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Tue, 5 Jul 2022 16:40:38 +0200 Subject: ast: Rename ConstGenericArg -> GenericArg This makes the class clearer and exposes the fact that it may contain a type OR a const value clearer. Because we now run in ambiguous cases later in the compiler pipeline, this commit also adds horrible hacks to simply ignore ambiguous generic arguments and treat them as type arguments. --- gcc/rust/parse/rust-parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rust/parse/rust-parse.h') diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index fa88f8e..23a1e7c 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -177,7 +177,7 @@ private: AST::TypePath parse_type_path (); std::unique_ptr parse_type_path_segment (); AST::PathIdentSegment parse_path_ident_segment (); - AST::ConstGenericArg parse_const_generic_expression (); + AST::GenericArg parse_generic_arg (); AST::GenericArgs parse_path_generic_args (); AST::GenericArgsBinding parse_generic_args_binding (); AST::TypePathFunction parse_type_path_function (Location locus); -- cgit v1.1