aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-derive-debug.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-30 14:41:11 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2025-02-20 09:37:09 +0000
commitd45dfed78f9243addd015c8534876b5c32f09c25 (patch)
tree8440b0d16c953c6e74db33ecc0174b4b8d3b026a /gcc/rust/expand/rust-derive-debug.cc
parent699dc7b64eb7ad6bb5f106cce4230100a2d7a5e5 (diff)
downloadgcc-d45dfed78f9243addd015c8534876b5c32f09c25.zip
gcc-d45dfed78f9243addd015c8534876b5c32f09c25.tar.gz
gcc-d45dfed78f9243addd015c8534876b5c32f09c25.tar.bz2
derive(PartialEq): Add partial implementation
We are still missing some deriving for enums, as part of our codegen and nameres for rebinding struct field patterns is missing. gcc/rust/ChangeLog: * expand/rust-derive-partial-eq.cc: New file. * expand/rust-derive-partial-eq.h: New file. * expand/rust-derive.cc (DeriveVisitor::derive): Call them. * Make-lang.in: Compile them. gcc/testsuite/ChangeLog: * rust/compile/derive-eq-invalid.rs: Mark PartialEq def as a lang item. * rust/compile/derive-partialeq1.rs: New test. * rust/execute/torture/derive-partialeq1.rs: New test. * rust/compile/nr2/exclude: Exclude all of them.
Diffstat (limited to 'gcc/rust/expand/rust-derive-debug.cc')
0 files changed, 0 insertions, 0 deletions