diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-07-05 16:40:38 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-07-07 11:35:06 +0200 |
commit | 1f32e5b4558126d872f455c65a94d9640a93c285 (patch) | |
tree | 46593ffd2c9b242b801f7cf021a4b9d380baf55a /gcc/rust/parse/rust-parse.h | |
parent | ad0e01dfbba94c0a10019db7c11b13fa0758c1fb (diff) | |
download | gcc-1f32e5b4558126d872f455c65a94d9640a93c285.zip gcc-1f32e5b4558126d872f455c65a94d9640a93c285.tar.gz gcc-1f32e5b4558126d872f455c65a94d9640a93c285.tar.bz2 |
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.
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<AST::TypePathSegment> 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); |