Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proptest: remove no longer needed "break-dead-code" feature #357

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions proptest/Cargo.toml
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
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