From f748a98332b65f781154ce58164984df8f8eadbc Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Sun, 5 Jan 2025 23:42:12 -0500 Subject: [PATCH] Work around est31/cargo-udeps#293 --- cargo-dylint/tests/ci.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cargo-dylint/tests/ci.rs b/cargo-dylint/tests/ci.rs index 30ebe1e81..5d2922665 100644 --- a/cargo-dylint/tests/ci.rs +++ b/cargo-dylint/tests/ci.rs @@ -297,7 +297,9 @@ fn duplicate_dependencies() { #[test] fn hack_feature_powerset_udeps() { Command::new("rustup") - .env(env::RUSTFLAGS, "-D warnings") + // smoelius: `--check-cfg cfg(test)` to work around the following issue: + // https://github.com/est31/cargo-udeps/issues/293 + .env(env::RUSTFLAGS, "-D warnings --check-cfg cfg(test)") .args([ "run", "nightly",