https://gcc.gnu.org/g:0722d35b69aa281622be416417a242a1fa698890
commit 0722d35b69aa281622be416417a242a1fa698890 Author: Arthur Cohen <arthur.co...@embecosm.com> Date: Thu Jan 2 11:00:21 2025 +0000 derive(Clone): Improve existing testcase gcc/testsuite/ChangeLog: * rust/compile/derive_macro4.rs: Mark Copy and Clone as lang items. Diff: --- gcc/testsuite/rust/compile/derive_macro4.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/rust/compile/derive_macro4.rs b/gcc/testsuite/rust/compile/derive_macro4.rs index b20043ba927b..8bf1bcaf5f7b 100644 --- a/gcc/testsuite/rust/compile/derive_macro4.rs +++ b/gcc/testsuite/rust/compile/derive_macro4.rs @@ -1,7 +1,10 @@ #[lang = "sized"] pub trait Sized {} +#[lang = "copy"] pub trait Copy {} + +#[lang = "clone"] pub trait Clone { fn clone(&self) -> Self; }