aboutsummaryrefslogtreecommitdiff
path: root/crates/cfg
diff options
context:
space:
mode:
authorJade <[email protected]>2021-06-14 05:41:46 +0100
committerJade <[email protected]>2021-06-19 09:09:19 +0100
commit8b77e2692cd97552b1b8d66eb51cec69695b3a5b (patch)
tree82187a911cd5e5acd8ce84f1f375d53185a05c7f /crates/cfg
parent1f6abb7fbae35dbd036032a6ea2a9e04307f1f55 (diff)
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.
Diffstat (limited to 'crates/cfg')
-rw-r--r--crates/cfg/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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 {
52 } 52 }
53} 53}
54 54
55#[derive(Clone, Debug, PartialEq, Eq)]
55pub struct CfgDiff { 56pub struct CfgDiff {
56 // Invariants: No duplicates, no atom that's both in `enable` and `disable`. 57 // Invariants: No duplicates, no atom that's both in `enable` and `disable`.
57 enable: Vec<CfgAtom>, 58 enable: Vec<CfgAtom>,