about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-31 13:09:52 +0200
committerGitHub <noreply@github.com>2022-03-31 13:09:52 +0200
commit14d8bfdbfdd7a3202c5d5c673d8c83fea555fe54 (patch)
treee5f43651fad70ab07f98e142ac25baa0b6b8d439 /src
parente730969b0d433d66d4f1c0bbd9ff70050c274ad5 (diff)
parentae1259769c89daa76d3bcc35028b26c761091332 (diff)
downloadrust-14d8bfdbfdd7a3202c5d5c673d8c83fea555fe54.tar.gz
rust-14d8bfdbfdd7a3202c5d5c673d8c83fea555fe54.zip
Rollup merge of #95445 - jyn514:rustc-unit-tests, r=Dylan-DPC
Don't build the full compiler before running unit tests

This has been present since `builder.ensure` was first added in https://github.com/rust-lang/rust/pull/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 https://github.com/rust-lang/rust/issues/51748.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/test.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index c8b76809aba..339b7a8d1e6 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -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"),