]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix ICE in convert_tree for tuple destructuring with ref
authorlishin <lishin1008@gmail.com>
Sun, 10 Aug 2025 21:21:59 +0000 (22:21 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:41 +0000 (20:58 +0100)
commitb76bb3f2260bdbf61577585f2a4476ba88b57c12
tree317d3805a58a3ea992cc6ef299d4791e0333c274
parente919ef46c18e3e74d75bea1fa9cdf6fe44d20975
gccrs: fix ICE in convert_tree for tuple destructuring with ref

gcc/rust/ChangeLog:

* backend/rust-compile-pattern.cc (CompilePatternLet::visit):
Handle tuple destructuring containing by-ref.

gcc/testsuite/ChangeLog:

* rust/compile/issue-3645.rs: New test.

Signed-off-by: lishin <lishin1008@gmail.com>
gcc/rust/backend/rust-compile-pattern.cc
gcc/testsuite/rust/compile/issue-3645.rs [new file with mode: 0644]