@@ -13,16 +13,19 @@ fn struct_() -> Result<()> {
13
13
}
14
14
} ,
15
15
quote ! {
16
+ #[ automatically_derived]
16
17
impl <T > :: core:: clone:: Clone for Test <T > {
17
18
#[ inline]
18
19
fn clone( & self ) -> Self {
19
20
* self
20
21
}
21
22
}
22
23
24
+ #[ automatically_derived]
23
25
impl <T > :: core:: marker:: Copy for Test <T >
24
26
{ }
25
27
28
+ #[ automatically_derived]
26
29
impl <T > :: core:: fmt:: Debug for Test <T > {
27
30
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
28
31
match self {
@@ -35,12 +38,14 @@ fn struct_() -> Result<()> {
35
38
}
36
39
}
37
40
41
+ #[ automatically_derived]
38
42
impl <T > :: core:: default :: Default for Test <T > {
39
43
fn default ( ) -> Self {
40
44
Test { field: :: core:: default :: Default :: default ( ) }
41
45
}
42
46
}
43
47
48
+ #[ automatically_derived]
44
49
impl <T > :: core:: cmp:: Eq for Test <T > {
45
50
#[ inline]
46
51
fn assert_receiver_is_total_eq( & self ) {
@@ -51,6 +56,7 @@ fn struct_() -> Result<()> {
51
56
}
52
57
}
53
58
59
+ #[ automatically_derived]
54
60
impl <T > :: core:: hash:: Hash for Test <T > {
55
61
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
56
62
match self {
@@ -59,6 +65,7 @@ fn struct_() -> Result<()> {
59
65
}
60
66
}
61
67
68
+ #[ automatically_derived]
62
69
impl <T > :: core:: cmp:: Ord for Test <T > {
63
70
#[ inline]
64
71
fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
@@ -72,6 +79,7 @@ fn struct_() -> Result<()> {
72
79
}
73
80
}
74
81
82
+ #[ automatically_derived]
75
83
impl <T > :: core:: cmp:: PartialEq for Test <T > {
76
84
#[ inline]
77
85
fn eq( & self , __other: & Self ) -> bool {
@@ -82,6 +90,7 @@ fn struct_() -> Result<()> {
82
90
}
83
91
}
84
92
93
+ #[ automatically_derived]
85
94
impl <T > :: core:: cmp:: PartialOrd for Test <T > {
86
95
#[ inline]
87
96
fn partial_cmp( & self , __other: & Self ) -> :: core:: option:: Option <:: core:: cmp:: Ordering > {
@@ -100,16 +109,19 @@ fn tuple() -> Result<()> {
100
109
struct Test <T >( std:: marker:: PhantomData <T >) ;
101
110
} ,
102
111
quote ! {
112
+ #[ automatically_derived]
103
113
impl <T > :: core:: clone:: Clone for Test <T > {
104
114
#[ inline]
105
115
fn clone( & self ) -> Self {
106
116
* self
107
117
}
108
118
}
109
119
120
+ #[ automatically_derived]
110
121
impl <T > :: core:: marker:: Copy for Test <T >
111
122
{ }
112
123
124
+ #[ automatically_derived]
113
125
impl <T > :: core:: fmt:: Debug for Test <T > {
114
126
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
115
127
match self {
@@ -122,12 +134,14 @@ fn tuple() -> Result<()> {
122
134
}
123
135
}
124
136
137
+ #[ automatically_derived]
125
138
impl <T > :: core:: default :: Default for Test <T > {
126
139
fn default ( ) -> Self {
127
140
Test ( :: core:: default :: Default :: default ( ) )
128
141
}
129
142
}
130
143
144
+ #[ automatically_derived]
131
145
impl <T > :: core:: cmp:: Eq for Test <T > {
132
146
#[ inline]
133
147
fn assert_receiver_is_total_eq( & self ) {
@@ -138,6 +152,7 @@ fn tuple() -> Result<()> {
138
152
}
139
153
}
140
154
155
+ #[ automatically_derived]
141
156
impl <T > :: core:: hash:: Hash for Test <T > {
142
157
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
143
158
match self {
@@ -146,6 +161,7 @@ fn tuple() -> Result<()> {
146
161
}
147
162
}
148
163
164
+ #[ automatically_derived]
149
165
impl <T > :: core:: cmp:: Ord for Test <T > {
150
166
#[ inline]
151
167
fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
@@ -159,6 +175,7 @@ fn tuple() -> Result<()> {
159
175
}
160
176
}
161
177
178
+ #[ automatically_derived]
162
179
impl <T > :: core:: cmp:: PartialEq for Test <T > {
163
180
#[ inline]
164
181
fn eq( & self , __other: & Self ) -> bool {
@@ -169,6 +186,7 @@ fn tuple() -> Result<()> {
169
186
}
170
187
}
171
188
189
+ #[ automatically_derived]
172
190
impl <T > :: core:: cmp:: PartialOrd for Test <T > {
173
191
#[ inline]
174
192
fn partial_cmp( & self , __other: & Self ) -> :: core:: option:: Option <:: core:: cmp:: Ordering > {
@@ -223,16 +241,19 @@ fn enum_() -> Result<()> {
223
241
}
224
242
} ,
225
243
quote ! {
244
+ #[ automatically_derived]
226
245
impl <T > :: core:: clone:: Clone for Test <T > {
227
246
#[ inline]
228
247
fn clone( & self ) -> Self {
229
248
* self
230
249
}
231
250
}
232
251
252
+ #[ automatically_derived]
233
253
impl <T > :: core:: marker:: Copy for Test <T >
234
254
{ }
235
255
256
+ #[ automatically_derived]
236
257
impl <T > :: core:: fmt:: Debug for Test <T > {
237
258
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
238
259
match self {
@@ -259,12 +280,14 @@ fn enum_() -> Result<()> {
259
280
}
260
281
}
261
282
283
+ #[ automatically_derived]
262
284
impl <T > :: core:: default :: Default for Test <T > {
263
285
fn default ( ) -> Self {
264
286
Test :: E
265
287
}
266
288
}
267
289
290
+ #[ automatically_derived]
268
291
impl <T > :: core:: cmp:: Eq for Test <T > {
269
292
#[ inline]
270
293
fn assert_receiver_is_total_eq( & self ) {
@@ -276,6 +299,7 @@ fn enum_() -> Result<()> {
276
299
}
277
300
}
278
301
302
+ #[ automatically_derived]
279
303
impl <T > :: core:: hash:: Hash for Test <T > {
280
304
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
281
305
match self {
@@ -300,6 +324,7 @@ fn enum_() -> Result<()> {
300
324
}
301
325
}
302
326
327
+ #[ automatically_derived]
303
328
impl <T > :: core:: cmp:: Ord for Test <T > {
304
329
#[ inline]
305
330
fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
@@ -325,6 +350,7 @@ fn enum_() -> Result<()> {
325
350
}
326
351
}
327
352
353
+ #[ automatically_derived]
328
354
impl <T > :: core:: cmp:: PartialEq for Test <T > {
329
355
#[ inline]
330
356
fn eq( & self , __other: & Self ) -> bool {
@@ -342,6 +368,7 @@ fn enum_() -> Result<()> {
342
368
}
343
369
}
344
370
371
+ #[ automatically_derived]
345
372
impl <T > :: core:: cmp:: PartialOrd for Test <T > {
346
373
#[ inline]
347
374
fn partial_cmp( & self , __other: & Self ) -> :: core:: option:: Option <:: core:: cmp:: Ordering > {
@@ -363,13 +390,15 @@ fn union_() -> Result<()> {
363
390
}
364
391
} ,
365
392
quote ! {
393
+ #[ automatically_derived]
366
394
impl <T > :: core:: clone:: Clone for Test <T > {
367
395
#[ inline]
368
396
fn clone( & self ) -> Self {
369
397
* self
370
398
}
371
399
}
372
400
401
+ #[ automatically_derived]
373
402
impl <T > :: core:: marker:: Copy for Test <T >
374
403
{ }
375
404
} ,
0 commit comments