diff --git a/cargo-test-fuzz/src/bin/cargo_test_fuzz/transition.rs b/cargo-test-fuzz/src/bin/cargo_test_fuzz/transition.rs index a1cce17d..1612a7ac 100644 --- a/cargo-test-fuzz/src/bin/cargo_test_fuzz/transition.rs +++ b/cargo-test-fuzz/src/bin/cargo_test_fuzz/transition.rs @@ -215,6 +215,7 @@ impl From for super::TestFuzz { } } +#[allow(unused_macros)] macro_rules! process_deprecated_action_object { ($opts:ident, $action:ident, $object_old:ident, $object_new:ident) => { if $opts.$action == Some(Object::$object_old) { @@ -231,10 +232,7 @@ macro_rules! process_deprecated_action_object { #[allow(deprecated)] pub(crate) fn cargo_test_fuzz>(args: &[T]) -> Result<()> { - let SubCommand::TestFuzz(mut opts) = Opts::parse_from(args).subcmd; - - process_deprecated_action_object!(opts, display, Concretizations, GenericArgs); - process_deprecated_action_object!(opts, display, ImplConcretizations, ImplGenericArgs); + let SubCommand::TestFuzz(opts) = Opts::parse_from(args).subcmd; super::run(super::TestFuzz::from(opts)) } diff --git a/cargo-test-fuzz/src/lib.rs b/cargo-test-fuzz/src/lib.rs index 09f1a8b6..2ef4dccf 100644 --- a/cargo-test-fuzz/src/lib.rs +++ b/cargo-test-fuzz/src/lib.rs @@ -55,15 +55,11 @@ bitflags! { #[derive(Clone, Copy, Debug, Display, Deserialize, PartialEq, Eq, Serialize, ValueEnum)] #[remain::sorted] pub enum Object { - #[deprecated] - Concretizations, Corpus, CorpusInstrumented, Crashes, GenericArgs, Hangs, - #[deprecated] - ImplConcretizations, ImplGenericArgs, Queue, } @@ -702,9 +698,6 @@ fn reset(opts: &TestFuzz, executable_targets: &[(Executable, Vec)]) -> R #[allow(clippy::panic)] fn flags_and_dir(object: Object, krate: &str, target: &str) -> (Flags, PathBuf) { match object { - Object::Concretizations | Object::ImplConcretizations => { - panic!("`{object}` should have been filter out") - } Object::Corpus | Object::CorpusInstrumented => ( Flags::REQUIRES_CARGO_TEST, corpus_directory_from_target(krate, target),