Skip to content

Commit

Permalink
Rollup merge of rust-lang#95445 - jyn514:rustc-unit-tests, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Don't build the full compiler before running unit tests

This has been present since `builder.ensure` was first added in rust-lang#43059.
It's unclear to me why it was added then - I tested these changes locally
with `x test compiler/rustc_data_structures --stage 0` and they worked fine.

Fixes rust-lang#51748.
  • Loading branch information
Dylan-DPC authored Mar 31, 2022
2 parents e730969 + ae12597 commit 14d8bfd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,6 @@ impl Step for Crate {
compile::std_cargo(builder, target, compiler.stage, &mut cargo);
}
Mode::Rustc => {
builder.ensure(compile::Rustc { compiler, target });
compile::rustc_cargo(builder, &mut cargo, target);
}
_ => panic!("can only test libraries"),
Expand Down

0 comments on commit 14d8bfd

Please sign in to comment.