Skip to content

Commit 547c729

Browse files
committed
Make fail-fast unstable
1 parent 4acf3ba commit 547c729

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/test/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
262262
// Unstable flags
263263
let force_run_in_process = unstable_optflag!(matches, allow_unstable, "force-run-in-process");
264264
let exclude_should_panic = unstable_optflag!(matches, allow_unstable, "exclude-should-panic");
265+
let fail_fast = unstable_optflag!(matches, allow_unstable, "fail-fast");
265266
let time_options = get_time_options(&matches, allow_unstable)?;
266267
let shuffle = get_shuffle(&matches, allow_unstable)?;
267268
let shuffle_seed = get_shuffle_seed(&matches, allow_unstable)?;
@@ -271,7 +272,6 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
271272
let exact = matches.opt_present("exact");
272273
let list = matches.opt_present("list");
273274
let skip = matches.opt_strs("skip");
274-
let fail_fast = matches.opt_present("fail-fast");
275275

276276
let bench_benchmarks = matches.opt_present("bench");
277277
let run_tests = !bench_benchmarks || matches.opt_present("test");

src/doc/rustc/src/tests/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ other threads will be allowed to run to completion before the process exits.
168168
Note that when running tests in parallel, the test execution order is non-deterministic:
169169
if multiple tests would fail, the first failure encountered will be reported.
170170

171+
⚠️ 🚧 This requires the `-Z unstable-options` flag.
172+
171173
#### `--test-threads` _NUM_THREADS_
172174

173175
Sets the number of threads to use for running tests in parallel. By default,

0 commit comments

Comments
 (0)