From 3767ccaa4b0f59c3516780094d0c4aaddd02a343 Mon Sep 17 00:00:00 2001 From: Google PR Creation Bot <145818923+google-pr-creation-bot@users.noreply.github.com> Date: Thu, 30 May 2024 11:39:49 -0700 Subject: [PATCH] [ci] Roll pinned nightly toolchain (#1338) --- Cargo.toml | 2 +- ...ransmute-mut-src-dst-not-references.stderr | 12 ++++++++++ .../transmute-mut-src-immutable.stderr | 12 ++++++++++ .../transmute-mut-src-not-a-reference.stderr | 12 ++++++++++ ...ransmute-ref-src-dst-not-references.stderr | 23 +++++++++++++++++++ .../transmute-ref-src-not-a-reference.stderr | 23 +++++++++++++++++++ 6 files changed, 83 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index addbaeb28b..050b8c014f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ zerocopy-panic-in-const = "1.57.0" [package.metadata.ci] # The versions of the stable and nightly compiler toolchains to use in CI. pinned-stable = "1.78.0" -pinned-nightly = "nightly-2024-05-20" +pinned-nightly = "nightly-2024-05-21" [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 df3cf2dba0..1159d53101 100644 --- a/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +++ b/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr @@ -13,3 +13,15 @@ help: consider mutably borrowing here | 17 | const SRC_DST_NOT_REFERENCES: &mut usize = transmute_mut!(&mut 0usize); | ++++ + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-mut-src-dst-not-references.rs:17:44 + | +17 | const SRC_DST_NOT_REFERENCES: &mut usize = transmute_mut!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default + = 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) diff --git a/tests/ui-nightly/transmute-mut-src-immutable.stderr b/tests/ui-nightly/transmute-mut-src-immutable.stderr index 7b7969d5d5..3d18c442f2 100644 --- a/tests/ui-nightly/transmute-mut-src-immutable.stderr +++ b/tests/ui-nightly/transmute-mut-src-immutable.stderr @@ -9,3 +9,15 @@ error[E0308]: mismatched types | = note: expected mutable reference `&mut _` found reference `&u8` + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-mut-src-immutable.rs:17:22 + | +17 | let _: &mut u8 = transmute_mut!(&0u8); + | ^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default + = 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) 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 12b7674f0e..34c5c18232 100644 --- a/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +++ b/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr @@ -13,3 +13,15 @@ help: consider mutably borrowing here | 17 | const SRC_NOT_A_REFERENCE: &mut u8 = transmute_mut!(&mut 0usize); | ++++ + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-mut-src-not-a-reference.rs:17:38 + | +17 | const SRC_NOT_A_REFERENCE: &mut u8 = transmute_mut!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default + = 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) 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 bd02f80a27..408e9b6a49 100644 --- a/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +++ b/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr @@ -76,3 +76,26 @@ note: function defined here | pub const fn must_use(t: T) -> T { | ^^^^^^^^ = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39 + | +17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default + = 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) + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:17:39 + | +17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 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 be477c6c5e..301b5d0944 100644 --- a/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +++ b/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr @@ -13,3 +13,26 @@ help: consider borrowing here | 17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(&0usize); | + + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-ref-src-not-a-reference.rs:17:34 + | +17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default + = 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) + +warning: never type fallback affects this call to an `unsafe` function + --> tests/ui-nightly/transmute-ref-src-not-a-reference.rs:17:34 + | +17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize); + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this will change its meaning in a future release! + = note: for more information, see issue #123748 + = help: specify the type explicitly + = note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)