From 5405ed9dc6ae8b1bc906668209b6aa33ad848a41 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 26 May 2024 20:32:22 +0200 Subject: fix(tvix/eval): proptests require arbitrary feature `cargo test --no-default-features` fails, if we don't conditionalize this on the `arbitrary` feature too. Change-Id: I81a277810119fed0cfc37c942c422f731aa14b2e Reviewed-on: https://cl.tvl.fyi/c/depot/+/11726 Autosubmit: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI Reviewed-by: Connor Brewster --- tvix/eval/src/lib.rs | 2 +- tvix/eval/src/value/string.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval') diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index 845964cb7e00..398da4d6e22e 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -29,7 +29,7 @@ mod vm; mod warnings; mod nix_search_path; -#[cfg(test)] +#[cfg(all(test, feature = "arbitrary"))] mod properties; #[cfg(test)] mod test_utils; diff --git a/tvix/eval/src/value/string.rs b/tvix/eval/src/value/string.rs index e3e92865f672..0b37d483b394 100644 --- a/tvix/eval/src/value/string.rs +++ b/tvix/eval/src/value/string.rs @@ -883,7 +883,7 @@ impl Display for NixString { } } -#[cfg(test)] +#[cfg(all(test, feature = "arbitrary"))] mod tests { use test_strategy::proptest; -- cgit 1.4.1