diff --git a/Cargo.toml b/Cargo.toml index c3110869ee..295fe6d50d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ 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.82.0" -pinned-nightly = "nightly-2024-11-02" +pinned-nightly = "nightly-2024-11-03" [package.metadata.docs.rs] all-features = true diff --git a/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr b/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr index bdd3f423ef..b66985f93e 100644 --- a/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +++ b/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr @@ -30,6 +30,11 @@ note: in edition 2024, the requirement `!: FromBytes` will fail | ^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default = note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) +help: use `()` annotations to avoid fallback changes + --> src/macros.rs + | + | let e: &mut () = $e; + | ~~ warning: never type fallback affects this call to an `unsafe` function --> tests/ui-nightly/transmute-mut-src-dst-not-references.rs:17:44 diff --git a/tests/ui-nightly/transmute-mut-src-immutable.stderr b/tests/ui-nightly/transmute-mut-src-immutable.stderr index abaac99588..7f60c95c0e 100644 --- a/tests/ui-nightly/transmute-mut-src-immutable.stderr +++ b/tests/ui-nightly/transmute-mut-src-immutable.stderr @@ -26,6 +26,11 @@ note: in edition 2024, the requirement `!: FromBytes` will fail | ^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default = note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) +help: use `()` annotations to avoid fallback changes + --> src/macros.rs + | + | let e: &mut () = $e; + | ~~ warning: never type fallback affects this call to an `unsafe` function --> tests/ui-nightly/transmute-mut-src-immutable.rs:17:22 diff --git a/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr b/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr index 8fc4476d1e..491983e408 100644 --- a/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +++ b/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr @@ -30,6 +30,11 @@ note: in edition 2024, the requirement `!: FromBytes` will fail | ^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default = note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) +help: use `()` annotations to avoid fallback changes + --> src/macros.rs + | + | let e: &mut () = $e; + | ~~ warning: never type fallback affects this call to an `unsafe` function --> tests/ui-nightly/transmute-mut-src-not-a-reference.rs:17:38 diff --git a/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr b/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr index 18ecbbdd74..adb3a17d39 100644 --- a/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +++ b/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr @@ -93,6 +93,11 @@ note: in edition 2024, the requirement `!: IntoBytes` will fail | ^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default = note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) +help: use `()` annotations to avoid fallback changes + --> src/macros.rs + | + | let e: &() = $e; + | ~~ warning: never type fallback affects this call to an `unsafe` function --> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39 diff --git a/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr b/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr index 3a55b4c612..866f695ee4 100644 --- a/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +++ b/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr @@ -30,6 +30,11 @@ note: in edition 2024, the requirement `!: IntoBytes` will fail | ^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default = note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) +help: use `()` annotations to avoid fallback changes + --> src/macros.rs + | + | let e: &() = $e; + | ~~ warning: never type fallback affects this call to an `unsafe` function --> tests/ui-nightly/transmute-ref-src-not-a-reference.rs:17:34 diff --git a/zerocopy-derive/tests/ui-nightly/enum.stderr b/zerocopy-derive/tests/ui-nightly/enum.stderr index e01edaeb19..a60591a05a 100644 --- a/zerocopy-derive/tests/ui-nightly/enum.stderr +++ b/zerocopy-derive/tests/ui-nightly/enum.stderr @@ -448,11 +448,11 @@ error[E0277]: `IntoBytes1` has inter-field padding 538 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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 @@ -466,11 +466,11 @@ error[E0277]: `IntoBytes2` has inter-field padding 549 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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 @@ -484,11 +484,11 @@ error[E0277]: `IntoBytes3` has inter-field padding 555 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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-derive/tests/ui-nightly/mid_compile_pass.stderr b/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr index 59829be7ec..c80f1beee7 100644 --- a/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr +++ b/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr @@ -3,6 +3,8 @@ error[E0277]: the trait bound `T: KnownLayout` is not satisfied | 59 | fn test_kl13(t: T) -> impl KnownLayout { | ^^^^^^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `T` +60 | KL13(0u8, t) + | ------------ return type was inferred to be `KL13` here | = note: Consider adding `#[derive(KnownLayout)]` to `T` note: required for `KL13` to implement `KnownLayout` diff --git a/zerocopy-derive/tests/ui-nightly/struct.stderr b/zerocopy-derive/tests/ui-nightly/struct.stderr index a776cec826..200a12683b 100644 --- a/zerocopy-derive/tests/ui-nightly/struct.stderr +++ b/zerocopy-derive/tests/ui-nightly/struct.stderr @@ -302,11 +302,11 @@ error[E0277]: `IntoBytes2` has inter-field padding 107 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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 @@ -320,11 +320,11 @@ error[E0277]: `IntoBytes3` has inter-field padding 114 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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-derive/tests/ui-nightly/union.stderr b/zerocopy-derive/tests/ui-nightly/union.stderr index 4a6210e7b1..a88c311b73 100644 --- a/zerocopy-derive/tests/ui-nightly/union.stderr +++ b/zerocopy-derive/tests/ui-nightly/union.stderr @@ -93,11 +93,11 @@ error[E0277]: `IntoBytes2` has inter-field padding 39 | #[derive(IntoBytes)] | ^^^^^^^^^ types with padding cannot implement `IntoBytes` | - = help: the trait `PaddingFree` is not implemented for `()` = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields = note: consider adding explicit fields where padding would be = note: consider using `#[repr(packed)]` to remove inter-field padding - = help: the trait `PaddingFree` is implemented for `()` + = help: the trait `PaddingFree` is not implemented for `()` + but trait `PaddingFree` is implemented for it = 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