@@ -25,6 +25,8 @@ extern crate std;
25
25
// Empty struct.
26
26
struct Empty;
27
27
#[automatically_derived]
28
+ unsafe impl ::core::clone::TrivialClone for Empty { }
29
+ #[automatically_derived]
28
30
impl ::core::clone::Clone for Empty {
29
31
#[inline]
30
32
fn clone(&self) -> Empty { *self }
@@ -85,6 +87,8 @@ struct Point {
85
87
y: u32,
86
88
}
87
89
#[automatically_derived]
90
+ unsafe impl ::core::clone::TrivialClone for Point { }
91
+ #[automatically_derived]
88
92
impl ::core::clone::Clone for Point {
89
93
#[inline]
90
94
fn clone(&self) -> Point {
@@ -170,6 +174,8 @@ struct PackedPoint {
170
174
y: u32,
171
175
}
172
176
#[automatically_derived]
177
+ unsafe impl ::core::clone::TrivialClone for PackedPoint { }
178
+ #[automatically_derived]
173
179
impl ::core::clone::Clone for PackedPoint {
174
180
#[inline]
175
181
fn clone(&self) -> PackedPoint {
@@ -262,6 +268,8 @@ struct Big {
262
268
b8: u32,
263
269
}
264
270
#[automatically_derived]
271
+ unsafe impl ::core::clone::TrivialClone for Big { }
272
+ #[automatically_derived]
265
273
impl ::core::clone::Clone for Big {
266
274
#[inline]
267
275
fn clone(&self) -> Big {
@@ -763,6 +771,8 @@ impl<T: ::core::cmp::Ord + ::core::marker::Copy + Trait, U: ::core::cmp::Ord +
763
771
// An empty enum.
764
772
enum Enum0 {}
765
773
#[automatically_derived]
774
+ unsafe impl ::core::clone::TrivialClone for Enum0 { }
775
+ #[automatically_derived]
766
776
impl ::core::clone::Clone for Enum0 {
767
777
#[inline]
768
778
fn clone(&self) -> Enum0 { *self }
@@ -958,6 +968,8 @@ enum Fieldless {
958
968
C,
959
969
}
960
970
#[automatically_derived]
971
+ unsafe impl ::core::clone::TrivialClone for Fieldless { }
972
+ #[automatically_derived]
961
973
impl ::core::clone::Clone for Fieldless {
962
974
#[inline]
963
975
fn clone(&self) -> Fieldless { *self }
@@ -1040,6 +1052,8 @@ enum Mixed {
1040
1052
},
1041
1053
}
1042
1054
#[automatically_derived]
1055
+ unsafe impl ::core::clone::TrivialClone for Mixed { }
1056
+ #[automatically_derived]
1043
1057
impl ::core::clone::Clone for Mixed {
1044
1058
#[inline]
1045
1059
fn clone(&self) -> Mixed {
@@ -1437,6 +1451,8 @@ pub union Union {
1437
1451
pub i: i32,
1438
1452
}
1439
1453
#[automatically_derived]
1454
+ unsafe impl ::core::clone::TrivialClone for Union { }
1455
+ #[automatically_derived]
1440
1456
impl ::core::clone::Clone for Union {
1441
1457
#[inline]
1442
1458
fn clone(&self) -> Union {
0 commit comments