Skip to content

Commit

Permalink
Don't build the full compiler before running unit tests
Browse files Browse the repository at this point in the history
This has been present since `builder.ensure` was first added in #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 #51748.
  • Loading branch information
jyn514 committed Mar 29, 2022
1 parent 11909e3 commit ae12597
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 ae12597

Please sign in to comment.