diff --git a/libs/@blockprotocol/type-system/rust/src/knowledge/entity/mod.rs b/libs/@blockprotocol/type-system/rust/src/knowledge/entity/mod.rs index 0852a969a6f..5acf6555f3a 100644 --- a/libs/@blockprotocol/type-system/rust/src/knowledge/entity/mod.rs +++ b/libs/@blockprotocol/type-system/rust/src/knowledge/entity/mod.rs @@ -211,11 +211,11 @@ mod tests { .enumerate() .find(|(_, diff)| **diff == expected) .unwrap_or_else(|| { - panic!("unexpected diff found: {expected:#?}\n\nactual: {diff:#?}",) + panic!("unexpected diff found: {expected:#?}\n\nactual: {diff:#?}") }); diff.remove(idx); } - assert!(diff.is_empty(), "missing diffs: {diff:#?}",); + assert!(diff.is_empty(), "missing diffs: {diff:#?}"); } fn create_base_url(property: usize) -> BaseUrl { diff --git a/libs/@local/codegen/src/typescript.rs b/libs/@local/codegen/src/typescript.rs index 6cf856edd83..b3a15ebdf43 100644 --- a/libs/@local/codegen/src/typescript.rs +++ b/libs/@local/codegen/src/typescript.rs @@ -341,7 +341,7 @@ impl<'a, 'c> TypeScriptGenerator<'a, 'c> { | Type::NonEmptyList(_) | Type::Map(_) | Type::Nullable(_)) => { - unimplemented!("Tried to generate an interface from unsupported type: {ty:?}",) + unimplemented!("Tried to generate an interface from unsupported type: {ty:?}") } }; diff --git a/libs/@local/graph/api/src/lib.rs b/libs/@local/graph/api/src/lib.rs index c02e115f8e0..2aa2d4e276e 100644 --- a/libs/@local/graph/api/src/lib.rs +++ b/libs/@local/graph/api/src/lib.rs @@ -8,7 +8,6 @@ return_type_notation, // Library Features - assert_matches, error_generic_member_access, )] diff --git a/libs/@local/graph/authorization/tests/policies/main.rs b/libs/@local/graph/authorization/tests/policies/main.rs index 68c86e07689..7e8b2d620c9 100644 --- a/libs/@local/graph/authorization/tests/policies/main.rs +++ b/libs/@local/graph/authorization/tests/policies/main.rs @@ -1,8 +1,3 @@ -#![feature( - // Library Features - assert_matches, -)] - extern crate alloc; mod definitions; diff --git a/libs/@local/graph/postgres-store/tests/principals/main.rs b/libs/@local/graph/postgres-store/tests/principals/main.rs index 08ed79df5c3..d1f9785dfd3 100644 --- a/libs/@local/graph/postgres-store/tests/principals/main.rs +++ b/libs/@local/graph/postgres-store/tests/principals/main.rs @@ -1,7 +1,3 @@ -#![feature( - // Library Features - assert_matches, -)] #![expect(clippy::panic_in_result_fn)] extern crate alloc; diff --git a/libs/@local/harpc/net/src/lib.rs b/libs/@local/harpc/net/src/lib.rs index cdc245945f8..c6de7797db1 100644 --- a/libs/@local/harpc/net/src/lib.rs +++ b/libs/@local/harpc/net/src/lib.rs @@ -13,7 +13,7 @@ // Library Features error_generic_member_access, )] -#![cfg_attr(test, feature(assert_matches, async_fn_track_caller))] +#![cfg_attr(test, feature(async_fn_track_caller))] extern crate alloc; diff --git a/libs/@local/harpc/tower/src/lib.rs b/libs/@local/harpc/tower/src/lib.rs index 95d2a791cf1..2c7ca0dc3ee 100644 --- a/libs/@local/harpc/tower/src/lib.rs +++ b/libs/@local/harpc/tower/src/lib.rs @@ -10,7 +10,7 @@ // Library Features error_generic_member_access, )] -#![cfg_attr(test, feature(assert_matches, macro_metavar_expr))] +#![cfg_attr(test, feature(macro_metavar_expr))] extern crate alloc; diff --git a/libs/@local/harpc/types/src/subsystem.rs b/libs/@local/harpc/types/src/subsystem.rs index 9dfce2ab9fa..a0051c36151 100644 --- a/libs/@local/harpc/types/src/subsystem.rs +++ b/libs/@local/harpc/types/src/subsystem.rs @@ -45,6 +45,6 @@ impl Display for SubsystemDescriptor { fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { let &Self { id, version } = self; - write!(fmt, "{id}@{version}",) + write!(fmt, "{id}@{version}") } } diff --git a/libs/@local/hashql/ast/src/lib.rs b/libs/@local/hashql/ast/src/lib.rs index b8c819640fd..74ff63dc56e 100644 --- a/libs/@local/hashql/ast/src/lib.rs +++ b/libs/@local/hashql/ast/src/lib.rs @@ -49,7 +49,6 @@ #![feature( // Language Features coverage_attribute, - if_let_guard, macro_metavar_expr_concat, // Library Features @@ -57,7 +56,6 @@ formatting_options, iter_intersperse, )] -#![cfg_attr(test, feature(assert_matches))] extern crate alloc; diff --git a/libs/@local/hashql/compiletest/src/lib.rs b/libs/@local/hashql/compiletest/src/lib.rs index 3aadcb739e6..8cf5d8c3ac0 100644 --- a/libs/@local/hashql/compiletest/src/lib.rs +++ b/libs/@local/hashql/compiletest/src/lib.rs @@ -4,10 +4,8 @@ #![feature( // Language Features coverage_attribute, - if_let_guard, // Library Features - assert_matches, duration_millis_float, exitcode_exit_method, file_buffered, diff --git a/libs/@local/hashql/core/src/lib.rs b/libs/@local/hashql/core/src/lib.rs index fb761339d0c..3f4c43b3f15 100644 --- a/libs/@local/hashql/core/src/lib.rs +++ b/libs/@local/hashql/core/src/lib.rs @@ -9,7 +9,6 @@ arbitrary_self_types, associated_type_defaults, coverage_attribute, - if_let_guard, impl_trait_in_assoc_type, macro_metavar_expr, macro_metavar_expr_concat, @@ -18,7 +17,6 @@ // Library Features allocator_api, - assert_matches, binary_heap_into_iter_sorted, clone_from_ref, const_cmp, diff --git a/libs/@local/hashql/core/src/type/error.rs b/libs/@local/hashql/core/src/type/error.rs index 6634cbf6511..b18bdf8fd91 100644 --- a/libs/@local/hashql/core/src/type/error.rs +++ b/libs/@local/hashql/core/src/type/error.rs @@ -1063,7 +1063,7 @@ pub(crate) fn type_parameter_not_found( ) .primary(Label::new( param.span, - format!("Invalid reference to undefined type parameter ?{argument}",), + format!("Invalid reference to undefined type parameter ?{argument}"), )); diagnostic.add_message(Message::help( diff --git a/libs/@local/hashql/eval/src/lib.rs b/libs/@local/hashql/eval/src/lib.rs index 7ecc2466f40..5220dd61597 100644 --- a/libs/@local/hashql/eval/src/lib.rs +++ b/libs/@local/hashql/eval/src/lib.rs @@ -7,7 +7,6 @@ // Language Features coverage_attribute, exhaustive_patterns, - if_let_guard, never_type, // Library Features diff --git a/libs/@local/hashql/mir/src/lib.rs b/libs/@local/hashql/mir/src/lib.rs index 3f0e07308a8..d23d1f293bd 100644 --- a/libs/@local/hashql/mir/src/lib.rs +++ b/libs/@local/hashql/mir/src/lib.rs @@ -7,7 +7,6 @@ associated_type_defaults, coverage_attribute, exhaustive_patterns, - if_let_guard, impl_trait_in_assoc_type, macro_metavar_expr_concat, never_type, @@ -15,7 +14,6 @@ // Library Features allocator_api, - assert_matches, binary_heap_drain_sorted, clone_from_ref, const_type_name, diff --git a/libs/@local/hashql/syntax-jexpr/src/lib.rs b/libs/@local/hashql/syntax-jexpr/src/lib.rs index ef4a4116e2d..eb0270edb3e 100644 --- a/libs/@local/hashql/syntax-jexpr/src/lib.rs +++ b/libs/@local/hashql/syntax-jexpr/src/lib.rs @@ -6,12 +6,10 @@ #![feature( // Language Features decl_macro, - if_let_guard, // Library Features allocator_api, ascii_char, - assert_matches, box_into_boxed_slice, new_range_api, portable_simd, diff --git a/libs/error-stack/README.md b/libs/error-stack/README.md index 35a8a5ba840..41f04017991 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-02-09&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-28&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 ee063755839..284ae031c18 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-02-09&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-28&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 f0154118582..c60a88f5e1c 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-02-09&color=blue)][rust-version] +//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-28&color=blue)][rust-version] //! //! [crates.io]: https://crates.io/crates/error-stack //! [libs.rs]: https://lib.rs/crates/error-stack diff --git a/libs/error-stack/src/report.rs b/libs/error-stack/src/report.rs index 7da8a9a5368..7487ec07f07 100644 --- a/libs/error-stack/src/report.rs +++ b/libs/error-stack/src/report.rs @@ -305,8 +305,7 @@ impl Report { #[cfg(all(nightly, feature = "backtrace"))] let backtrace = core::error::request_ref::(&frame.as_error()) - .filter(|backtrace| backtrace.status() == BacktraceStatus::Captured) - .is_none() + .is_none_or(|backtrace| backtrace.status() != BacktraceStatus::Captured) .then(Backtrace::capture); #[cfg(all(not(nightly), feature = "backtrace"))] @@ -314,8 +313,7 @@ impl Report { #[cfg(all(nightly, feature = "spantrace"))] let span_trace = core::error::request_ref::(&frame.as_error()) - .filter(|span_trace| span_trace.status() == SpanTraceStatus::CAPTURED) - .is_none() + .is_none_or(|span_trace| span_trace.status() != SpanTraceStatus::CAPTURED) .then(SpanTrace::capture); #[cfg(all(not(nightly), feature = "spantrace"))] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7ae770cde29..7804928caf9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2026-02-09" +channel = "nightly-2026-02-28" components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src', 'rust-analyzer', 'rustc-codegen-cranelift-preview'] diff --git a/tests/graph/integration/postgres/lib.rs b/tests/graph/integration/postgres/lib.rs index 745b5a4e5c5..d8039b2627a 100644 --- a/tests/graph/integration/postgres/lib.rs +++ b/tests/graph/integration/postgres/lib.rs @@ -1,7 +1,3 @@ -#![feature( - // Library Features - assert_matches, -)] #![expect( clippy::missing_panics_doc, clippy::missing_errors_doc, diff --git a/tests/graph/test-data/rust/src/lib.rs b/tests/graph/test-data/rust/src/lib.rs index df38d2c9424..8f4076d18aa 100644 --- a/tests/graph/test-data/rust/src/lib.rs +++ b/tests/graph/test-data/rust/src/lib.rs @@ -9,7 +9,6 @@ // Library Features unwrap_infallible, - assert_matches, )] extern crate alloc;