diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-16 15:23:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 15:23:39 +0000 |
commit | a8a345642a2a150a35b68e2f19b90abf105700c5 (patch) | |
tree | cab130a5d112eac9d1490a98139831cfd8f3a717 /gcc/rust/backend/rust-compile-expr.h | |
parent | e8d91e9e0825b4d1a4e46531142fdc0c83c761db (diff) | |
parent | 45edfc2b265cffab529d2cd70b37af559bd02c21 (diff) | |
download | gcc-a8a345642a2a150a35b68e2f19b90abf105700c5.zip gcc-a8a345642a2a150a35b68e2f19b90abf105700c5.tar.gz gcc-a8a345642a2a150a35b68e2f19b90abf105700c5.tar.bz2 |
Merge #839
839: Add typechecking for match-expr r=philberty a=philberty
This adds in the type checking pass for the match expression including static
analysis for errors such as:
- error[E0532]: expected tuple struct or tuple variant, found struct variant `Foo::D`
- error[E0027]: pattern does not mention fields `x`, `y`
- error[E0026]: variant `Foo::D` does not have a field named `b`
- error[E0532]: expected tuple struct or tuple variant, found struct variant `Foo::D`
Addresses #190
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions