Skip to content

Commit e5717c3

Browse files
[ci] Roll pinned nightly toolchain (#2510)
gherrit-pr-id: I55ffe5c1e2e07b2c3b16d4ac652a2cb5a6f4970f
1 parent 146e382 commit e5717c3

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
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.86.0"
63-
pinned-nightly = "nightly-2025-04-23"
63+
pinned-nightly = "nightly-2025-04-24"
6464

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

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -5156,6 +5156,7 @@ pub unsafe trait IntoBytes {
51565156
/// ```
51575157
#[must_use = "callers should check the return value to see if the operation succeeded"]
51585158
#[inline]
5159+
#[allow(clippy::mut_from_ref)] // False positive: `&self -> &mut [u8]`
51595160
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
51605161
where
51615162
Self: Immutable,
@@ -5222,6 +5223,7 @@ pub unsafe trait IntoBytes {
52225223
/// ```
52235224
#[must_use = "callers should check the return value to see if the operation succeeded"]
52245225
#[inline]
5226+
#[allow(clippy::mut_from_ref)] // False positive: `&self -> &mut [u8]`
52255227
fn write_to_prefix(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
52265228
where
52275229
Self: Immutable,
@@ -5297,6 +5299,7 @@ pub unsafe trait IntoBytes {
52975299
/// ```
52985300
#[must_use = "callers should check the return value to see if the operation succeeded"]
52995301
#[inline]
5302+
#[allow(clippy::mut_from_ref)] // False positive: `&self -> &mut [u8]`
53005303
fn write_to_suffix(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
53015304
where
53025305
Self: Immutable,

testutil/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// This file may not be copied, modified, or distributed except according to
77
// those terms.
88

9+
// Inlining format args isn't supported on our MSRV.
10+
#![allow(clippy::uninlined_format_args)]
11+
912
use rustc_version::{Channel, Version};
1013
use std::{env, error::Error, fs};
1114

zerocopy-derive/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#![allow(unknown_lints)]
1818
#![deny(renamed_and_removed_lints)]
1919
#![deny(clippy::all, clippy::missing_safety_doc, clippy::undocumented_unsafe_blocks)]
20+
// Inlining format args isn't supported on our MSRV.
21+
#![allow(clippy::uninlined_format_args)]
2022
#![deny(
2123
rustdoc::bare_urls,
2224
rustdoc::broken_intra_doc_links,

zerocopy-derive/tests/trybuild.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// This file may not be copied, modified, or distributed except according to
77
// those terms.
88

9+
#![allow(clippy::uninlined_format_args)]
10+
911
use std::env;
1012
use testutil::set_rustflags_w_warnings;
1113

0 commit comments

Comments
 (0)