]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add missing Sized, Copy and Clone lang item mappings
authorPhilip Herron <herron.philip@googlemail.com>
Tue, 31 Jan 2023 14:39:29 +0000 (14:39 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:21 +0000 (10:47 +0200)
commitf62dcf2c65a66615321acdf73f0f4c8a9ce679f9
tree79a78ac5e6eaf11b807849e69c195f9c010e1dcc
parent2a2e6712ba03437857c1b39ed0ce1ca7b0974318
gccrs: Add missing Sized, Copy and Clone lang item mappings

We need these lang items to be defined and later down the line the mappings
will be used to implement proper copy and clone logic.

Fixes #1786

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:

* util/rust-lang-item.h:

gcc/testsuite/ChangeLog:

* rust/compile/issue-1786.rs: New test.
gcc/rust/util/rust-lang-item.h
gcc/testsuite/rust/compile/issue-1786.rs [new file with mode: 0644]