From 6ed70f9a1f2664cc80703c5ce465d37e30d1c2c2 Mon Sep 17 00:00:00 2001 From: Benno Lossin Date: Fri, 6 Mar 2026 09:04:56 +0100 Subject: [PATCH] allow `unused_features` lint The `unused_features` lint was introduced in [1], presumably landing in Rust 1.96.0. We simplified the way we use features in #102, always enabling them when building the crate with certain features enabled. For this reason allow the lint. Link: https://github.com/rust-lang/rust/pull/152164 [1] Signed-off-by: Benno Lossin --- Cargo.toml | 1 + internal/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e189b6d6..2edd1efd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ prettyplease = { version = "0.2.37", features = ["verbatim"] } [lints.rust] stable_features = "allow" +unused_features = "allow" non_ascii_idents = "deny" unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(UI_TESTS)', diff --git a/internal/Cargo.toml b/internal/Cargo.toml index c8810106..c28357d9 100644 --- a/internal/Cargo.toml +++ b/internal/Cargo.toml @@ -22,4 +22,5 @@ rustc_version = "0.4" [lints.rust] stable_features = "allow" +unused_features = "allow" unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kernel)'] }