Skip to content

Commit 7bfc889

Browse files
Merge pull request #357 from tzemanovic/tomas/clear-break-dead-code
proptest: remove no longer needed "break-dead-code" feature
2 parents 370b3a0 + eb9db9d commit 7bfc889

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

proptest/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Hypothesis-like property-based testing and shrinking.
1919

2020
[features]
2121

22-
default = ["std", "fork", "timeout", "bit-set", "break-dead-code"]
22+
default = ["std", "fork", "timeout", "bit-set"]
2323
# Everything in `default` that doesn't break code coverage builds
2424
default-code-coverage = ["std", "fork", "timeout", "bit-set"]
2525

@@ -52,10 +52,6 @@ timeout = ["fork", "rusty-fork/timeout"]
5252
# need it excluded, however.
5353
atomic64bit = []
5454

55-
# Include features which break the Rust compiler when `-C link-dead-code` is
56-
# passed (see https://github.com/proptest-rs/proptest/issues/124).
57-
break-dead-code = []
58-
5955
bit-set = [ "dep:bit-set", "dep:bit-vec" ]
6056

6157
[dependencies]

proptest/src/arbitrary/_alloc/char.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl_wrap_char!(ToLowercase, char::to_lowercase);
4343
#[cfg(feature = "unstable")]
4444
impl_wrap_char!(ToUppercase, char::to_uppercase);
4545

46-
#[cfg(feature = "break-dead-code")]
4746
arbitrary!(DecodeUtf16<<Vec<u16> as IntoIterator>::IntoIter>,
4847
SMapped<Vec<u16>, Self>;
4948
static_map(vec(any::<u16>(), ..VEC_MAX), decode_utf16)
@@ -75,7 +74,6 @@ mod test {
7574
decode_utf16_error => DecodeUtf16Error
7675
);
7776

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

0 commit comments

Comments
 (0)