aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2020-05-18 11:08:48 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:13 +0000
commit0833b2d55e3fea376b47f4f260cf87b050d6a5e7 (patch)
treefae4b439e9792e7e9f5344e26aabaaab351ed6e0 /gcc/rust/parse/rust-parse.h
parent40a5081072f2069447b3d3267f8b00a16433ab91 (diff)
downloadgcc-0833b2d55e3fea376b47f4f260cf87b050d6a5e7.zip
gcc-0833b2d55e3fea376b47f4f260cf87b050d6a5e7.tar.gz
gcc-0833b2d55e3fea376b47f4f260cf87b050d6a5e7.tar.bz2
For tuple structs the constructor is just a regular function call
This is a hack to get the AST to become a CallExpr more changes might occur later to cleanup this side of the AST.
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r--gcc/rust/parse/rust-parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index 5abfba6..5bbfefc 100644
--- a/gcc/rust/parse/rust-parse.h
+++ b/gcc/rust/parse/rust-parse.h
@@ -407,7 +407,7 @@ private:
::std::unique_ptr<AST::StructExprStruct>
parse_struct_expr_struct_partial (AST::PathInExpression path,
::std::vector<AST::Attribute> outer_attrs);
- ::std::unique_ptr<AST::StructExprTuple>
+ ::std::unique_ptr<AST::CallExpr>
parse_struct_expr_tuple_partial (AST::PathInExpression path,
::std::vector<AST::Attribute> outer_attrs);
AST::PathInExpression parse_path_in_expression_pratt (const_TokenPtr tok);