From 2f2146f8d4ffbf897ea2248a86df26ac973a784f Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 26 Jul 2025 01:29:53 -0500 Subject: [PATCH] Enable the `rust_2024_compatibility` lint Enable this lint with the expectation that we will eventually be upgrading editions. There are some exceptions needed, and `unsafe_op_in_unsafe_fn` will take a while to go through. --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 9fce283296546..5c1a0020517a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,6 +10,15 @@ unused_macros, unused_macro_rules, )] +// Prepare for a future upgrade +#![warn(rust_2024_compatibility)] +// Things missing for 2024 that are blocked on MSRV or breakage +#![allow( + missing_unsafe_on_extern, + edition_2024_expr_fragment_specifier, + // Allowed globally, the warning is enabled in individual modules as we work through them + unsafe_op_in_unsafe_fn +)] #![cfg_attr(libc_deny_warnings, deny(warnings))] // Attributes needed when building as part of the standard library #![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]