@@ -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
@@ -171,6 +174,7 @@ fn test_from_zeros() {
171
174
struct Foo ;
172
175
} expands to {
173
176
#[ allow( deprecated) ]
177
+ #[ automatically_derived]
174
178
unsafe impl :: zerocopy:: TryFromBytes for Foo {
175
179
fn only_derive_is_allowed_to_implement_this_trait( ) { }
176
180
@@ -185,6 +189,7 @@ fn test_from_zeros() {
185
189
}
186
190
187
191
#[ allow( deprecated) ]
192
+ #[ automatically_derived]
188
193
unsafe impl :: zerocopy:: FromZeros for Foo {
189
194
fn only_derive_is_allowed_to_implement_this_trait( ) { }
190
195
}
@@ -199,6 +204,7 @@ fn test_from_bytes_struct() {
199
204
struct Foo ;
200
205
} expands to {
201
206
#[ allow( deprecated) ]
207
+ #[ automatically_derived]
202
208
unsafe impl :: zerocopy:: TryFromBytes for Foo {
203
209
fn only_derive_is_allowed_to_implement_this_trait( ) { }
204
210
@@ -222,11 +228,13 @@ fn test_from_bytes_struct() {
222
228
}
223
229
224
230
#[ allow( deprecated) ]
231
+ #[ automatically_derived]
225
232
unsafe impl :: zerocopy:: FromZeros for Foo {
226
233
fn only_derive_is_allowed_to_implement_this_trait( ) { }
227
234
}
228
235
229
236
#[ allow( deprecated) ]
237
+ #[ automatically_derived]
230
238
unsafe impl :: zerocopy:: FromBytes for Foo {
231
239
fn only_derive_is_allowed_to_implement_this_trait( ) { }
232
240
}
@@ -243,6 +251,7 @@ fn test_from_bytes_union() {
243
251
}
244
252
} expands to {
245
253
#[ allow( deprecated) ]
254
+ #[ automatically_derived]
246
255
unsafe impl :: zerocopy:: TryFromBytes for Foo
247
256
where
248
257
u8 : :: zerocopy:: TryFromBytes + :: zerocopy:: Immutable ,
@@ -269,6 +278,7 @@ fn test_from_bytes_union() {
269
278
}
270
279
271
280
#[ allow( deprecated) ]
281
+ #[ automatically_derived]
272
282
unsafe impl :: zerocopy:: FromZeros for Foo
273
283
where
274
284
u8 : :: zerocopy:: FromZeros + :: zerocopy:: Immutable ,
@@ -277,6 +287,7 @@ fn test_from_bytes_union() {
277
287
}
278
288
279
289
#[ allow( deprecated) ]
290
+ #[ automatically_derived]
280
291
unsafe impl :: zerocopy:: FromBytes for Foo
281
292
where
282
293
u8 : :: zerocopy:: FromBytes + :: zerocopy:: Immutable ,
@@ -295,6 +306,7 @@ fn test_into_bytes() {
295
306
struct Foo ;
296
307
} expands to {
297
308
#[ allow( deprecated) ]
309
+ #[ automatically_derived]
298
310
unsafe impl :: zerocopy:: IntoBytes for Foo {
299
311
fn only_derive_is_allowed_to_implement_this_trait( ) { }
300
312
}
@@ -310,6 +322,7 @@ fn test_into_bytes() {
310
322
}
311
323
} expands to {
312
324
#[ allow( deprecated) ]
325
+ #[ automatically_derived]
313
326
unsafe impl :: zerocopy:: IntoBytes for Foo
314
327
where
315
328
u8 : :: zerocopy:: IntoBytes ,
@@ -333,6 +346,7 @@ fn test_unaligned() {
333
346
struct Foo ;
334
347
} expands to {
335
348
#[ allow( deprecated) ]
349
+ #[ automatically_derived]
336
350
unsafe impl :: zerocopy:: Unaligned for Foo {
337
351
fn only_derive_is_allowed_to_implement_this_trait( ) { }
338
352
}
@@ -355,6 +369,7 @@ fn test_try_from_bytes_enum() {
355
369
}
356
370
} expands to {
357
371
#[ allow( deprecated) ]
372
+ #[ automatically_derived]
358
373
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
359
374
for ComplexWithGenerics <' a, { N } , X , Y >
360
375
where
@@ -377,7 +392,7 @@ fn test_try_from_bytes_enum() {
377
392
{
378
393
use :: zerocopy:: util:: macro_util:: core_reexport;
379
394
#[ repr( u8 ) ]
380
- #[ allow( dead_code) ]
395
+ #[ allow( dead_code, non_camel_case_types ) ]
381
396
enum ___ZerocopyTag {
382
397
UnitLike ,
383
398
StructLike ,
@@ -411,6 +426,7 @@ fn test_try_from_bytes_enum() {
411
426
where
412
427
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
413
428
#[ allow( deprecated) ]
429
+ #[ automatically_derived]
414
430
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
415
431
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
416
432
where
@@ -506,6 +522,7 @@ fn test_try_from_bytes_enum() {
506
522
where
507
523
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
508
524
#[ allow( deprecated) ]
525
+ #[ automatically_derived]
509
526
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
510
527
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
511
528
where
@@ -642,6 +659,7 @@ fn test_try_from_bytes_enum() {
642
659
}
643
660
} expands to {
644
661
#[ allow( deprecated) ]
662
+ #[ automatically_derived]
645
663
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
646
664
for ComplexWithGenerics <' a, { N } , X , Y >
647
665
where
@@ -664,7 +682,7 @@ fn test_try_from_bytes_enum() {
664
682
{
665
683
use :: zerocopy:: util:: macro_util:: core_reexport;
666
684
#[ repr( u32 ) ]
667
- #[ allow( dead_code) ]
685
+ #[ allow( dead_code, non_camel_case_types ) ]
668
686
enum ___ZerocopyTag {
669
687
UnitLike ,
670
688
StructLike ,
@@ -698,6 +716,7 @@ fn test_try_from_bytes_enum() {
698
716
where
699
717
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
700
718
#[ allow( deprecated) ]
719
+ #[ automatically_derived]
701
720
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
702
721
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
703
722
where
@@ -793,6 +812,7 @@ fn test_try_from_bytes_enum() {
793
812
where
794
813
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
795
814
#[ allow( deprecated) ]
815
+ #[ automatically_derived]
796
816
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
797
817
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
798
818
where
@@ -929,6 +949,7 @@ fn test_try_from_bytes_enum() {
929
949
}
930
950
} expands to {
931
951
#[ allow( deprecated) ]
952
+ #[ automatically_derived]
932
953
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
933
954
for ComplexWithGenerics <' a, { N } , X , Y >
934
955
where
@@ -951,7 +972,7 @@ fn test_try_from_bytes_enum() {
951
972
{
952
973
use :: zerocopy:: util:: macro_util:: core_reexport;
953
974
#[ repr( C ) ]
954
- #[ allow( dead_code) ]
975
+ #[ allow( dead_code, non_camel_case_types ) ]
955
976
enum ___ZerocopyTag {
956
977
UnitLike ,
957
978
StructLike ,
@@ -985,6 +1006,7 @@ fn test_try_from_bytes_enum() {
985
1006
where
986
1007
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
987
1008
#[ allow( deprecated) ]
1009
+ #[ automatically_derived]
988
1010
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
989
1011
for ___ZerocopyVariantStruct_StructLike<' a, { N } , X , Y >
990
1012
where
@@ -1080,6 +1102,7 @@ fn test_try_from_bytes_enum() {
1080
1102
where
1081
1103
X : Deref <Target = & ' a [ ( X , Y ) ; N ] >;
1082
1104
#[ allow( deprecated) ]
1105
+ #[ automatically_derived]
1083
1106
unsafe impl <' a: ' static , const N : usize , X , Y : Deref > :: zerocopy:: TryFromBytes
1084
1107
for ___ZerocopyVariantStruct_TupleLike<' a, { N } , X , Y >
1085
1108
where
@@ -1471,6 +1494,7 @@ fn test_from_bytes_enum() {
1471
1494
}
1472
1495
} expands to {
1473
1496
#[ allow( deprecated) ]
1497
+ #[ automatically_derived]
1474
1498
unsafe impl :: zerocopy:: TryFromBytes for Foo {
1475
1499
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1476
1500
@@ -1494,11 +1518,13 @@ fn test_from_bytes_enum() {
1494
1518
}
1495
1519
1496
1520
#[ allow( deprecated) ]
1521
+ #[ automatically_derived]
1497
1522
unsafe impl :: zerocopy:: FromZeros for Foo {
1498
1523
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1499
1524
}
1500
1525
1501
1526
#[ allow( deprecated) ]
1527
+ #[ automatically_derived]
1502
1528
unsafe impl :: zerocopy:: FromBytes for Foo {
1503
1529
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1504
1530
}
@@ -1775,6 +1801,7 @@ fn test_try_from_bytes_trivial_is_bit_valid_enum() {
1775
1801
}
1776
1802
} expands to {
1777
1803
#[ allow( deprecated) ]
1804
+ #[ automatically_derived]
1778
1805
unsafe impl :: zerocopy:: TryFromBytes for Foo {
1779
1806
fn only_derive_is_allowed_to_implement_this_trait( ) { }
1780
1807
0 commit comments