From 47b3b9874496e8f049f2686aee982a4446da4b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Thu, 3 Aug 2023 21:21:56 +0100 Subject: [PATCH] proptest: remove no longer needed "break-dead-code" feature --- proptest/Cargo.toml | 6 +----- proptest/src/arbitrary/_alloc/char.rs | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/proptest/Cargo.toml b/proptest/Cargo.toml index efceae04..c634be58 100644 --- a/proptest/Cargo.toml +++ b/proptest/Cargo.toml @@ -19,7 +19,7 @@ Hypothesis-like property-based testing and shrinking. [features] -default = ["std", "fork", "timeout", "bit-set", "break-dead-code"] +default = ["std", "fork", "timeout", "bit-set"] # Everything in `default` that doesn't break code coverage builds default-code-coverage = ["std", "fork", "timeout", "bit-set"] @@ -52,10 +52,6 @@ timeout = ["fork", "rusty-fork/timeout"] # need it excluded, however. atomic64bit = [] -# Include features which break the Rust compiler when `-C link-dead-code` is -# passed (see https://github.com/proptest-rs/proptest/issues/124). -break-dead-code = [] - [dependencies] bitflags = "2" unarray = "0.1.4" diff --git a/proptest/src/arbitrary/_alloc/char.rs b/proptest/src/arbitrary/_alloc/char.rs index fab9dd82..58a261e4 100644 --- a/proptest/src/arbitrary/_alloc/char.rs +++ b/proptest/src/arbitrary/_alloc/char.rs @@ -43,7 +43,6 @@ impl_wrap_char!(ToLowercase, char::to_lowercase); #[cfg(feature = "unstable")] impl_wrap_char!(ToUppercase, char::to_uppercase); -#[cfg(feature = "break-dead-code")] arbitrary!(DecodeUtf16< as IntoIterator>::IntoIter>, SMapped, Self>; static_map(vec(any::(), ..VEC_MAX), decode_utf16) @@ -75,7 +74,6 @@ mod test { decode_utf16_error => DecodeUtf16Error ); - #[cfg(feature = "break-dead-code")] no_panic_test!( decode_utf16 => DecodeUtf16< as IntoIterator>::IntoIter> );