]> git.ipfire.org Git - thirdparty/gcc.git/commit
derive(Hash): Add implementation.
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 20 Feb 2025 17:01:28 +0000 (17:01 +0000)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 24 Feb 2025 08:53:25 +0000 (08:53 +0000)
commit1361615946def3c04cfd44c0f47f1cb1e183d1be
treeb90b20b8aebef9c9c02e2b2d9314484228858fc3
parent6a02fdab62434fae56fbdceeb40e238d2698d621
derive(Hash): Add implementation.

gcc/rust/ChangeLog:

* Make-lang.in: Compile it.
* expand/rust-derive.cc (DeriveVisitor::derive): Call it.
* expand/rust-derive-hash.cc: New file.
* expand/rust-derive-hash.h: New file.

gcc/testsuite/ChangeLog:

* rust/compile/derive-hash1.rs: New test.
* rust/compile/nr2/exclude: Add testcase to exclusion list.
gcc/rust/Make-lang.in
gcc/rust/expand/rust-derive-hash.cc [new file with mode: 0644]
gcc/rust/expand/rust-derive-hash.h [new file with mode: 0644]
gcc/rust/expand/rust-derive.cc
gcc/testsuite/rust/compile/derive-hash1.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/nr2/exclude