You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.arg(clap::arg!(Z: -Z[FLAG]"Experimental, unstable flags. See `-Z help` for details.").action(clap::ArgAction::Append))
116
182
// NOTE: Whenever these change, the `strip_args` calls in `run_cargo_with_mutest_driver` have to be updated as well.
117
183
.next_help_heading("Evaluation Options")
118
184
.arg(clap::arg!(-i --inspect [INSPECT_OPTS]"Inspect mutations after evaluation. Options may be specified in the form `--inspect=[open][:<PORT>]`.").num_args(0..=1).require_equals(true).conflicts_with_all(["no-run","no-build","no-emit-metadata"]))
@@ -124,8 +190,6 @@ fn main() {
124
190
.arg(clap::arg!(--"use-thread-pool""Evaluate tests in a fixed-size thread pool.").conflicts_with_all(["no-run","no-build"]))
125
191
// Printing-related Arguments
126
192
.arg(clap::arg!(--"eval-print"[PRINT]"Print additional information during mutation evaluation. Multiple may be specified, separated by commas.").value_delimiter(',').value_parser(run_print::possible_values()).conflicts_with_all(["no-run","no-build"]))
127
-
// Experimental Flags
128
-
.arg(clap::arg!(--"Zwrite-json-eval-stream""Write JSONL stream file into JSON output directory specified by `--metadata-out-root-dir`.").conflicts_with_all(["no-run","no-build","no-emit-metadata"]))
color_print::ceprintln!("<red,bold>error</>: the `--{}={}` option is unstable, pass `-Z unstable-options` to enable it", option.name, value);
92
+
process::exit(1);
93
+
}
94
+
_ => {}
95
+
}
96
+
}
97
+
}
4
98
5
99
pub macro opts(
6
100
$all:ident, $possible_values_vis:vis $possible_values:ident where
@@ -28,6 +122,20 @@ pub macro exclusive_opts(
28
122
}
29
123
}
30
124
125
+
pubconstUNSTABLE_FLAGS:&[UnstableFlag] = &[
126
+
UnstableFlag::new("unstable-options",Some("Enable the use of unstable options.")),
127
+
// Permanently unstable options.
128
+
UnstableFlag::new("verify-ast-lowering",Some("Verify whether all AST nodes are mapped to their HIR counterparts.")),
129
+
// Experimental options.
130
+
UnstableFlag::new("embedded",Some("Enable experimental support for embedded-test tests and embedded firmware generation with no_std support using a tethered embedded mutation runtime.")),
131
+
// Legacy options.
132
+
UnstableFlag::new("no-sanitize-macro-expns",Some("Skip sanitizing the identifiers and paths in macro expansions. This is legacy behavior and is not recommended.")),
133
+
];
134
+
135
+
pubconstUNSTABLE_OPTIONS:&[UnstableOption] = &[
136
+
// No unstable options at the moment.
137
+
];
138
+
31
139
pubmod mutation_operators {
32
140
crate::opts! {ALL,pub(crate) possible_values where
33
141
ARG_DEFAULT_SHADOW = "arg_default_shadow";
@@ -95,12 +203,6 @@ pub mod call_graph_non_local_call_view {
95
203
}
96
204
}
97
205
98
-
pubmod verify {
99
-
crate::opts! {ALL,pub(crate) possible_values where
.arg(clap::arg!(--"mutant-batch-size"[MUTANT_BATCH_SIZE]"Maximum number of mutations to batch into a single batch.").default_value("1").value_parser(clap::value_parser!(usize)))
160
262
.arg(clap::arg!(--"mutant-batch-seed"[MUTANT_BATCH_SEED]"Random seed to use for randomness during mutation batching."))
161
263
.arg(clap::arg!(--"mutant-batch-greedy-ordering-heuristic"[MUTANT_BATCH_GREEDY_ORDERING_HEURISTIC]"Ordering heuristic to use for `greedy` mutation batching algorithm.").value_parser(mutant_batch_greedy_ordering_heuristic::possible_values()).default_value(mutant_batch_greedy_ordering_heuristic::REVERSE_CONFLICTS))
162
-
.arg(clap::arg!(--"mutant-batch-greedy-epsilon"[MUTANT_BATCH_GREEDY_EPSILON]"Optional epsilon parameter for `greedy` mutation batching algorithm, used to control the probability of random mutation assignment.").default_value("0").value_parser(clap::value_parser!(f64)))
163
-
.next_help_heading("Experimental Options")
164
-
.arg(clap::arg!(--Zverify[VERIFY]"Perform additional checks to verify correctness and completeness. Multiple may be specified, separated by commas.").value_delimiter(',').value_parser(verify::possible_values()))
165
-
.arg(clap::arg!(--Zembedded"Enable experimental support for embedded-test tests and embedded firmware generation with no_std support using a tethered embedded mutation runtime."))
166
-
.arg(clap::arg!(--"Zno-sanitize-macro-expns""Skip sanitizing the identifiers and paths in the expanded output of macro invocations. This was the previous behavior and is not recommended."));
264
+
.arg(clap::arg!(--"mutant-batch-greedy-epsilon"[MUTANT_BATCH_GREEDY_EPSILON]"Optional epsilon parameter for `greedy` mutation batching algorithm, used to control the probability of random mutation assignment.").default_value("0").value_parser(clap::value_parser!(f64)));
0 commit comments