Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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.86.0"
pinned-stable = "1.87.0"
pinned-nightly = "nightly-2025-05-14"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-mut-dst-not-a-reference.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ help: the return type of this call is `&mut _` due to the type of the argument p
--> tests/ui-stable/transmute-mut-dst-not-a-reference.rs:17:36
|
17 | const DST_NOT_A_REFERENCE: usize = transmute_mut!(&mut 0u8);
| ^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
| ^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
note: function defined here
--> src/util/macro_util.rs
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-mut-dst-unsized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
--> $RUST/core/src/intrinsics/mod.rs
|
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
| pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst;
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-mut-src-dst-unsized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
--> $RUST/core/src/intrinsics/mod.rs
|
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
| pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst;
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-ref-dst-mutable.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
--> tests/ui-stable/transmute-ref-dst-mutable.rs:18:22
|
18 | let _: &mut u8 = transmute_ref!(&0u8);
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
note: function defined here
--> src/util/macro_util.rs
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-ref-dst-not-a-reference.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
--> tests/ui-stable/transmute-ref-dst-not-a-reference.rs:17:36
|
17 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8);
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
note: function defined here
--> src/util/macro_util.rs
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-ref-dst-unsized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
--> $RUST/core/src/intrinsics/mod.rs
|
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
| pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst;
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
--> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:39
|
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
| ^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
| ^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
note: function defined here
--> src/util/macro_util.rs
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-stable/transmute-ref-src-dst-unsized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
--> $RUST/core/src/intrinsics/mod.rs
|
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
| pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst;
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
4 changes: 2 additions & 2 deletions zerocopy-derive/tests/ui-stable/enum.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ error: generic parameters may not be used in const operations
= note: type parameters may not be used in const expressions

error[E0565]: meta item in `repr` must be an identifier
--> tests/ui-stable/enum.rs:19:8
--> tests/ui-stable/enum.rs:19:1
|
19 | #[repr("foo")]
| ^^^^^
| ^^^^^^^^^^^^^^

error[E0552]: unrecognized representation hint
--> tests/ui-stable/enum.rs:25:8
Expand Down
Loading