From 8b77e2692cd97552b1b8d66eb51cec69695b3a5b Mon Sep 17 00:00:00 2001 From: Jade Date: Sun, 13 Jun 2021 21:41:46 -0700 Subject: Implement a config override for the default #[cfg(test)] in cargo crates Fixes crates which vanish when the 'test' cfg atom is set. Fix #7243. Fix #9203. Fix #7225. --- crates/cfg/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/cfg') diff --git a/crates/cfg/src/lib.rs b/crates/cfg/src/lib.rs index 87bf0c925..916d39a0b 100644 --- a/crates/cfg/src/lib.rs +++ b/crates/cfg/src/lib.rs @@ -52,6 +52,7 @@ impl CfgOptions { } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct CfgDiff { // Invariants: No duplicates, no atom that's both in `enable` and `disable`. enable: Vec, -- cgit v1.2.3