diff options
author | Mark Wielaard <mark@klomp.org> | 2021-06-23 18:06:35 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-06-23 17:22:35 +0100 |
commit | 23f622047ec24aa15b98fecbfc9376f6bafcd8cb (patch) | |
tree | 7011e1532b856d9e3beb2062ddf2dd1d5f5c169e /gcc/rust/backend/rust-compile-expr.h | |
parent | 4e5baf7e679a890c22804d16b99fc6794486825b (diff) | |
download | gcc-23f622047ec24aa15b98fecbfc9376f6bafcd8cb.zip gcc-23f622047ec24aa15b98fecbfc9376f6bafcd8cb.tar.gz gcc-23f622047ec24aa15b98fecbfc9376f6bafcd8cb.tar.bz2 |
Handle empty/unit tuple structs in the parser.
A tuple struct can be empty, in which case it is a unit tuple struct.
Handle this in Parser<ManagedTokenSource>::parse_struct by creating
a empty tuple_field vector instead of calling parse_tuple_fields.
Add a testcase to show empty tuple structs are now accepted.
Addresses: #385
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions