about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-05-25 15:12:33 -0700
committerMichael Howell <michael@notriddle.com>2023-05-25 15:12:33 -0700
commit64cfc212890515fe4c41374acbc986034450d3b7 (patch)
tree1acacb52dbdd1451052b7130d4c8e0421335473a /src
parent5fb752bdd51b2d40ffbddf3c86e5869b3e816e08 (diff)
bootstrap: use RUSTC_BOOTSTRAP in distcheck
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 2b72d6c48eb..8b6048464e8 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -2514,6 +2514,9 @@ impl Step for Distcheck {
         let toml = dir.join("rust-src/lib/rustlib/src/rust/library/std/Cargo.toml");
         builder.run(
             Command::new(&builder.initial_cargo)
+                // Will read the libstd Cargo.toml
+                // which uses the unstable `public-dependency` feature.
+                .env("RUSTC_BOOTSTRAP", "1")
                 .arg("generate-lockfile")
                 .arg("--manifest-path")
                 .arg(&toml)