diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2024-05-02 20:58:49 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:23 +0100 |
commit | 7b9e2b5d8b901e90b43d15acc62f02efa3c866bd (patch) | |
tree | 3e2074c43253a4528dc95ade9c1754ebd4a2b07a /gcc/rust/backend/rust-mangle-v0.cc | |
parent | 539fa6e83798b621eb84eb2ad192c8e65bb1817a (diff) | |
download | gcc-7b9e2b5d8b901e90b43d15acc62f02efa3c866bd.zip gcc-7b9e2b5d8b901e90b43d15acc62f02efa3c866bd.tar.gz gcc-7b9e2b5d8b901e90b43d15acc62f02efa3c866bd.tar.bz2 |
gccrs: Improve matching on non-enum ADTs
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc
(check_match_scrutinee): Add assertion.
* backend/rust-compile-pattern.cc
(CompilePatternCheckExpr::visit):
Handle HIR::PathInExpression matching a non-enum.
gcc/testsuite/ChangeLog:
* rust/compile/match-struct-path.rs: New test.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-mangle-v0.cc')
0 files changed, 0 insertions, 0 deletions