gccrs: Reuse TypeCheckPattern on LetStmt's
authorOwen Avery <powerboat9.gamer@gmail.com>
Tue, 10 Jan 2023 00:54:55 +0000 (19:54 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:17 +0000 (10:47 +0200)
commit364f4cd3072cb1fa99431fe001f03451059f075e
tree56f4246ae0bb7b5b50aaca8b6bd1c4a310c4a73c
parent7eab9d18d97d0ea938c5c7194a7a82109d3a5ea6
gccrs: Reuse TypeCheckPattern on LetStmt's

Update Rust type-checking to reuse TypeCheckPattern on HIR::LetStmt's.
This will unify the paths and improve error handling.

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-stmt.cc (TypeCheckStmt::visit): Cleanup LetStmt
type checking.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-stmt.cc