@@ -102,6 +102,7 @@ fn test_known_layout() {
102
102
struct Foo ;
103
103
} expands to {
104
104
#[ allow( deprecated) ]
105
+ #[ automatically_derived]
105
106
unsafe impl :: zerocopy:: KnownLayout for Foo
106
107
where
107
108
Self : :: zerocopy:: util:: macro_util:: core_reexport:: marker:: Sized ,
@@ -134,6 +135,7 @@ fn test_immutable() {
134
135
struct Foo ;
135
136
} expands to {
136
137
#[ allow( deprecated) ]
138
+ #[ automatically_derived]
137
139
unsafe impl :: zerocopy:: Immutable for Foo {
138
140
fn only_derive_is_allowed_to_implement_this_trait( ) { }
139
141
}
@@ -148,6 +150,7 @@ fn test_try_from_bytes() {
148
150
struct Foo ;
149
151
} expands to {
150
152
#[ allow( deprecated) ]
153
+ #[ automatically_derived]
151
154
unsafe impl :: zerocopy:: TryFromBytes for Foo {
152
155
fn only_derive_is_allowed_to_implement_this_trait( ) { }
153
156
@@ -172,6 +175,7 @@ fn test_from_zeros() {
172
175
struct Foo ;
173
176
} expands to {
174
177
#[ allow( deprecated) ]
178
+ #[ automatically_derived]
175
179
unsafe impl :: zerocopy:: TryFromBytes for Foo {
176
180
fn only_derive_is_allowed_to_implement_this_trait( ) { }
177
181
@@ -187,6 +191,7 @@ fn test_from_zeros() {
187
191
}
188
192
189
193
#[ allow( deprecated) ]
194
+ #[ automatically_derived]
190
195
unsafe impl :: zerocopy:: FromZeros for Foo {
191
196
fn only_derive_is_allowed_to_implement_this_trait( ) { }
192
197
}
@@ -201,6 +206,7 @@ fn test_from_bytes_struct() {
201
206
struct Foo ;
202
207
} expands to {
203
208
#[ allow( deprecated) ]
209
+ #[ automatically_derived]
204
210
unsafe impl :: zerocopy:: TryFromBytes for Foo {
205
211
fn only_derive_is_allowed_to_implement_this_trait( ) { }
206
212
@@ -225,11 +231,13 @@ fn test_from_bytes_struct() {
225
231
}
226
232
227
233
#[ allow( deprecated) ]
234
+ #[ automatically_derived]
228
235
unsafe impl :: zerocopy:: FromZeros for Foo {
229
236
fn only_derive_is_allowed_to_implement_this_trait( ) { }
230
237
}
231
238
232
239
#[ allow( deprecated) ]
240
+ #[ automatically_derived]
233
241
unsafe impl :: zerocopy:: FromBytes for Foo {
234
242
fn only_derive_is_allowed_to_implement_this_trait( ) { }
235
243
}
@@ -246,6 +254,7 @@ fn test_from_bytes_union() {
246
254
}
247
255
} expands to {
248
256
#[ allow( deprecated) ]
257
+ #[ automatically_derived]
249
258
unsafe impl :: zerocopy:: TryFromBytes for Foo
250
259
where
251
260
u8 : :: zerocopy:: TryFromBytes + :: zerocopy:: Immutable ,
@@ -273,6 +282,7 @@ fn test_from_bytes_union() {
273
282
}
274
283
275
284
#[ allow( deprecated) ]
285
+ #[ automatically_derived]
276
286
unsafe impl :: zerocopy:: FromZeros for Foo
277
287
where
278
288
u8 : :: zerocopy:: FromZeros + :: zerocopy:: Immutable ,
@@ -281,6 +291,7 @@ fn test_from_bytes_union() {
281
291
}
282
292
283
293
#[ allow( deprecated) ]
294
+ #[ automatically_derived]
284
295
unsafe impl :: zerocopy:: FromBytes for Foo
285
296
where
286
297
u8 : :: zerocopy:: FromBytes + :: zerocopy:: Immutable ,
@@ -299,6 +310,7 @@ fn test_into_bytes() {
299
310
struct Foo ;
300
311
} expands to {
301
312
#[ allow( deprecated) ]
313
+ #[ automatically_derived]
302
314
unsafe impl :: zerocopy:: IntoBytes for Foo {
303
315
fn only_derive_is_allowed_to_implement_this_trait( ) { }
304
316
}
@@ -314,6 +326,7 @@ fn test_into_bytes() {
314
326
}
315
327
} expands to {
316
328
#[ allow( deprecated) ]
329
+ #[ automatically_derived]
317
330
unsafe impl :: zerocopy:: IntoBytes for Foo
318
331
where
319
332
u8 : :: zerocopy:: IntoBytes ,
@@ -337,6 +350,7 @@ fn test_unaligned() {
337
350
struct Foo ;
338
351
} expands to {
339
352
#[ allow( deprecated) ]
353
+ #[ automatically_derived]
340
354
unsafe impl :: zerocopy:: Unaligned for Foo {
341
355
fn only_derive_is_allowed_to_implement_this_trait( ) { }
342
356
}
@@ -359,6 +373,7 @@ fn test_try_from_bytes_enum() {
359
373
}
360
374
} expands to {
361
375
#[ allow( deprecated) ]
376
+ #[ automatically_derived]
362
377
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
363
378
for ComplexWithGenerics <' a, { N } , X , Y >
364
379
where
@@ -382,7 +397,7 @@ fn test_try_from_bytes_enum() {
382
397
{
383
398
use :: zerocopy:: util:: macro_util:: core_reexport;
384
399
#[ repr( u8 ) ]
385
- #[ allow( dead_code) ]
400
+ #[ allow( dead_code, non_camel_case_types ) ]
386
401
enum ___ZerocopyTag {
387
402
UnitLike ,
388
403
StructLike ,
@@ -416,6 +431,7 @@ fn test_try_from_bytes_enum() {
416
431
where
417
432
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
418
433
#[ allow( deprecated) ]
434
+ #[ automatically_derived]
419
435
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
420
436
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
421
437
where
@@ -512,6 +528,7 @@ fn test_try_from_bytes_enum() {
512
528
where
513
529
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
514
530
#[ allow( deprecated) ]
531
+ #[ automatically_derived]
515
532
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
516
533
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
517
534
where
@@ -653,6 +670,7 @@ fn test_try_from_bytes_enum() {
653
670
}
654
671
} expands to {
655
672
#[ allow( deprecated) ]
673
+ #[ automatically_derived]
656
674
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
657
675
for ComplexWithGenerics <' a, { N } , X , Y >
658
676
where
@@ -676,7 +694,7 @@ fn test_try_from_bytes_enum() {
676
694
{
677
695
use :: zerocopy:: util:: macro_util:: core_reexport;
678
696
#[ repr( u32 ) ]
679
- #[ allow( dead_code) ]
697
+ #[ allow( dead_code, non_camel_case_types ) ]
680
698
enum ___ZerocopyTag {
681
699
UnitLike ,
682
700
StructLike ,
@@ -710,6 +728,7 @@ fn test_try_from_bytes_enum() {
710
728
where
711
729
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
712
730
#[ allow( deprecated) ]
731
+ #[ automatically_derived]
713
732
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
714
733
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
715
734
where
@@ -806,6 +825,7 @@ fn test_try_from_bytes_enum() {
806
825
where
807
826
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
808
827
#[ allow( deprecated) ]
828
+ #[ automatically_derived]
809
829
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
810
830
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
811
831
where
@@ -947,6 +967,7 @@ fn test_try_from_bytes_enum() {
947
967
}
948
968
} expands to {
949
969
#[ allow( deprecated) ]
970
+ #[ automatically_derived]
950
971
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
951
972
for ComplexWithGenerics <' a, { N } , X , Y >
952
973
where
@@ -970,7 +991,7 @@ fn test_try_from_bytes_enum() {
970
991
{
971
992
use :: zerocopy:: util:: macro_util:: core_reexport;
972
993
#[ repr( C ) ]
973
- #[ allow( dead_code) ]
994
+ #[ allow( dead_code, non_camel_case_types ) ]
974
995
enum ___ZerocopyTag {
975
996
UnitLike ,
976
997
StructLike ,
@@ -1004,6 +1025,7 @@ fn test_try_from_bytes_enum() {
1004
1025
where
1005
1026
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
1006
1027
#[ allow( deprecated) ]
1028
+ #[ automatically_derived]
1007
1029
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
1008
1030
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
1009
1031
where
@@ -1100,6 +1122,7 @@ fn test_try_from_bytes_enum() {
1100
1122
where
1101
1123
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
1102
1124
#[ allow( deprecated) ]
1125
+ #[ automatically_derived]
1103
1126
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
1104
1127
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
1105
1128
where
@@ -1496,6 +1519,7 @@ fn test_from_bytes_enum() {
1496
1519
}
1497
1520
} expands to {
1498
1521
#[ allow( deprecated) ]
1522
+ #[ automatically_derived]
1499
1523
unsafe impl :: zerocopy:: TryFromBytes for Foo {
1500
1524
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1501
1525
@@ -1520,11 +1544,13 @@ fn test_from_bytes_enum() {
1520
1544
}
1521
1545
1522
1546
#[ allow( deprecated) ]
1547
+ #[ automatically_derived]
1523
1548
unsafe impl :: zerocopy:: FromZeros for Foo {
1524
1549
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1525
1550
}
1526
1551
1527
1552
#[ allow( deprecated) ]
1553
+ #[ automatically_derived]
1528
1554
unsafe impl :: zerocopy:: FromBytes for Foo {
1529
1555
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1530
1556
}
@@ -1801,6 +1827,7 @@ fn test_try_from_bytes_trivial_is_bit_valid_enum() {
1801
1827
}
1802
1828
} expands to {
1803
1829
#[ allow( deprecated) ]
1830
+ #[ automatically_derived]
1804
1831
unsafe impl :: zerocopy:: TryFromBytes for Foo {
1805
1832
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1806
1833
0 commit comments