Skip to content

Commit

Permalink
Merge pull request #357 from tzemanovic/tomas/clear-break-dead-code
Browse files Browse the repository at this point in the history
proptest: remove no longer needed "break-dead-code" feature
  • Loading branch information
rex-remind101 authored Sep 28, 2023
2 parents 370b3a0 + eb9db9d commit 7bfc889
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions proptest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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 = []

bit-set = [ "dep:bit-set", "dep:bit-vec" ]

[dependencies]
Expand Down
2 changes: 0 additions & 2 deletions proptest/src/arbitrary/_alloc/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<<Vec<u16> as IntoIterator>::IntoIter>,
SMapped<Vec<u16>, Self>;
static_map(vec(any::<u16>(), ..VEC_MAX), decode_utf16)
Expand Down Expand Up @@ -75,7 +74,6 @@ mod test {
decode_utf16_error => DecodeUtf16Error
);

#[cfg(feature = "break-dead-code")]
no_panic_test!(
decode_utf16 => DecodeUtf16<<Vec<u16> as IntoIterator>::IntoIter>
);
Expand Down

0 comments on commit 7bfc889

Please sign in to comment.