diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-11-05 22:27:44 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-08 21:10:20 +0800 |
commit | 1271b772038d1e01cfed35ea5c764ceedc9842f9 (patch) | |
tree | 7a79b1fc23c33a0bb5f7916ac3a8973fb3387ed1 /gcc/rust/parse/rust-parse.h | |
parent | 69048af1878e95e26b57febb701f884f513c7b93 (diff) | |
download | gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.zip gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.tar.gz gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.tar.bz2 |
Added more trait item stripping
Fixed lack of AST:: prepending in rust-parse-impl.h - should prevent compilation error
Fixed expr renaming in Method as_string, should prevent compile error
Fixed issue with changing location accessibility for AST nodes
Fixed rust-compile.cc not using get_locus() instead of .locus
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index 82d8d6f..5202abf 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -164,7 +164,8 @@ private: template <typename EndTokenPred> std::vector<std::unique_ptr<AST::TypeParam> > parse_type_params (EndTokenPred is_end_token); std::unique_ptr<AST::TypeParam> parse_type_param (); - std::vector<AST::FunctionParam> parse_function_params (); + template <typename EndTokenPred> + std::vector<AST::FunctionParam> parse_function_params (EndTokenPred is_end_token); AST::FunctionParam parse_function_param (); std::unique_ptr<AST::Type> parse_function_return_type (); AST::WhereClause parse_where_clause (); |