about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-06-06 19:32:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-06-19 22:25:05 -0700
commitbe7ebdd512e8b4de29c0e0cf5aabf486e988867b (patch)
treebb4cfa3e4d8b47883518fc1fd6a34b613b63aae7 /src/bootstrap/lib.rs
parent04145943a25c3b8c7e7d7fe8c2efb04f259c25fb (diff)
downloadrust-be7ebdd512e8b4de29c0e0cf5aabf486e988867b.tar.gz
rust-be7ebdd512e8b4de29c0e0cf5aabf486e988867b.zip
Bump version and stage0 compiler
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index e0e6583b935..ca8cc3212d7 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -429,29 +429,6 @@ impl Build {
                  .env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
         }
 
-        // There are two invariants we must maintain:
-        // * stable crates cannot depend on unstable crates (general Rust rule),
-        // * crates that end up in the sysroot must be unstable (rustbuild rule).
-        //
-        // In order to do enforce the latter, we pass the env var
-        // `RUSTBUILD_UNSTABLE` down the line for any crates which will end up
-        // in the sysroot. We read this in bootstrap/bin/rustc.rs and if it is
-        // set, then we pass the `rustbuild` feature to rustc when building the
-        // the crate.
-        //
-        // In turn, crates that can be used here should recognise the `rustbuild`
-        // feature and opt-in to `rustc_private`.
-        //
-        // We can't always pass `rustbuild` because crates which are outside of
-        // the compiler, libs, and tests are stable and we don't want to make
-        // their deps unstable (since this would break the first invariant
-        // above).
-        //
-        // FIXME: remove this after next stage0
-        if mode != Mode::Tool && stage == 0 {
-            cargo.env("RUSTBUILD_UNSTABLE", "1");
-        }
-
         // Ignore incremental modes except for stage0, since we're
         // not guaranteeing correctness across builds if the compiler
         // is changing under your feet.`