Skip to content

Commit 2f2146f

Browse files
committed
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.
1 parent b94681f commit 2f2146f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
unused_macros,
1111
unused_macro_rules,
1212
)]
13+
// Prepare for a future upgrade
14+
#![warn(rust_2024_compatibility)]
15+
// Things missing for 2024 that are blocked on MSRV or breakage
16+
#![allow(
17+
missing_unsafe_on_extern,
18+
edition_2024_expr_fragment_specifier,
19+
// Allowed globally, the warning is enabled in individual modules as we work through them
20+
unsafe_op_in_unsafe_fn
21+
)]
1322
#![cfg_attr(libc_deny_warnings, deny(warnings))]
1423
// Attributes needed when building as part of the standard library
1524
#![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]

0 commit comments

Comments
 (0)