diff options
author | Raiki Tamura <tamaron1203@gmail.com> | 2024-08-09 23:56:55 +0900 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-08-28 18:19:41 +0000 |
commit | 5da381ffd112693836b4532f680a5bd512552837 (patch) | |
tree | abfd755c13e22c8efc8fd6cc8f67217a03dfe687 /gcc/gimple-warn-recursion.cc | |
parent | af7e8fda83d8b34170f4fdf3371b67cd6b4e72f1 (diff) | |
download | gcc-5da381ffd112693836b4532f680a5bd512552837.zip gcc-5da381ffd112693836b4532f680a5bd512552837.tar.gz gcc-5da381ffd112693836b4532f680a5bd512552837.tar.bz2 |
gccrs: Add typecheck for path patterns.
gcc/rust/ChangeLog:
* hir/tree/rust-hir.cc (Item::item_kind_string): New function.
* hir/tree/rust-hir.h: New function.
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
Modify to check all arms in match expressions even if some of them
has errors.
* typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit):
Add and fix check for path patterns.
gcc/testsuite/ChangeLog:
* rust/compile/issue-2324-2.rs: Fix error message.
* rust/compile/match9.rs: New test.
Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'gcc/gimple-warn-recursion.cc')
0 files changed, 0 insertions, 0 deletions