aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-23 16:24:39 +0000
committerGitHub <noreply@github.com>2021-06-23 16:24:39 +0000
commit595ae7743c93bfda40a5914d15ae0db2e7e57301 (patch)
tree7011e1532b856d9e3beb2062ddf2dd1d5f5c169e /gcc/rust/backend/rust-compile-expr.h
parent4e5baf7e679a890c22804d16b99fc6794486825b (diff)
parent23f622047ec24aa15b98fecbfc9376f6bafcd8cb (diff)
downloadgcc-595ae7743c93bfda40a5914d15ae0db2e7e57301.zip
gcc-595ae7743c93bfda40a5914d15ae0db2e7e57301.tar.gz
gcc-595ae7743c93bfda40a5914d15ae0db2e7e57301.tar.bz2
Merge #521
521: Handle empty/unit tuple structs in the parser. r=philberty a=philberty 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 Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions