diff --git a/Cargo.toml b/Cargo.toml index 59541bc27c..886c27d59a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,7 +85,7 @@ no-zerocopy-panic-in-const-and-vec-try-reserve-1-57-0 = "1.57.0" [package.metadata.ci] # The versions of the stable and nightly compiler toolchains to use in CI. pinned-stable = "1.93.0" -pinned-nightly = "nightly-2026-01-25" +pinned-nightly = "nightly-2026-02-25" [package.metadata.docs.rs] all-features = true diff --git a/zerocopy-derive/tests/ui/derive_transparent.nightly.stderr b/zerocopy-derive/tests/ui/derive_transparent.nightly.stderr index 05f89fbd52..107e41b5ce 100644 --- a/zerocopy-derive/tests/ui/derive_transparent.nightly.stderr +++ b/zerocopy-derive/tests/ui/derive_transparent.nightly.stderr @@ -24,7 +24,8 @@ note: required for `TransparentStruct` to implement `zerocopy_renam --> $DIR/derive_transparent.rs:24:21 | 24 | #[derive(IntoBytes, FromBytes, Unaligned)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::TryFromBytes` + = help: consider manually implementing `zerocopy_renamed::TryFromBytes` to avoid undesired bounds note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` --> $DIR/../include.rs:74:17 | @@ -63,7 +64,8 @@ note: required for `TransparentStruct` to implement `FromZeros` --> $DIR/derive_transparent.rs:24:21 | 24 | #[derive(IntoBytes, FromBytes, Unaligned)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `FromZeros` + = help: consider manually implementing `FromZeros` to avoid undesired bounds note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` --> $DIR/../include.rs:74:17 | @@ -102,7 +104,8 @@ note: required for `TransparentStruct` to implement `zerocopy_renam --> $DIR/derive_transparent.rs:24:21 | 24 | #[derive(IntoBytes, FromBytes, Unaligned)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::FromBytes` + = help: consider manually implementing `zerocopy_renamed::FromBytes` to avoid undesired bounds note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` --> $DIR/../include.rs:74:17 | @@ -141,7 +144,8 @@ note: required for `TransparentStruct` to implement `zerocopy_renam --> $DIR/derive_transparent.rs:24:10 | 24 | #[derive(IntoBytes, FromBytes, Unaligned)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::IntoBytes` + = help: consider manually implementing `zerocopy_renamed::IntoBytes` to avoid undesired bounds note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` --> $DIR/../include.rs:74:17 | @@ -180,7 +184,8 @@ note: required for `TransparentStruct` to implement `zerocopy_renam --> $DIR/derive_transparent.rs:24:32 | 24 | #[derive(IntoBytes, FromBytes, Unaligned)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::Unaligned` + = help: consider manually implementing `zerocopy_renamed::Unaligned` to avoid undesired bounds note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` --> $DIR/../include.rs:74:17 | diff --git a/zerocopy-derive/tests/ui/enum.nightly.stderr b/zerocopy-derive/tests/ui/enum.nightly.stderr index bf52faadae..551dfdb620 100644 --- a/zerocopy-derive/tests/ui/enum.nightly.stderr +++ b/zerocopy-derive/tests/ui/enum.nightly.stderr @@ -568,7 +568,8 @@ note: required for `FooU8` to implement `FromBytes` --> $DIR/enum.rs:247:10 | 247 | #[derive(FromBytes)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `FromBytes` + = help: consider manually implementing `FromBytes` to avoid undesired bounds note: required by a bound in `assert_is_from_bytes` --> $DIR/enum.rs:247:10 | diff --git a/zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr b/zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr index b162cead26..835ce6010b 100644 --- a/zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr +++ b/zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr @@ -322,7 +322,8 @@ note: required for `FromBytes1` to implement `zerocopy_renamed::FromBytes` --> $DIR/late_compile_pass.rs:54:10 | 54 | #[derive(FromBytes)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::FromBytes` + = help: consider manually implementing `zerocopy_renamed::FromBytes` to avoid undesired bounds note: required by a bound in `_::_::::is_bit_valid::assert_is_from_bytes` --> $DIR/late_compile_pass.rs:54:10 | diff --git a/zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr b/zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr index 05d4f5f36f..a20c3db1d2 100644 --- a/zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr +++ b/zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr @@ -12,7 +12,8 @@ note: required for `KL13` to implement `KnownLayout` --> $DIR/mid_compile_pass.rs:62:10 | 62 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^^^ type parameter would need to implement `KnownLayout` + = help: consider manually implementing `KnownLayout` to avoid undesired bounds = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider restricting type parameter `T` with trait `KnownLayout` | @@ -38,7 +39,8 @@ note: required for `KL04` to implement `KnownLayout` --> $DIR/mid_compile_pass.rs:27:10 | 27 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^^^ type parameter would need to implement `KnownLayout` + = help: consider manually implementing `KnownLayout` to avoid undesired bounds note: required by a bound in `assert_kl` --> $DIR/mid_compile_pass.rs:23:26 | @@ -70,7 +72,8 @@ note: required for `KL06` to implement `KnownLayout` --> $DIR/mid_compile_pass.rs:38:10 | 38 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^^^ type parameter would need to implement `KnownLayout` + = help: consider manually implementing `KnownLayout` to avoid undesired bounds note: required by a bound in `assert_kl` --> $DIR/mid_compile_pass.rs:23:26 | @@ -95,7 +98,8 @@ note: required for `KL12` to implement `KnownLayout` --> $DIR/mid_compile_pass.rs:49:10 | 49 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^^^ type parameter would need to implement `KnownLayout` + = help: consider manually implementing `KnownLayout` to avoid undesired bounds note: required by a bound in `assert_kl` --> $DIR/mid_compile_pass.rs:23:26 | diff --git a/zerocopy-derive/tests/ui/msrv_specific.nightly.stderr b/zerocopy-derive/tests/ui/msrv_specific.nightly.stderr index 8aadce7ddc..b0a8817e8f 100644 --- a/zerocopy-derive/tests/ui/msrv_specific.nightly.stderr +++ b/zerocopy-derive/tests/ui/msrv_specific.nightly.stderr @@ -32,7 +32,8 @@ note: required for `IntoBytes1` to implement `zerocopy_renamed::IntoBytes` --> $DIR/msrv_specific.rs:25:10 | 25 | #[derive(IntoBytes)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::IntoBytes` + = help: consider manually implementing `zerocopy_renamed::IntoBytes` to avoid undesired bounds note: required by a bound in `is_into_bytes_1` --> $DIR/msrv_specific.rs:35:23 | diff --git a/zerocopy-derive/tests/ui/struct.nightly.stderr b/zerocopy-derive/tests/ui/struct.nightly.stderr index 7f633ff5e3..dcb4f1b8e3 100644 --- a/zerocopy-derive/tests/ui/struct.nightly.stderr +++ b/zerocopy-derive/tests/ui/struct.nightly.stderr @@ -521,7 +521,8 @@ note: required for `IntoBytes11` to implement `zerocopy_renamed::IntoBytes --> $DIR/struct.rs:232:10 | 232 | #[derive(IntoBytes)] - | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro + | ^^^^^^^^^ type parameter would need to implement `zerocopy_renamed::IntoBytes` + = help: consider manually implementing `zerocopy_renamed::IntoBytes` to avoid undesired bounds note: required by a bound in `is_into_bytes_11` --> $DIR/struct.rs:242:24 |