Skip to content

Commit 9af843b

Browse files
committed
add edition 2024 lints
1 parent 7f70a55 commit 9af843b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frozen-abi/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#![allow(incomplete_features)]
22
#![cfg_attr(docsrs, feature(doc_cfg))]
33
#![cfg_attr(feature = "frozen-abi", feature(specialization))]
4+
// Activate some of the Rust 2024 lints to make the future migration easier.
5+
#![warn(if_let_rescope)]
6+
#![warn(keyword_idents_2024)]
7+
#![warn(rust_2024_incompatible_pat)]
8+
#![warn(tail_expr_drop_order)]
9+
#![warn(unsafe_attr_outside_unsafe)]
10+
#![warn(unsafe_op_in_unsafe_fn)]
411

512
// Allows macro expansion of `use ::solana_frozen_abi::*` to work within this crate
613
extern crate self as solana_frozen_abi;

0 commit comments

Comments
 (0)