Skip to content

Commit

Permalink
Rollup merge of rust-lang#78687 - jyn514:bootstrap-help, r=Mark-Simul…
Browse files Browse the repository at this point in the history
…acrum

Suggest library/std when running all stage 0 tests

r? `@Mark-Simulacrum`
cc `@ijackson`

For context, this came out of a discord conversation where `@ijackson` was running `test --stage 1` when they were only adding doc-tests to the standard library.
  • Loading branch information
Dylan-DPC authored Nov 3, 2020
2 parents 86ef8d6 + 1aedcd3 commit 858ddf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,8 @@ impl Step for Compiletest {
if builder.top_stage == 0 && env::var("COMPILETEST_FORCE_STAGE0").is_err() {
eprintln!("\
error: `--stage 0` runs compiletest on the beta compiler, not your local changes, and will almost always cause tests to fail
help: use `--stage 1` instead
help: to test the compiler, use `--stage 1` instead
help: to test the standard library, use `--stage 0 library/std` instead
note: if you're sure you want to do this, please open an issue as to why. In the meantime, you can override this with `COMPILETEST_FORCE_STAGE0=1`."
);
std::process::exit(1);
Expand Down

0 comments on commit 858ddf2

Please sign in to comment.