diff --git a/zerocopy/src/byte_slice.rs b/zerocopy/src/byte_slice.rs index 6f9ee9ac33..2c5ea3a5e8 100644 --- a/zerocopy/src/byte_slice.rs +++ b/zerocopy/src/byte_slice.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/byteorder.rs b/zerocopy/src/byteorder.rs index 206fde3850..efe5862125 100644 --- a/zerocopy/src/byteorder.rs +++ b/zerocopy/src/byteorder.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/deprecated.rs b/zerocopy/src/deprecated.rs index 61b29aa5f4..97be761def 100644 --- a/zerocopy/src/deprecated.rs +++ b/zerocopy/src/deprecated.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under the 2-Clause BSD License , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/invariant.rs b/zerocopy/src/pointer/invariant.rs index 2af211dd9f..f7680af5ad 100644 --- a/zerocopy/src/pointer/invariant.rs +++ b/zerocopy/src/pointer/invariant.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/mod.rs b/zerocopy/src/pointer/mod.rs index 4c3658679d..bdb283fdac 100644 --- a/zerocopy/src/pointer/mod.rs +++ b/zerocopy/src/pointer/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/ptr.rs b/zerocopy/src/pointer/ptr.rs index 307b2aee63..487f01fa36 100644 --- a/zerocopy/src/pointer/ptr.rs +++ b/zerocopy/src/pointer/ptr.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/transmute.rs b/zerocopy/src/pointer/transmute.rs index 45b4f727fd..14d36acb4f 100644 --- a/zerocopy/src/pointer/transmute.rs +++ b/zerocopy/src/pointer/transmute.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2025 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/ref.rs b/zerocopy/src/ref.rs index 496afc435c..1a9cdc8f04 100644 --- a/zerocopy/src/ref.rs +++ b/zerocopy/src/ref.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under the 2-Clause BSD License , Apache License, Version 2.0 diff --git a/zerocopy/src/util/macros.rs b/zerocopy/src/util/macros.rs index 7dca5410c8..ebee9615cf 100644 --- a/zerocopy/src/util/macros.rs +++ b/zerocopy/src/util/macros.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/util/mod.rs b/zerocopy/src/util/mod.rs index 1a6c0b22a4..77e56a1076 100644 --- a/zerocopy/src/util/mod.rs +++ b/zerocopy/src/util/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/wrappers.rs b/zerocopy/src/wrappers.rs index f3930eb7eb..8b52996108 100644 --- a/zerocopy/src/wrappers.rs +++ b/zerocopy/src/wrappers.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/tests/ui/transmute-ptr-to-usize.nightly.stderr b/zerocopy/tests/ui/transmute-ptr-to-usize.nightly.stderr index 1b0d0c004a..e2a444faf7 100644 --- a/zerocopy/tests/ui/transmute-ptr-to-usize.nightly.stderr +++ b/zerocopy/tests/ui/transmute-ptr-to-usize.nightly.stderr @@ -9,14 +9,14 @@ error[E0277]: the trait bound `*const usize: IntoBytes` is not satisfied | = note: Consider adding `#[derive(IntoBytes)]` to `*const usize` help: the trait `IntoBytes` is implemented for `usize` - --> src/util/macros.rs:29:9 + --> src/util/macros.rs:31:9 | -29 | unsafe impl $trait for $ty { +31 | unsafe impl $trait for $ty { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | - ::: src/impls.rs:77:5 + ::: src/impls.rs:79:5 | -77 | unsafe_impl!(usize: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); +79 | unsafe_impl!(usize: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); | ----------------------------------------------------------------------------- in this macro invocation note: required by a bound in `POINTER_VALUE::transmute` --> $DIR/transmute-ptr-to-usize.rs:21:30 diff --git a/zerocopy/tests/ui/transmute-ptr-to-usize.stable.stderr b/zerocopy/tests/ui/transmute-ptr-to-usize.stable.stderr index e4d641e391..88fcc52841 100644 --- a/zerocopy/tests/ui/transmute-ptr-to-usize.stable.stderr +++ b/zerocopy/tests/ui/transmute-ptr-to-usize.stable.stderr @@ -9,9 +9,9 @@ error[E0277]: the trait bound `*const usize: IntoBytes` is not satisfied | = note: Consider adding `#[derive(IntoBytes)]` to `*const usize` help: the trait `IntoBytes` is implemented for `usize` - --> $WORKSPACE/src/impls.rs:77:5 + --> $WORKSPACE/src/impls.rs:79:5 | -77 | unsafe_impl!(usize: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); +79 | unsafe_impl!(usize: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `POINTER_VALUE::transmute` --> $DIR/transmute-ptr-to-usize.rs:21:30 diff --git a/zerocopy/tests/ui/transmute_mut.msrv.stderr b/zerocopy/tests/ui/transmute_mut.msrv.stderr index 931042c23f..f20b71b4a1 100644 --- a/zerocopy/tests/ui/transmute_mut.msrv.stderr +++ b/zerocopy/tests/ui/transmute_mut.msrv.stderr @@ -82,9 +82,9 @@ error[E0599]: the method `transmute_mut` exists for struct `Wrap<&mut [u8], &mut 87 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Wrap<&mut [u8], &mut [u8; 1]>` due to unsatisfied trait bounds | - ::: $WORKSPACE/src/util/macro_util.rs:692:1 + ::: $WORKSPACE/src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | --------------------------------------------------------- doesn't satisfy `Wrap<&mut [u8], &mut [u8; 1]>: TransmuteMutDst` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/transmute_mut.nightly.stderr b/zerocopy/tests/ui/transmute_mut.nightly.stderr index a8583191ba..add1c52381 100644 --- a/zerocopy/tests/ui/transmute_mut.nightly.stderr +++ b/zerocopy/tests/ui/transmute_mut.nightly.stderr @@ -41,12 +41,12 @@ help: the trait `FromBytes` is not implemented for `DstA` (A, B, C, D, E, F, G, H) and 85 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> src/util/macro_util.rs:812:14 + --> src/util/macro_util.rs:814:14 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function ... -812 | Dst: FromBytes + IntoBytes, +814 | Dst: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -73,12 +73,12 @@ help: the trait `IntoBytes` is not implemented for `DstB` AtomicIsize and 74 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> src/util/macro_util.rs:812:26 + --> src/util/macro_util.rs:814:26 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function ... -812 | Dst: FromBytes + IntoBytes, +814 | Dst: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -149,12 +149,12 @@ help: the trait `FromBytes` is not implemented for `SrcC` (A, B, C, D, E, F, G, H) and 85 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> src/util/macro_util.rs:811:14 + --> src/util/macro_util.rs:813:14 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function -810 | where -811 | Src: FromBytes + IntoBytes, +812 | where +813 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -181,12 +181,12 @@ help: the trait `IntoBytes` is not implemented for `SrcD` AtomicIsize and 74 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> src/util/macro_util.rs:811:26 + --> src/util/macro_util.rs:813:26 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function -810 | where -811 | Src: FromBytes + IntoBytes, +812 | where +813 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -196,9 +196,9 @@ error[E0599]: the method `transmute_mut` exists for struct `zerocopy::util::macr 87 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - ::: src/util/macro_util.rs:692:1 + ::: src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | ------------------------- doesn't satisfy `_: TransmuteMutDst<'_>` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/transmute_mut.stable.stderr b/zerocopy/tests/ui/transmute_mut.stable.stderr index d1bdd85b24..529f3e9a5d 100644 --- a/zerocopy/tests/ui/transmute_mut.stable.stderr +++ b/zerocopy/tests/ui/transmute_mut.stable.stderr @@ -41,12 +41,12 @@ help: the trait `FromBytes` is not implemented for `DstA` (A, B, C, D, E, F, G, H) and 85 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:812:14 + --> $WORKSPACE/src/util/macro_util.rs:814:14 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function ... -812 | Dst: FromBytes + IntoBytes, +814 | Dst: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -73,12 +73,12 @@ help: the trait `IntoBytes` is not implemented for `DstB` AtomicIsize and 74 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:812:26 + --> $WORKSPACE/src/util/macro_util.rs:814:26 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function ... -812 | Dst: FromBytes + IntoBytes, +814 | Dst: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -149,12 +149,12 @@ help: the trait `FromBytes` is not implemented for `SrcC` (A, B, C, D, E, F, G, H) and 85 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:811:14 + --> $WORKSPACE/src/util/macro_util.rs:813:14 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function -810 | where -811 | Src: FromBytes + IntoBytes, +812 | where +813 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -181,12 +181,12 @@ help: the trait `IntoBytes` is not implemented for `SrcD` AtomicIsize and 74 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:811:26 + --> $WORKSPACE/src/util/macro_util.rs:813:26 | -809 | pub fn transmute_mut(self) -> &'a mut Dst +811 | pub fn transmute_mut(self) -> &'a mut Dst | ------------- required by a bound in this associated function -810 | where -811 | Src: FromBytes + IntoBytes, +812 | where +813 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -196,9 +196,9 @@ error[E0599]: the method `transmute_mut` exists for struct `Wrap<&mut [u8], &mut 87 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - ::: $WORKSPACE/src/util/macro_util.rs:692:1 + ::: $WORKSPACE/src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | ------------------------- doesn't satisfy `Wrap<&mut [u8], &mut [u8; 1]>: TransmuteMutDst<'_>` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/transmute_ref.msrv.stderr b/zerocopy/tests/ui/transmute_ref.msrv.stderr index d70436009a..a9eef4afe0 100644 --- a/zerocopy/tests/ui/transmute_ref.msrv.stderr +++ b/zerocopy/tests/ui/transmute_ref.msrv.stderr @@ -188,9 +188,9 @@ error[E0599]: the method `transmute_ref` exists for struct `Wrap<&[u8], &[u8; 1] 84 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Wrap<&[u8], &[u8; 1]>` due to unsatisfied trait bounds | - ::: $WORKSPACE/src/util/macro_util.rs:692:1 + ::: $WORKSPACE/src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | --------------------------------------------------------- doesn't satisfy `Wrap<&[u8], &[u8; 1]>: TransmuteRefDst` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/transmute_ref.nightly.stderr b/zerocopy/tests/ui/transmute_ref.nightly.stderr index 1fc9242ec6..66343bfbea 100644 --- a/zerocopy/tests/ui/transmute_ref.nightly.stderr +++ b/zerocopy/tests/ui/transmute_ref.nightly.stderr @@ -342,9 +342,9 @@ error[E0599]: the method `transmute_ref` exists for struct `zerocopy::util::macr 84 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | - ::: src/util/macro_util.rs:692:1 + ::: src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | ------------------------- doesn't satisfy `_: TransmuteRefDst<'_>` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/transmute_ref.stable.stderr b/zerocopy/tests/ui/transmute_ref.stable.stderr index da4ab8025d..711478a724 100644 --- a/zerocopy/tests/ui/transmute_ref.stable.stderr +++ b/zerocopy/tests/ui/transmute_ref.stable.stderr @@ -342,9 +342,9 @@ error[E0599]: the method `transmute_ref` exists for struct `Wrap<&[u8], &[u8; 1] 84 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | - ::: $WORKSPACE/src/util/macro_util.rs:692:1 + ::: $WORKSPACE/src/util/macro_util.rs:694:1 | -692 | pub struct Wrap(pub Src, pub PhantomData); +694 | pub struct Wrap(pub Src, pub PhantomData); | ------------------------- doesn't satisfy `Wrap<&[u8], &[u8; 1]>: TransmuteRefDst<'_>` | = note: the following trait bounds were not satisfied: diff --git a/zerocopy/tests/ui/try_transmute.msrv.stderr b/zerocopy/tests/ui/try_transmute.msrv.stderr index 2497483105..dacbbe8e23 100644 --- a/zerocopy/tests/ui/try_transmute.msrv.stderr +++ b/zerocopy/tests/ui/try_transmute.msrv.stderr @@ -5,9 +5,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `try_transmute` - --> $WORKSPACE/src/util/macro_util.rs:526:10 + --> $WORKSPACE/src/util/macro_util.rs:528:10 | -526 | Dst: TryFromBytes, +528 | Dst: TryFromBytes, | ^^^^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -18,9 +18,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -30,9 +30,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -43,9 +43,9 @@ error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy` | note: required by a bound in `try_transmute` - --> $WORKSPACE/src/util/macro_util.rs:525:10 + --> $WORKSPACE/src/util/macro_util.rs:527:10 | -525 | Src: IntoBytes, +527 | Src: IntoBytes, | ^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute.nightly.stderr b/zerocopy/tests/ui/try_transmute.nightly.stderr index 7d4b5262a1..0af8bbd540 100644 --- a/zerocopy/tests/ui/try_transmute.nightly.stderr +++ b/zerocopy/tests/ui/try_transmute.nightly.stderr @@ -21,9 +21,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -49,12 +49,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `zerocopy::util::macro_util::try_transmute` - --> src/util/macro_util.rs:526:10 + --> src/util/macro_util.rs:528:10 | -523 | pub fn try_transmute(src: Src) -> Result> +525 | pub fn try_transmute(src: Src) -> Result> | ------------- required by a bound in this function ... -526 | Dst: TryFromBytes, +528 | Dst: TryFromBytes, | ^^^^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -81,9 +81,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -110,12 +110,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 68 others note: required by a bound in `zerocopy::util::macro_util::try_transmute` - --> src/util/macro_util.rs:525:10 + --> src/util/macro_util.rs:527:10 | -523 | pub fn try_transmute(src: Src) -> Result> +525 | pub fn try_transmute(src: Src) -> Result> | ------------- required by a bound in this function -524 | where -525 | Src: IntoBytes, +526 | where +527 | Src: IntoBytes, | ^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute.stable.stderr b/zerocopy/tests/ui/try_transmute.stable.stderr index 321254e8c4..aeddb9ea4e 100644 --- a/zerocopy/tests/ui/try_transmute.stable.stderr +++ b/zerocopy/tests/ui/try_transmute.stable.stderr @@ -21,9 +21,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -49,12 +49,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `try_transmute` - --> $WORKSPACE/src/util/macro_util.rs:526:10 + --> $WORKSPACE/src/util/macro_util.rs:528:10 | -523 | pub fn try_transmute(src: Src) -> Result> +525 | pub fn try_transmute(src: Src) -> Result> | ------------- required by a bound in this function ... -526 | Dst: TryFromBytes, +528 | Dst: TryFromBytes, | ^^^^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -81,9 +81,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -110,12 +110,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 68 others note: required by a bound in `try_transmute` - --> $WORKSPACE/src/util/macro_util.rs:525:10 + --> $WORKSPACE/src/util/macro_util.rs:527:10 | -523 | pub fn try_transmute(src: Src) -> Result> +525 | pub fn try_transmute(src: Src) -> Result> | ------------- required by a bound in this function -524 | where -525 | Src: IntoBytes, +526 | where +527 | Src: IntoBytes, | ^^^^^^^^^ required by this bound in `try_transmute` = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_mut.msrv.stderr b/zerocopy/tests/ui/try_transmute_mut.msrv.stderr index 6a2edd1801..8b45a0d9c0 100644 --- a/zerocopy/tests/ui/try_transmute_mut.msrv.stderr +++ b/zerocopy/tests/ui/try_transmute_mut.msrv.stderr @@ -21,9 +21,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -33,9 +33,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_mut.nightly.stderr b/zerocopy/tests/ui/try_transmute_mut.nightly.stderr index 75ff6d63ee..204c2ae180 100644 --- a/zerocopy/tests/ui/try_transmute_mut.nightly.stderr +++ b/zerocopy/tests/ui/try_transmute_mut.nightly.stderr @@ -21,12 +21,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:835:14 + --> src/util/macro_util.rs:837:14 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -53,12 +53,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 69 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:835:29 + --> src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -85,9 +85,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -113,9 +113,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -142,12 +142,12 @@ help: the trait `FromBytes` is not implemented for `SrcA` (A, B, C, D, E, F, G, H) and 80 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:834:14 + --> src/util/macro_util.rs:836:14 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function -833 | where -834 | Src: FromBytes + IntoBytes, +835 | where +836 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -174,12 +174,12 @@ help: the trait `IntoBytes` is not implemented for `DstA` AtomicIsize and 69 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:835:29 + --> src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -206,12 +206,12 @@ help: the trait `IntoBytes` is not implemented for `SrcB` AtomicIsize and 69 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:834:26 + --> src/util/macro_util.rs:836:26 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function -833 | where -834 | Src: FromBytes + IntoBytes, +835 | where +836 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -238,12 +238,12 @@ help: the trait `IntoBytes` is not implemented for `DstB` AtomicIsize and 69 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> src/util/macro_util.rs:835:29 + --> src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_mut.stable.stderr b/zerocopy/tests/ui/try_transmute_mut.stable.stderr index bf8bd8f1fe..097faf651a 100644 --- a/zerocopy/tests/ui/try_transmute_mut.stable.stderr +++ b/zerocopy/tests/ui/try_transmute_mut.stable.stderr @@ -21,12 +21,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:835:14 + --> $WORKSPACE/src/util/macro_util.rs:837:14 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -53,12 +53,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 69 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:835:29 + --> $WORKSPACE/src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -85,9 +85,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -113,9 +113,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 156 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -142,12 +142,12 @@ help: the trait `FromBytes` is not implemented for `SrcA` (A, B, C, D, E, F, G, H) and 80 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:834:14 + --> $WORKSPACE/src/util/macro_util.rs:836:14 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function -833 | where -834 | Src: FromBytes + IntoBytes, +835 | where +836 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -174,12 +174,12 @@ help: the trait `IntoBytes` is not implemented for `DstA` AtomicIsize and 69 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:835:29 + --> $WORKSPACE/src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -206,12 +206,12 @@ help: the trait `IntoBytes` is not implemented for `SrcB` AtomicIsize and 69 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:834:26 + --> $WORKSPACE/src/util/macro_util.rs:836:26 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function -833 | where -834 | Src: FromBytes + IntoBytes, +835 | where +836 | Src: FromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -238,12 +238,12 @@ help: the trait `IntoBytes` is not implemented for `DstB` AtomicIsize and 69 others note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` - --> $WORKSPACE/src/util/macro_util.rs:835:29 + --> $WORKSPACE/src/util/macro_util.rs:837:29 | -832 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> +834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> | ----------------- required by a bound in this associated function ... -835 | Dst: TryFromBytes + IntoBytes, +837 | Dst: TryFromBytes + IntoBytes, | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_ref.msrv.stderr b/zerocopy/tests/ui/try_transmute_ref.msrv.stderr index aca2936efe..32afc9e209 100644 --- a/zerocopy/tests/ui/try_transmute_ref.msrv.stderr +++ b/zerocopy/tests/ui/try_transmute_ref.msrv.stderr @@ -44,9 +44,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -56,9 +56,9 @@ error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` | note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_ref.nightly.stderr b/zerocopy/tests/ui/try_transmute_ref.nightly.stderr index 7838f0ccae..c98c813c42 100644 --- a/zerocopy/tests/ui/try_transmute_ref.nightly.stderr +++ b/zerocopy/tests/ui/try_transmute_ref.nightly.stderr @@ -38,12 +38,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> src/util/macro_util.rs:755:14 + --> src/util/macro_util.rs:757:14 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function ... -755 | Dst: TryFromBytes + Immutable, +757 | Dst: TryFromBytes + Immutable, | ^^^^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -70,12 +70,12 @@ help: the trait `Immutable` is not implemented for `NotZerocopy` (A, B, C, D, E, F) and 128 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> src/util/macro_util.rs:755:29 + --> src/util/macro_util.rs:757:29 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function ... -755 | Dst: TryFromBytes + Immutable, +757 | Dst: TryFromBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -102,9 +102,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -130,9 +130,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> src/error.rs:588:45 + --> src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -159,12 +159,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 68 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> src/util/macro_util.rs:754:14 + --> src/util/macro_util.rs:756:14 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function -753 | where -754 | Src: IntoBytes + Immutable, +755 | where +756 | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -191,12 +191,12 @@ help: the trait `Immutable` is not implemented for `NotZerocopy` (A, B, C, D, E, F) and 128 others note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> src/util/macro_util.rs:754:26 + --> src/util/macro_util.rs:756:26 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function -753 | where -754 | Src: IntoBytes + Immutable, +755 | where +756 | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/tests/ui/try_transmute_ref.stable.stderr b/zerocopy/tests/ui/try_transmute_ref.stable.stderr index 7577e39563..eec92890ad 100644 --- a/zerocopy/tests/ui/try_transmute_ref.stable.stderr +++ b/zerocopy/tests/ui/try_transmute_ref.stable.stderr @@ -38,12 +38,12 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> $WORKSPACE/src/util/macro_util.rs:755:14 + --> $WORKSPACE/src/util/macro_util.rs:757:14 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function ... -755 | Dst: TryFromBytes + Immutable, +757 | Dst: TryFromBytes + Immutable, | ^^^^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -70,12 +70,12 @@ help: the trait `Immutable` is not implemented for `NotZerocopy` (A, B, C, D, E, F) and 128 others note: required by a bound in `Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> $WORKSPACE/src/util/macro_util.rs:755:29 + --> $WORKSPACE/src/util/macro_util.rs:757:29 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function ... -755 | Dst: TryFromBytes + Immutable, +757 | Dst: TryFromBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -102,9 +102,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied @@ -130,9 +130,9 @@ help: the trait `TryFromBytes` is not implemented for `NotZerocopy` (A, B, C, D, E, F, G, H) and 153 others note: required by a bound in `ValidityError` - --> $WORKSPACE/src/error.rs:588:45 + --> $WORKSPACE/src/error.rs:590:45 | -588 | pub struct ValidityError { +590 | pub struct ValidityError { | ^^^^^^^^^^^^ required by this bound in `ValidityError` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -159,12 +159,12 @@ help: the trait `IntoBytes` is not implemented for `NotZerocopy` AtomicIsize and 68 others note: required by a bound in `Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> $WORKSPACE/src/util/macro_util.rs:754:14 + --> $WORKSPACE/src/util/macro_util.rs:756:14 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function -753 | where -754 | Src: IntoBytes + Immutable, +755 | where +756 | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -191,12 +191,12 @@ help: the trait `Immutable` is not implemented for `NotZerocopy` (A, B, C, D, E, F) and 128 others note: required by a bound in `Wrap::<&'a Src, &'a Dst>::try_transmute_ref` - --> $WORKSPACE/src/util/macro_util.rs:754:26 + --> $WORKSPACE/src/util/macro_util.rs:756:26 | -752 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> +754 | pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> | ----------------- required by a bound in this associated function -753 | where -754 | Src: IntoBytes + Immutable, +755 | where +756 | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `Wrap::<&Src, &Dst>::try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/zerocopy-derive/src/derive/from_bytes.rs b/zerocopy/zerocopy-derive/src/derive/from_bytes.rs index ad8b6233fe..20ebd57965 100644 --- a/zerocopy/zerocopy-derive/src/derive/from_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/from_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use syn::{ parse_quote, Data, DataEnum, DataStruct, DataUnion, Error, Expr, ExprLit, ExprUnary, Lit, UnOp, diff --git a/zerocopy/zerocopy-derive/src/derive/into_bytes.rs b/zerocopy/zerocopy-derive/src/derive/into_bytes.rs index 8c1e1009dd..a1510a4e39 100644 --- a/zerocopy/zerocopy-derive/src/derive/into_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/into_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use quote::quote; use syn::{Data, DataEnum, DataStruct, DataUnion, Error, Type}; diff --git a/zerocopy/zerocopy-derive/src/derive/known_layout.rs b/zerocopy/zerocopy-derive/src/derive/known_layout.rs index fb43002d71..ed4e3f7fe4 100644 --- a/zerocopy/zerocopy-derive/src/derive/known_layout.rs +++ b/zerocopy/zerocopy-derive/src/derive/known_layout.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::TokenStream; use quote::quote; use syn::{parse_quote, Data, Error, Type}; diff --git a/zerocopy/zerocopy-derive/src/derive/mod.rs b/zerocopy/zerocopy-derive/src/derive/mod.rs index 88911b43df..28b56b16a6 100644 --- a/zerocopy/zerocopy-derive/src/derive/mod.rs +++ b/zerocopy/zerocopy-derive/src/derive/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// pub mod from_bytes; pub mod into_bytes; pub mod known_layout; diff --git a/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs b/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs index 15b4d94c83..8a7741f397 100644 --- a/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::TokenStream; use quote::quote; use syn::{ diff --git a/zerocopy/zerocopy-derive/src/derive/unaligned.rs b/zerocopy/zerocopy-derive/src/derive/unaligned.rs index 819d84984a..2890021f8b 100644 --- a/zerocopy/zerocopy-derive/src/derive/unaligned.rs +++ b/zerocopy/zerocopy-derive/src/derive/unaligned.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use syn::{Data, DataEnum, DataStruct, DataUnion, Error}; diff --git a/zerocopy/zerocopy-derive/src/lib.rs b/zerocopy/zerocopy-derive/src/lib.rs index e3b7884c10..a9ac732f8a 100644 --- a/zerocopy/zerocopy-derive/src/lib.rs +++ b/zerocopy/zerocopy-derive/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/src/repr.rs b/zerocopy/zerocopy-derive/src/repr.rs index 57014b38b2..3b1063ce3d 100644 --- a/zerocopy/zerocopy-derive/src/repr.rs +++ b/zerocopy/zerocopy-derive/src/repr.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/src/util.rs b/zerocopy/zerocopy-derive/src/util.rs index 7af578d523..933b7b3e67 100644 --- a/zerocopy/zerocopy-derive/src/util.rs +++ b/zerocopy/zerocopy-derive/src/util.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/tests/ui/enum.nightly.stderr b/zerocopy/zerocopy-derive/tests/ui/enum.nightly.stderr index f36b7b82ec..5acb7052b6 100644 --- a/zerocopy/zerocopy-derive/tests/ui/enum.nightly.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/enum.nightly.stderr @@ -488,7 +488,7 @@ error[E0277]: `IntoBytes1` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -507,7 +507,7 @@ error[E0277]: `IntoBytes2` has 3 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -526,7 +526,7 @@ error[E0277]: `IntoBytes3` has 2 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -558,7 +558,7 @@ error[E0277]: `IntoBytes7` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable diff --git a/zerocopy/zerocopy-derive/tests/ui/enum.stable.stderr b/zerocopy/zerocopy-derive/tests/ui/enum.stable.stderr index 943615aa3c..437b372f7f 100644 --- a/zerocopy/zerocopy-derive/tests/ui/enum.stable.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/enum.stable.stderr @@ -440,9 +440,9 @@ error[E0277]: `IntoBytes1` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -458,9 +458,9 @@ error[E0277]: `IntoBytes2` has 3 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -476,9 +476,9 @@ error[E0277]: `IntoBytes3` has 2 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -507,9 +507,9 @@ error[E0277]: `IntoBytes7` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/zerocopy-derive/tests/ui/struct.msrv.stderr b/zerocopy/zerocopy-derive/tests/ui/struct.msrv.stderr index 2bb24dae57..b76579bcba 100644 --- a/zerocopy/zerocopy-derive/tests/ui/struct.msrv.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/struct.msrv.stderr @@ -57,9 +57,9 @@ error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLay | ^^^^^^^ the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout` | note: required by a bound in `SplitAt` - --> $WORKSPACE/src/split_at.rs:61:27 + --> $WORKSPACE/src/split_at.rs:63:27 | -61 | pub unsafe trait SplitAt: KnownLayout { +63 | pub unsafe trait SplitAt: KnownLayout { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt` = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/zerocopy-derive/tests/ui/struct.nightly.stderr b/zerocopy/zerocopy-derive/tests/ui/struct.nightly.stderr index 54d79388da..3f9a5c7db2 100644 --- a/zerocopy/zerocopy-derive/tests/ui/struct.nightly.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/struct.nightly.stderr @@ -324,7 +324,7 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -343,7 +343,7 @@ error[E0277]: `IntoBytes3` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -365,7 +365,7 @@ note: required because it appears within the type `IntoBytes4` | ^^^^^^^^^^ = note: required for `IntoBytes4` to implement `zerocopy_renamed::util::macro_util::__size_of::Sized` note: required by a bound in `zerocopy_renamed::util::macro_util::__size_of::size_of` - --> src/util/macro_util.rs:306:4 + --> src/util/macro_util.rs:308:4 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `[u8]` is unsized @@ -379,7 +379,7 @@ error[E0277]: `[u8]` is unsized = note: `IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized` = note: required for `[u8]` to implement `zerocopy_renamed::util::macro_util::__size_of::Sized` note: required by a bound in `zerocopy_renamed::util::macro_util::__size_of::size_of` - --> src/util/macro_util.rs:306:4 + --> src/util/macro_util.rs:308:4 error[E0277]: `IntoBytes5` has one or more padding bytes --> $DIR/struct.rs:172:10 @@ -392,7 +392,7 @@ error[E0277]: `IntoBytes5` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> src/util/macro_util.rs:80:0 + --> src/util/macro_util.rs:82:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -411,7 +411,7 @@ error[E0277]: `IntoBytes6` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> src/util/macro_util.rs:80:0 + --> src/util/macro_util.rs:82:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -430,7 +430,7 @@ error[E0277]: `IntoBytes7` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> src/util/macro_util.rs:80:0 + --> src/util/macro_util.rs:82:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -449,7 +449,7 @@ error[E0277]: `IntoBytes13` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> src/util/macro_util.rs:80:0 + --> src/util/macro_util.rs:82:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable @@ -486,7 +486,7 @@ help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtN AtomicI16 and 73 others note: required by a bound in `SplitAt` - --> src/split_at.rs:61:0 + --> src/split_at.rs:63:0 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `u8: SplitAt` is not satisfied @@ -504,7 +504,7 @@ help: the following other types implement trait `SplitAt` ... 334 | #[derive(SplitAt, KnownLayout)] | ^^^^^^^ `SplitAtSized` - --> src/split_at.rs:251:0 + --> src/split_at.rs:253:0 | = note: `[T]` = help: see issue #48214 diff --git a/zerocopy/zerocopy-derive/tests/ui/struct.stable.stderr b/zerocopy/zerocopy-derive/tests/ui/struct.stable.stderr index 996ab8973e..a830879aa3 100644 --- a/zerocopy/zerocopy-derive/tests/ui/struct.stable.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/struct.stable.stderr @@ -291,9 +291,9 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -309,9 +309,9 @@ error[E0277]: `IntoBytes3` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | - 62 | impl PaddingFree for () {} + 64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -330,9 +330,9 @@ note: required because it appears within the type `IntoBytes4` | ^^^^^^^^^^ = note: required for `IntoBytes4` to implement `macro_util::__size_of::Sized` note: required by a bound in `macro_util::__size_of::size_of` - --> $WORKSPACE/src/util/macro_util.rs:306:29 + --> $WORKSPACE/src/util/macro_util.rs:308:29 | -306 | pub const fn size_of() -> usize { +308 | pub const fn size_of() -> usize { | ^^^^^ required by this bound in `size_of` = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -347,9 +347,9 @@ error[E0277]: `[u8]` is unsized = note: `IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized` = note: required for `[u8]` to implement `macro_util::__size_of::Sized` note: required by a bound in `macro_util::__size_of::size_of` - --> $WORKSPACE/src/util/macro_util.rs:306:29 + --> $WORKSPACE/src/util/macro_util.rs:308:29 | -306 | pub const fn size_of() -> usize { +308 | pub const fn size_of() -> usize { | ^^^^^ required by this bound in `size_of` error[E0277]: `IntoBytes5` has one or more padding bytes @@ -363,9 +363,9 @@ error[E0277]: `IntoBytes5` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:80:1 + --> $WORKSPACE/src/util/macro_util.rs:82:1 | - 80 | impl DynamicPaddingFree for () {} + 82 | impl DynamicPaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -381,9 +381,9 @@ error[E0277]: `IntoBytes6` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:80:1 + --> $WORKSPACE/src/util/macro_util.rs:82:1 | - 80 | impl DynamicPaddingFree for () {} + 82 | impl DynamicPaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -399,9 +399,9 @@ error[E0277]: `IntoBytes7` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:80:1 + --> $WORKSPACE/src/util/macro_util.rs:82:1 | - 80 | impl DynamicPaddingFree for () {} + 82 | impl DynamicPaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -417,9 +417,9 @@ error[E0277]: `IntoBytes13` has one or more padding bytes = note: consider using `#[repr(packed)]` to remove padding help: the trait `DynamicPaddingFree` is not implemented for `()` but trait `DynamicPaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:80:1 + --> $WORKSPACE/src/util/macro_util.rs:82:1 | - 80 | impl DynamicPaddingFree for () {} + 82 | impl DynamicPaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -453,9 +453,9 @@ help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtN AtomicI16 and 73 others note: required by a bound in `SplitAt` - --> $WORKSPACE/src/split_at.rs:61:27 + --> $WORKSPACE/src/split_at.rs:63:27 | - 61 | pub unsafe trait SplitAt: KnownLayout { + 63 | pub unsafe trait SplitAt: KnownLayout { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt` = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -475,9 +475,9 @@ help: the following other types implement trait `SplitAt` 334 | #[derive(SplitAt, KnownLayout)] | ^^^^^^^ `SplitAtSized` | - ::: $WORKSPACE/src/split_at.rs:251:1 + ::: $WORKSPACE/src/split_at.rs:253:1 | -251 | unsafe impl SplitAt for [T] { +253 | unsafe impl SplitAt for [T] { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]` = help: see issue #48214 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/zerocopy/zerocopy-derive/tests/ui/union.nightly.stderr b/zerocopy/zerocopy-derive/tests/ui/union.nightly.stderr index c48fb2e221..e094f8d1a2 100644 --- a/zerocopy/zerocopy-derive/tests/ui/union.nightly.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/union.nightly.stderr @@ -98,7 +98,7 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> src/util/macro_util.rs:62:0 + --> src/util/macro_util.rs:64:0 = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable diff --git a/zerocopy/zerocopy-derive/tests/ui/union.stable.stderr b/zerocopy/zerocopy-derive/tests/ui/union.stable.stderr index 1e224a6fe5..139febdc55 100644 --- a/zerocopy/zerocopy-derive/tests/ui/union.stable.stderr +++ b/zerocopy/zerocopy-derive/tests/ui/union.stable.stderr @@ -94,9 +94,9 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding = note: consider using `#[repr(packed)]` to remove padding help: the trait `PaddingFree` is not implemented for `()` but trait `PaddingFree` is implemented for it - --> $WORKSPACE/src/util/macro_util.rs:62:1 + --> $WORKSPACE/src/util/macro_util.rs:64:1 | -62 | impl PaddingFree for () {} +64 | impl PaddingFree for () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)