Skip to content

Commit 52de1e9

Browse files
[ci] Roll pinned nightly toolchain
1 parent 2bfd906 commit 52de1e9

19 files changed

+74
-71
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ zerocopy-panic-in-const-and-vec-try-reserve-1-57-0 = "1.57.0"
6060
[package.metadata.ci]
6161
# The versions of the stable and nightly compiler toolchains to use in CI.
6262
pinned-stable = "1.85.0"
63-
pinned-nightly = "nightly-2024-11-06"
63+
pinned-nightly = "nightly-2025-03-11"
6464

6565
[package.metadata.docs.rs]
6666
all-features = true

tests/ui-nightly/invalid-impls/invalid-impls.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ note: required by a bound in `_::Subtrait`
2121
26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
2222
| --------------------------------------------- in this macro invocation
2323
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
24-
help: consider restricting type parameter `T`
24+
help: consider restricting type parameter `T` with trait `TryFromBytes`
2525
|
2626
26 | impl_or_verify!(T: zerocopy::TryFromBytes => TryFromBytes for Foo<T>);
2727
| ++++++++++++++++++++++++
@@ -49,7 +49,7 @@ note: required by a bound in `_::Subtrait`
4949
27 | impl_or_verify!(T => FromZeros for Foo<T>);
5050
| ------------------------------------------ in this macro invocation
5151
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
52-
help: consider restricting type parameter `T`
52+
help: consider restricting type parameter `T` with trait `FromZeros`
5353
|
5454
27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
5555
| +++++++++++++++++++++
@@ -77,7 +77,7 @@ note: required by a bound in `_::Subtrait`
7777
28 | impl_or_verify!(T => FromBytes for Foo<T>);
7878
| ------------------------------------------ in this macro invocation
7979
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
80-
help: consider restricting type parameter `T`
80+
help: consider restricting type parameter `T` with trait `FromBytes`
8181
|
8282
28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
8383
| +++++++++++++++++++++
@@ -105,7 +105,7 @@ note: required by a bound in `_::Subtrait`
105105
29 | impl_or_verify!(T => IntoBytes for Foo<T>);
106106
| ------------------------------------------ in this macro invocation
107107
= note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
108-
help: consider restricting type parameter `T`
108+
help: consider restricting type parameter `T` with trait `IntoBytes`
109109
|
110110
29 | impl_or_verify!(T: zerocopy::IntoBytes => IntoBytes for Foo<T>);
111111
| +++++++++++++++++++++
@@ -133,7 +133,7 @@ note: required by a bound in `_::Subtrait`
133133
30 | impl_or_verify!(T => Unaligned for Foo<T>);
134134
| ------------------------------------------ in this macro invocation
135135
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
136-
help: consider restricting type parameter `T`
136+
help: consider restricting type parameter `T` with trait `Unaligned`
137137
|
138138
30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
139139
| +++++++++++++++++++++

tests/ui-nightly/transmute-mut-const.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ note: `const` item defined here
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
= note: `#[warn(const_item_mutation)]` on by default
1515

16-
error[E0015]: cannot call non-const fn `transmute_mut::<'_, '_, [u8; 2], [u8; 2]>` in constants
16+
error[E0015]: cannot call non-const function `transmute_mut::<'_, '_, [u8; 2], [u8; 2]>` in constants
1717
--> tests/ui-nightly/transmute-mut-const.rs:20:37
1818
|
1919
20 | const CONST_CONTEXT: &mut [u8; 2] = transmute_mut!(&mut ARRAY_OF_U8S);

tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ help: the return type of this call is `&mut _` due to the type of the argument p
5353
--> tests/ui-nightly/transmute-mut-dst-not-a-reference.rs:17:36
5454
|
5555
17 | const DST_NOT_A_REFERENCE: usize = transmute_mut!(&mut 0u8);
56-
| ^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
56+
| ^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
5757
note: function defined here
5858
--> src/util/macro_util.rs
5959
|

tests/ui-nightly/transmute-mut-dst-unsized.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
4848
|
4949
= help: the trait `Sized` is not implemented for `[u8]`
5050
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
51-
--> $RUST/core/src/intrinsics.rs
51+
--> $RUST/core/src/intrinsics/mod.rs
5252
|
53-
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
53+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst;
5454
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
5555
= 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)
5656

tests/ui-nightly/transmute-mut-src-dst-not-references.stderr

+4-9
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ warning: this function depends on never type fallback being `()`
2020
17 | const SRC_DST_NOT_REFERENCES: &mut usize = transmute_mut!(0usize);
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2222
|
23-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
23+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
24+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
2525
= help: specify the types explicitly
2626
note: in edition 2024, the requirement `!: FromBytes` will fail
2727
--> tests/ui-nightly/transmute-mut-src-dst-not-references.rs:17:44
@@ -30,20 +30,15 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
3030
| ^^^^^^^^^^^^^^^^^^^^^^
3131
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
3232
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
33-
help: use `()` annotations to avoid fallback changes
34-
--> src/macros.rs
35-
|
36-
| let e: &mut () = $e;
37-
| ~~
3833

3934
warning: never type fallback affects this call to an `unsafe` function
4035
--> tests/ui-nightly/transmute-mut-src-dst-not-references.rs:17:44
4136
|
4237
17 | const SRC_DST_NOT_REFERENCES: &mut usize = transmute_mut!(0usize);
4338
| ^^^^^^^^^^^^^^^^^^^^^^
4439
|
45-
= warning: this will change its meaning in a future release!
46-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
40+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
41+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
4742
= help: specify the type explicitly
4843
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
4944
= note: this warning 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)

tests/ui-nightly/transmute-mut-src-dst-unsized.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
145145
|
146146
= help: the trait `Sized` is not implemented for `[u8]`
147147
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
148-
--> $RUST/core/src/intrinsics.rs
148+
--> $RUST/core/src/intrinsics/mod.rs
149149
|
150-
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
150+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst;
151151
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
152152
= 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)
153153

tests/ui-nightly/transmute-mut-src-immutable.stderr

+4-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ warning: this function depends on never type fallback being `()`
1616
15 | fn ref_src_immutable() {
1717
| ^^^^^^^^^^^^^^^^^^^^^^
1818
|
19-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
20-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
19+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
20+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
2121
= help: specify the types explicitly
2222
note: in edition 2024, the requirement `!: FromBytes` will fail
2323
--> tests/ui-nightly/transmute-mut-src-immutable.rs:17:22
@@ -26,20 +26,15 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
2626
| ^^^^^^^^^^^^^^^^^^^^
2727
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
2828
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
29-
help: use `()` annotations to avoid fallback changes
30-
--> src/macros.rs
31-
|
32-
| let e: &mut () = $e;
33-
| ~~
3429

3530
warning: never type fallback affects this call to an `unsafe` function
3631
--> tests/ui-nightly/transmute-mut-src-immutable.rs:17:22
3732
|
3833
17 | let _: &mut u8 = transmute_mut!(&0u8);
3934
| ^^^^^^^^^^^^^^^^^^^^
4035
|
41-
= warning: this will change its meaning in a future release!
42-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
36+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
37+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
4338
= help: specify the type explicitly
4439
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
4540
= note: this warning 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)

tests/ui-nightly/transmute-mut-src-not-a-reference.stderr

+4-9
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ warning: this function depends on never type fallback being `()`
2020
17 | const SRC_NOT_A_REFERENCE: &mut u8 = transmute_mut!(0usize);
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2222
|
23-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
23+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
24+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
2525
= help: specify the types explicitly
2626
note: in edition 2024, the requirement `!: FromBytes` will fail
2727
--> tests/ui-nightly/transmute-mut-src-not-a-reference.rs:17:38
@@ -30,20 +30,15 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
3030
| ^^^^^^^^^^^^^^^^^^^^^^
3131
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
3232
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
33-
help: use `()` annotations to avoid fallback changes
34-
--> src/macros.rs
35-
|
36-
| let e: &mut () = $e;
37-
| ~~
3833

3934
warning: never type fallback affects this call to an `unsafe` function
4035
--> tests/ui-nightly/transmute-mut-src-not-a-reference.rs:17:38
4136
|
4237
17 | const SRC_NOT_A_REFERENCE: &mut u8 = transmute_mut!(0usize);
4338
| ^^^^^^^^^^^^^^^^^^^^^^
4439
|
45-
= warning: this will change its meaning in a future release!
46-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
40+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
41+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
4742
= help: specify the type explicitly
4843
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
4944
= note: this warning 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)

tests/ui-nightly/transmute-ref-dst-mutable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
5353
--> tests/ui-nightly/transmute-ref-dst-mutable.rs:18:22
5454
|
5555
18 | let _: &mut u8 = transmute_ref!(&0u8);
56-
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
56+
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
5757
note: function defined here
5858
--> src/util/macro_util.rs
5959
|

tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
5353
--> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36
5454
|
5555
17 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8);
56-
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
56+
| ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
5757
note: function defined here
5858
--> src/util/macro_util.rs
5959
|

tests/ui-nightly/transmute-ref-dst-unsized.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
4848
|
4949
= help: the trait `Sized` is not implemented for `[u8]`
5050
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
51-
--> $RUST/core/src/intrinsics.rs
51+
--> $RUST/core/src/intrinsics/mod.rs
5252
|
53-
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
53+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst;
5454
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
5555
= 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)
5656

tests/ui-nightly/transmute-ref-src-dst-not-references.stderr

+7-12
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ help: the return type of this call is `&_` due to the type of the argument passe
6969
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39
7070
|
7171
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
72-
| ^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate`
72+
| ^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `must_use`
7373
note: function defined here
7474
--> src/util/macro_util.rs
7575
|
@@ -83,8 +83,8 @@ warning: this function depends on never type fallback being `()`
8383
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
8484
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8585
|
86-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
86+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
87+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
8888
= help: specify the types explicitly
8989
note: in edition 2024, the requirement `!: IntoBytes` will fail
9090
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39
@@ -93,20 +93,15 @@ note: in edition 2024, the requirement `!: IntoBytes` will fail
9393
| ^^^^^^^^^^^^^^^^^^^^^^
9494
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
9595
= note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
96-
help: use `()` annotations to avoid fallback changes
97-
--> src/macros.rs
98-
|
99-
| let e: &() = $e;
100-
| ~~
10196

10297
warning: never type fallback affects this call to an `unsafe` function
10398
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39
10499
|
105100
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
106101
| ^^^^^^^^^^^^^^^^^^^^^^
107102
|
108-
= warning: this will change its meaning in a future release!
109-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
103+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
104+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
110105
= help: specify the type explicitly
111106
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
112107
= note: this warning 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)
@@ -117,7 +112,7 @@ warning: never type fallback affects this call to an `unsafe` function
117112
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
118113
| ^^^^^^^^^^^^^^^^^^^^^^
119114
|
120-
= warning: this will change its meaning in a future release!
121-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
115+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
116+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
122117
= help: specify the type explicitly
123118
= note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui-nightly/transmute-ref-src-dst-unsized.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
145145
|
146146
= help: the trait `Sized` is not implemented for `[u8]`
147147
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
148-
--> $RUST/core/src/intrinsics.rs
148+
--> $RUST/core/src/intrinsics/mod.rs
149149
|
150-
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
150+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst;
151151
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
152152
= 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)
153153

0 commit comments

Comments
 (0)