]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Use rich_location for TupleStructPattern type check num field error
authorYap Zhi Heng <yapzhhg@gmail.com>
Tue, 2 Sep 2025 13:44:19 +0000 (21:44 +0800)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 20:30:54 +0000 (21:30 +0100)
commit10c3682a55c61e48be4b30e52f8df9b4242b886e
treeb5747fd432f54858cfa8051569cf8ce1af321187
parent495ec48ac88128053567721745a3a740016fe6a4
gccrs: Use rich_location for TupleStructPattern type check num field error

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-pattern.cc (visit(TupleStructPattern)):
Update error for mismatched number of fields to use rich_location.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-pattern.cc
gcc/testsuite/rust/compile/match-tuplestructpattern-err.rs [new file with mode: 0644]