From 28efaa2426db1b0e8ea2eed03d35e6c322f02451 Mon Sep 17 00:00:00 2001 From: "hash-worker[bot]" <180894564+hash-worker[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 11:32:41 +0000 Subject: [PATCH 1/2] Update Rust toolchains to nightly-2026-04-27 --- libs/error-stack/README.md | 2 +- libs/error-stack/macros/README.md | 2 +- libs/error-stack/src/lib.rs | 2 +- rust-toolchain.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/error-stack/README.md b/libs/error-stack/README.md index 792d0929392..d01484f4486 100644 --- a/libs/error-stack/README.md +++ b/libs/error-stack/README.md @@ -7,7 +7,7 @@ [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io] [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs] -[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-13&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-27&color=blue)][rust-version] [![documentation](https://img.shields.io/docsrs/error-stack)][documentation] [![license](https://img.shields.io/crates/l/error-stack)][license] diff --git a/libs/error-stack/macros/README.md b/libs/error-stack/macros/README.md index 9e17292be2c..2a7c6c19c15 100644 --- a/libs/error-stack/macros/README.md +++ b/libs/error-stack/macros/README.md @@ -6,7 +6,7 @@ [![crates.io](https://img.shields.io/crates/v/error-stack-macros)][crates.io] [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack--macros-orange)][libs.rs] -[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-13&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-27&color=blue)][rust-version] [![documentation](https://img.shields.io/docsrs/error-stack-macros)][documentation] [![license](https://img.shields.io/crates/l/error-stack)][license] diff --git a/libs/error-stack/src/lib.rs b/libs/error-stack/src/lib.rs index 0e986da6b6f..ba8924fb652 100644 --- a/libs/error-stack/src/lib.rs +++ b/libs/error-stack/src/lib.rs @@ -2,7 +2,7 @@ //! //! [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io] //! [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs] -//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-13&color=blue)][rust-version] +//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-04-27&color=blue)][rust-version] //! //! [crates.io]: https://crates.io/crates/error-stack //! [libs.rs]: https://lib.rs/crates/error-stack diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 6922a152ffe..eb08a94017a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2026-04-13" +channel = "nightly-2026-04-27" components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src', 'rust-analyzer', 'rustc-codegen-cranelift-preview'] From 2f0d2b8f40bcd3ac66adc1f6776b0b9456c07341 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 12:17:58 +0000 Subject: [PATCH 2/2] Fix clippy linting issues in nightly-2026-04-27 Agent-Logs-Url: https://github.com/hashintel/hash/sessions/ef84b90d-bb07-4ff6-a47f-52ffd18f8e37 Co-authored-by: TimDiekmann <21277928+TimDiekmann@users.noreply.github.com> --- libs/@local/harpc/net/src/session/server/test.rs | 3 ++- libs/@local/hashql/diagnostics/src/diagnostic/label.rs | 2 +- libs/@local/hashql/mir/src/body/terminator/switch_int.rs | 6 +++--- libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libs/@local/harpc/net/src/session/server/test.rs b/libs/@local/harpc/net/src/session/server/test.rs index 274d91e0140..f36c5f322ea 100644 --- a/libs/@local/harpc/net/src/session/server/test.rs +++ b/libs/@local/harpc/net/src/session/server/test.rs @@ -1,10 +1,11 @@ #![expect(clippy::significant_drop_tightening, reason = "test code")] use alloc::sync::Arc; use core::{ + io::ErrorKind, sync::atomic::{AtomicUsize, Ordering}, time::Duration, }; -use std::io::{self, ErrorKind}; +use std::io; use bytes::{Bytes, BytesMut}; use error_stack::{Report, ResultExt as _}; diff --git a/libs/@local/hashql/diagnostics/src/diagnostic/label.rs b/libs/@local/hashql/diagnostics/src/diagnostic/label.rs index 5785c5d6bfd..f9621b916f5 100644 --- a/libs/@local/hashql/diagnostics/src/diagnostic/label.rs +++ b/libs/@local/hashql/diagnostics/src/diagnostic/label.rs @@ -298,7 +298,7 @@ impl Labels { } #[cfg(feature = "render")] - pub(crate) fn as_slice(&self) -> &[Label] { + pub(crate) const fn as_slice(&self) -> &[Label] { &self.labels } diff --git a/libs/@local/hashql/mir/src/body/terminator/switch_int.rs b/libs/@local/hashql/mir/src/body/terminator/switch_int.rs index 9bf2a029e37..5a26a7d5719 100644 --- a/libs/@local/hashql/mir/src/body/terminator/switch_int.rs +++ b/libs/@local/hashql/mir/src/body/terminator/switch_int.rs @@ -380,7 +380,7 @@ impl<'heap> SwitchTargets<'heap> { /// The slice contains all targets in the same order as the values, with the /// otherwise target (if any) as the last element. #[must_use] - pub fn targets(&self) -> &[Target<'heap>] { + pub const fn targets(&self) -> &[Target<'heap>] { &self.targets } @@ -388,7 +388,7 @@ impl<'heap> SwitchTargets<'heap> { /// /// The slice contains all targets in the same order as the values, with the /// otherwise target (if any) as the last element. - pub fn targets_mut(&mut self) -> &mut [Target<'heap>] { + pub const fn targets_mut(&mut self) -> &mut [Target<'heap>] { &mut self.targets } @@ -396,7 +396,7 @@ impl<'heap> SwitchTargets<'heap> { /// /// The values are guaranteed to be sorted in ascending order and to be unique. #[must_use] - pub fn values(&self) -> &[u128] { + pub const fn values(&self) -> &[u128] { &self.values } diff --git a/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs b/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs index 17f092ac7f7..02a96681ace 100644 --- a/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs +++ b/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs @@ -335,7 +335,7 @@ async fn read_package_json(path: &Utf8Path) -> Result serde_json::from_str(&contents) .change_context_lazy(|| SyncTurborepoError::ParseFile(path.to_owned())), - Err(err) if err.kind() == std::io::ErrorKind::NotFound => { + Err(err) if err.kind() == core::io::ErrorKind::NotFound => { tracing::info!("package.json does not exist at {path}, creating new one"); Ok(PackageJson::default()) } @@ -461,7 +461,7 @@ async fn write_package_json_if_changed( return Ok(()); } Ok(_) => {} - Err(err) if err.kind() == std::io::ErrorKind::NotFound => {} + Err(err) if err.kind() == core::io::ErrorKind::NotFound => {} Err(err) => { tracing::warn!("Failed to read {path} for change detection, overwriting: {err}"); }