From 2ed8beba9e93298c60178f2f6bccbf1c1b4b5806 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Tue, 9 Jul 2024 04:58:15 -0400 Subject: [PATCH] Add `[lints.rust.unexpected_cfgs]` to Cargo.toml --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 53412e6..3100180 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,10 @@ check-rewrites = [] check-spans = [] ci = [] +[lints.rust.unexpected_cfgs] +level = "deny" +check-cfg = ["cfg(dylint_lib, values(any()))", "cfg(nightly)"] + [workspace.metadata.dylint] libraries = [ { git = "https://github.com/trailofbits/dylint", pattern = "examples/general/non_thread_safe_call_in_test" },