diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-24 10:11:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 10:11:22 +0000 |
commit | 23e748d7a6855ce132299cfef9692ee9c681de59 (patch) | |
tree | de6518392abf835f285e7951c0656d7394333ba2 /gcc/rust/backend/rust-compile-expr.h | |
parent | 595ae7743c93bfda40a5914d15ae0db2e7e57301 (diff) | |
parent | c41d5a20d34d11109142140a7a1db23d67ddf839 (diff) | |
download | gcc-23e748d7a6855ce132299cfef9692ee9c681de59.zip gcc-23e748d7a6855ce132299cfef9692ee9c681de59.tar.gz gcc-23e748d7a6855ce132299cfef9692ee9c681de59.tar.bz2 |
Merge #522
522: Handle empty/unit tuple enum variants in the parser. r=philberty a=philberty
A tuple enum variant can be empty, in which case it is a unit enum variant.
Handle this in Parser<ManagedTokenSource>::parse_enum_item by creating
a empty tuple_field vector instead of calling parse_tuple_fields.
Add a testcase to show empty tuple enum variant types are now accepted.
But note some part of the test is commented out because using the enum
type isn't actually possible right now.
Addresses #79
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