diff options
author | Raiki Tamura <tamaron1203@gmail.com> | 2024-08-08 02:25:05 +0900 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:10 +0100 |
commit | e620a86e4d7591eb446df828506da76c070d1eb9 (patch) | |
tree | 5b4bdf1051f553bf38612a56f52a24e68e7eacb0 /gcc/rust/resolve | |
parent | 8f4718f0b5900d1743563a5c4e8f3dcc6cec3468 (diff) | |
download | gcc-e620a86e4d7591eb446df828506da76c070d1eb9.zip gcc-e620a86e4d7591eb446df828506da76c070d1eb9.tar.gz gcc-e620a86e4d7591eb446df828506da76c070d1eb9.tar.bz2 |
gccrs: Implement initial pattern analysis pass.
gcc/rust/ChangeLog:
* Make-lang.in: Add rust-hir-pattern-analysis.o.
* rust-session-manager.cc (Session::compile_crate):
Add pattern analysis pass.
* typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit):
Do typecheck for subpatterns.
* checks/errors/rust-hir-pattern-analysis.cc: New file.
* checks/errors/rust-hir-pattern-analysis.h: New file.
gcc/testsuite/ChangeLog:
* rust/compile/exhaustiveness1.rs: New test.
* rust/compile/exhaustiveness2.rs: New test.
* rust/compile/exhaustiveness3.rs: New test.
Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions