diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-18 21:00:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 21:00:27 +0000 |
commit | b06de309ebdcc1ece1c3a5ef79a2a69a0e9f8965 (patch) | |
tree | 0cfaf806ac4ef1afbd32014133611c6e4cbf3305 /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | a8a345642a2a150a35b68e2f19b90abf105700c5 (diff) | |
parent | 52ee02f4012d0d5d4363ebb4e71e57b053acf072 (diff) | |
download | gcc-b06de309ebdcc1ece1c3a5ef79a2a69a0e9f8965.zip gcc-b06de309ebdcc1ece1c3a5ef79a2a69a0e9f8965.tar.gz gcc-b06de309ebdcc1ece1c3a5ef79a2a69a0e9f8965.tar.bz2 |
Merge #841
841: Add support for enums on the match expression r=philberty a=philberty
This adds in the initial support MatchExpression which allows us to start testing much
more complex rust code. Ideally we can now start targeing the #682 to find nasty bugs
early as possible.
This takes the MatchExpr and generates a SWITCH_EXPR with associated
CASE_LABEL_EXPR's for the variants that the qualifier contains.
To improve this support in order to take advantage of SWITCH_ALL_CASES_P
to add error checking for all cases being covered. This will require changes
to the enum data structure to use ENUMERAL_TYPES instead of the flat i64
so the enumerable type contains the list of all possible permutations.
This patch is the first pass at the MatchExpr as the patch is already pretty
large and serves as a base to move forward.
Fixes #190
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions