]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Implement compilation of IdentifierPattern's subpattern bindings
authorZhi Heng <yapzhhg@gmail.com>
Fri, 13 Jun 2025 14:45:23 +0000 (22:45 +0800)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:49 +0000 (16:36 +0200)
commitc11c65378d9a959fff53f0505e4457c239cfc6b8
tree020f21acd0caa6355d367eaf243ba891b72e3b88
parentaec1942c844fbd101958156f0027393f00a60e63
gccrs: Implement compilation of IdentifierPattern's subpattern bindings

gcc/rust/ChangeLog:

* backend/rust-compile-pattern.cc: Add support for IdentifierPattern's
subpattern under CompilePatternBindings.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
gcc/rust/backend/rust-compile-pattern.cc
gcc/testsuite/rust/compile/match-identifierpattern-enum.rs [new file with mode: 0644]
gcc/testsuite/rust/execute/match-identifierpattern-enum.rs [new file with mode: 0644]