@@ -147,12 +147,13 @@ fn test_try_from_bytes() {
147
147
unsafe impl :: zerocopy:: TryFromBytes for Foo {
148
148
fn only_derive_is_allowed_to_implement_this_trait( ) { }
149
149
150
- fn is_bit_valid<
151
- A : :: zerocopy:: pointer:: invariant:: Aliasing
150
+ fn is_bit_valid<___ZerocopyAliasing>(
151
+ mut candidate: :: zerocopy:: Maybe <Self , ___ZerocopyAliasing>,
152
+ ) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
153
+ where
154
+ ___ZerocopyAliasing: :: zerocopy:: pointer:: invariant:: Aliasing
152
155
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
153
- >(
154
- mut candidate: :: zerocopy:: Maybe <Self , A >,
155
- ) -> bool {
156
+ {
156
157
true
157
158
}
158
159
}
@@ -170,12 +171,13 @@ fn test_from_zeros() {
170
171
unsafe impl :: zerocopy:: TryFromBytes for Foo {
171
172
fn only_derive_is_allowed_to_implement_this_trait( ) { }
172
173
173
- fn is_bit_valid<
174
- A : :: zerocopy:: pointer:: invariant:: Aliasing
174
+ fn is_bit_valid<___ZerocopyAliasing>(
175
+ mut candidate: :: zerocopy:: Maybe <Self , ___ZerocopyAliasing>,
176
+ ) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
177
+ where
178
+ ___ZerocopyAliasing: :: zerocopy:: pointer:: invariant:: Aliasing
175
179
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
176
- >(
177
- mut candidate: :: zerocopy:: Maybe <Self , A >,
178
- ) -> bool {
180
+ {
179
181
true
180
182
}
181
183
}
@@ -198,12 +200,13 @@ fn test_from_bytes() {
198
200
unsafe impl :: zerocopy:: TryFromBytes for Foo {
199
201
fn only_derive_is_allowed_to_implement_this_trait( ) { }
200
202
201
- fn is_bit_valid<
202
- A : :: zerocopy:: pointer:: invariant:: Aliasing
203
+ fn is_bit_valid<___ZerocopyAliasing>(
204
+ mut candidate: :: zerocopy:: Maybe <Self , ___ZerocopyAliasing>,
205
+ ) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
206
+ where
207
+ ___ZerocopyAliasing: :: zerocopy:: pointer:: invariant:: Aliasing
203
208
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
204
- >(
205
- mut candidate: :: zerocopy:: Maybe <Self , A >,
206
- ) -> bool {
209
+ {
207
210
true
208
211
}
209
212
}
@@ -303,11 +306,11 @@ fn test_try_from_bytes_enum() {
303
306
PhantomData <& ' a [ ( X , Y ) ; N ] >: :: zerocopy:: TryFromBytes ,
304
307
{
305
308
fn only_derive_is_allowed_to_implement_this_trait( ) { }
306
- fn is_bit_valid<A >(
307
- mut candidate: :: zerocopy:: Maybe <' _, Self , A >,
309
+ fn is_bit_valid<___ZerocopyAliasing >(
310
+ mut candidate: :: zerocopy:: Maybe <' _, Self , ___ZerocopyAliasing >,
308
311
) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
309
312
where
310
- A : :: zerocopy:: pointer:: invariant:: Aliasing
313
+ ___ZerocopyAliasing : :: zerocopy:: pointer:: invariant:: Aliasing
311
314
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
312
315
{
313
316
use :: zerocopy:: util:: macro_util:: core_reexport;
@@ -445,11 +448,11 @@ fn test_try_from_bytes_enum() {
445
448
PhantomData <& ' a [ ( X , Y ) ; N ] >: :: zerocopy:: TryFromBytes ,
446
449
{
447
450
fn only_derive_is_allowed_to_implement_this_trait( ) { }
448
- fn is_bit_valid<A >(
449
- mut candidate: :: zerocopy:: Maybe <' _, Self , A >,
451
+ fn is_bit_valid<___ZerocopyAliasing >(
452
+ mut candidate: :: zerocopy:: Maybe <' _, Self , ___ZerocopyAliasing >,
450
453
) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
451
454
where
452
- A : :: zerocopy:: pointer:: invariant:: Aliasing
455
+ ___ZerocopyAliasing : :: zerocopy:: pointer:: invariant:: Aliasing
453
456
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
454
457
{
455
458
use :: zerocopy:: util:: macro_util:: core_reexport;
@@ -587,11 +590,11 @@ fn test_try_from_bytes_enum() {
587
590
PhantomData <& ' a [ ( X , Y ) ; N ] >: :: zerocopy:: TryFromBytes ,
588
591
{
589
592
fn only_derive_is_allowed_to_implement_this_trait( ) { }
590
- fn is_bit_valid<A >(
591
- mut candidate: :: zerocopy:: Maybe <' _, Self , A >,
593
+ fn is_bit_valid<___ZerocopyAliasing >(
594
+ mut candidate: :: zerocopy:: Maybe <' _, Self , ___ZerocopyAliasing >,
592
595
) -> :: zerocopy:: util:: macro_util:: core_reexport:: primitive:: bool
593
596
where
594
- A : :: zerocopy:: pointer:: invariant:: Aliasing
597
+ ___ZerocopyAliasing : :: zerocopy:: pointer:: invariant:: Aliasing
595
598
+ :: zerocopy:: pointer:: invariant:: AtLeast <:: zerocopy:: pointer:: invariant:: Shared >,
596
599
{
597
600
use :: zerocopy:: util:: macro_util:: core_reexport;
0 commit comments