Skip to content

Commit 9c1b688

Browse files
[ci] Roll pinned stable toolchain
1 parent 1d6fa56 commit 9c1b688

18 files changed

+117
-58
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ zerocopy-diagnostic-on-unimplemented = "1.78.0"
4646

4747
[package.metadata.ci]
4848
# The versions of the stable and nightly compiler toolchains to use in CI.
49-
pinned-stable = "1.83.0"
49+
pinned-stable = "1.84.0"
5050
pinned-nightly = "nightly-2024-11-06"
5151

5252
[package.metadata.docs.rs]

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0277]: the trait bound `T: zerocopy::TryFromBytes` is not satisfied
22
--> tests/ui-stable/invalid-impls/invalid-impls.rs:26:39
33
|
44
26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
5-
| ^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `T`, which is required by `Foo<T>: zerocopy::TryFromBytes`
5+
| ^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `T`
66
|
77
= note: Consider adding `#[derive(TryFromBytes)]` to `T`
88
note: required for `Foo<T>` to implement `zerocopy::TryFromBytes`
@@ -30,7 +30,7 @@ error[E0277]: the trait bound `T: zerocopy::FromZeros` is not satisfied
3030
--> tests/ui-stable/invalid-impls/invalid-impls.rs:27:36
3131
|
3232
27 | impl_or_verify!(T => FromZeros for Foo<T>);
33-
| ^^^^^^ the trait `zerocopy::FromZeros` is not implemented for `T`, which is required by `Foo<T>: zerocopy::FromZeros`
33+
| ^^^^^^ the trait `zerocopy::FromZeros` is not implemented for `T`
3434
|
3535
= note: Consider adding `#[derive(FromZeros)]` to `T`
3636
note: required for `Foo<T>` to implement `zerocopy::FromZeros`
@@ -58,7 +58,7 @@ error[E0277]: the trait bound `T: zerocopy::FromBytes` is not satisfied
5858
--> tests/ui-stable/invalid-impls/invalid-impls.rs:28:36
5959
|
6060
28 | impl_or_verify!(T => FromBytes for Foo<T>);
61-
| ^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`, which is required by `Foo<T>: zerocopy::FromBytes`
61+
| ^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`
6262
|
6363
= note: Consider adding `#[derive(FromBytes)]` to `T`
6464
note: required for `Foo<T>` to implement `zerocopy::FromBytes`
@@ -86,7 +86,7 @@ error[E0277]: the trait bound `T: zerocopy::IntoBytes` is not satisfied
8686
--> tests/ui-stable/invalid-impls/invalid-impls.rs:29:36
8787
|
8888
29 | impl_or_verify!(T => IntoBytes for Foo<T>);
89-
| ^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `T`, which is required by `Foo<T>: zerocopy::IntoBytes`
89+
| ^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `T`
9090
|
9191
= note: Consider adding `#[derive(IntoBytes)]` to `T`
9292
note: required for `Foo<T>` to implement `zerocopy::IntoBytes`
@@ -114,7 +114,7 @@ error[E0277]: the trait bound `T: zerocopy::Unaligned` is not satisfied
114114
--> tests/ui-stable/invalid-impls/invalid-impls.rs:30:36
115115
|
116116
30 | impl_or_verify!(T => Unaligned for Foo<T>);
117-
| ^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`, which is required by `Foo<T>: zerocopy::Unaligned`
117+
| ^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`
118118
|
119119
= note: Consider adding `#[derive(Unaligned)]` to `T`
120120
note: required for `Foo<T>` to implement `zerocopy::Unaligned`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ 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 fn transmute<Src, Dst>(src: Src) -> Dst;
54-
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
53+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
54+
| ^^^ 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

5757
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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!
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!
2424
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
2525
= help: specify the types explicitly
2626
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -30,14 +30,19 @@ 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+
| ~~
3338

3439
warning: never type fallback affects this call to an `unsafe` function
3540
--> tests/ui-stable/transmute-mut-src-dst-not-references.rs:17:44
3641
|
3742
17 | const SRC_DST_NOT_REFERENCES: &mut usize = transmute_mut!(0usize);
3843
| ^^^^^^^^^^^^^^^^^^^^^^
3944
|
40-
= warning: this will change its meaning in a future release!
45+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
4146
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
4247
= help: specify the type explicitly
4348
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ 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 fn transmute<Src, Dst>(src: Src) -> Dst;
151-
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
150+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
151+
| ^^^ 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

154154
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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!
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!
2020
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
2121
= help: specify the types explicitly
2222
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -26,14 +26,19 @@ 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+
| ~~
2934

3035
warning: never type fallback affects this call to an `unsafe` function
3136
--> tests/ui-stable/transmute-mut-src-immutable.rs:17:22
3237
|
3338
17 | let _: &mut u8 = transmute_mut!(&0u8);
3439
| ^^^^^^^^^^^^^^^^^^^^
3540
|
36-
= warning: this will change its meaning in a future release!
41+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
3742
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
3843
= help: specify the type explicitly
3944
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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!
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!
2424
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
2525
= help: specify the types explicitly
2626
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -30,14 +30,19 @@ 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+
| ~~
3338

3439
warning: never type fallback affects this call to an `unsafe` function
3540
--> tests/ui-stable/transmute-mut-src-not-a-reference.rs:17:38
3641
|
3742
17 | const SRC_NOT_A_REFERENCE: &mut u8 = transmute_mut!(0usize);
3843
| ^^^^^^^^^^^^^^^^^^^^^^
3944
|
40-
= warning: this will change its meaning in a future release!
45+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
4146
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
4247
= help: specify the type explicitly
4348
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ 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 fn transmute<Src, Dst>(src: Src) -> Dst;
54-
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
53+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
54+
| ^^^ 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

5757
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ 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!
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!
8787
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
8888
= help: specify the types explicitly
8989
note: in edition 2024, the requirement `!: IntoBytes` will fail
@@ -93,14 +93,19 @@ 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+
| ~~
96101

97102
warning: never type fallback affects this call to an `unsafe` function
98103
--> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:39
99104
|
100105
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
101106
| ^^^^^^^^^^^^^^^^^^^^^^
102107
|
103-
= warning: this will change its meaning in a future release!
108+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
104109
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
105110
= help: specify the type explicitly
106111
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
@@ -112,7 +117,7 @@ warning: never type fallback affects this call to an `unsafe` function
112117
17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
113118
| ^^^^^^^^^^^^^^^^^^^^^^
114119
|
115-
= warning: this will change its meaning in a future release!
120+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
116121
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
117122
= help: specify the type explicitly
118123
= note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ 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 fn transmute<Src, Dst>(src: Src) -> Dst;
151-
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
150+
| pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
151+
| ^^^ 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

154154
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time

tests/ui-stable/transmute-ref-src-not-a-reference.stderr

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ warning: this function depends on never type fallback being `()`
2020
17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(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!
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!
2424
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
2525
= help: specify the types explicitly
2626
note: in edition 2024, the requirement `!: IntoBytes` will fail
@@ -30,14 +30,19 @@ note: in edition 2024, the requirement `!: IntoBytes` will fail
3030
| ^^^^^^^^^^^^^^^^^^^^^^
3131
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
3232
= note: this warning originates in the macro `transmute_ref` (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: &() = $e;
37+
| ~~
3338

3439
warning: never type fallback affects this call to an `unsafe` function
3540
--> tests/ui-stable/transmute-ref-src-not-a-reference.rs:17:34
3641
|
3742
17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize);
3843
| ^^^^^^^^^^^^^^^^^^^^^^
3944
|
40-
= warning: this will change its meaning in a future release!
45+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
4146
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
4247
= help: specify the type explicitly
4348
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
@@ -49,7 +54,7 @@ warning: never type fallback affects this call to an `unsafe` function
4954
17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize);
5055
| ^^^^^^^^^^^^^^^^^^^^^^
5156
|
52-
= warning: this will change its meaning in a future release!
57+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
5358
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
5459
= help: specify the type explicitly
5560
= note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)