]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: derive(Clone): Improve existing testcase
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 2 Jan 2025 11:00:21 +0000 (11:00 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:57:51 +0000 (12:57 +0100)
gcc/testsuite/ChangeLog:

* rust/compile/derive_macro4.rs: Mark Copy and Clone as lang items.

gcc/testsuite/rust/compile/derive_macro4.rs

index b20043ba927b1e14a7a22bd57b2839da89dc8e71..8bf1bcaf5f7bf01a3998024e009e19dab51e0d05 100644 (file)
@@ -1,7 +1,10 @@
 #[lang = "sized"]
 pub trait Sized {}
 
+#[lang = "copy"]
 pub trait Copy {}
+
+#[lang = "clone"]
 pub trait Clone {
     fn clone(&self) -> Self;
 }