]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Implement missing read-only checker case for TuplePatternItemsHasRest
authorYap Zhi Heng <yapzhhg@gmail.com>
Thu, 28 Aug 2025 03:26:03 +0000 (11:26 +0800)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:59:06 +0000 (20:59 +0100)
commit735ac41b5c3c0bd2cf2bfa63292221e53f85ddb7
treeef415e41d3df0364570ca2b45d69bc4e31d5356a
parentd334ef54d14ea846eeee7dc912895d0c735696b9
gccrs: Implement missing read-only checker case for TuplePatternItemsHasRest

gcc/rust/ChangeLog:

* checks/errors/rust-readonly-check.cc (collect_assignment_tuple): Implement
read-only checker for tuple patterns with rest pattern.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
gcc/rust/checks/errors/rust-readonly-check.cc
gcc/testsuite/rust/compile/tuplepattern-rest-readonly.rs [new file with mode: 0644]