Skip to content

Commit a833337

Browse files
committed
auto merge of #21288 : brson/rust/snaps, r=alexcrichton
This fixes the issues mentioned in #21236, as well as the one #21230 where `CFG_BOOTSTRAP_KEY` was being set to simply 'N'. It changes the build such that `RUSTC_BOOTSTRAP_KEY` is only exported on -beta and -stable, so that the behavior of the -dev, -nightly, and snapshot compilers is the same everywhere. Haven't run it completely through 'make check' yet, but the I have verified that the aforementioned issues are fixed. r? @alexcrichton cc @eddyb
2 parents 6da8827 + 8b2335a commit a833337

File tree

75 files changed

+218
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+218
-479
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ putvar CFG_RELEASE_CHANNEL
612612
# channel.
613613
# Basing CFG_BOOTSTRAP_KEY on CFG_BOOTSTRAP_KEY lets it get picked up
614614
# during a Makefile reconfig.
615-
CFG_BOOTSTRAP_KEY="${CFG_BOOTSTRAP_KEY-`date +%N`}"
615+
CFG_BOOTSTRAP_KEY="${CFG_BOOTSTRAP_KEY-`date +%H:%M:%S`}"
616616
putvar CFG_BOOTSTRAP_KEY
617617

618618
step_msg "looking for build programs"

mk/main.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ ifdef CFG_DISABLE_UNSTABLE_FEATURES
330330
CFG_INFO := $(info cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATURES))
331331
# Turn on feature-staging
332332
export CFG_DISABLE_UNSTABLE_FEATURES
333-
endif
334333
# Subvert unstable feature lints to do the self-build
335-
export CFG_BOOTSTRAP_KEY
336334
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
335+
endif
336+
export CFG_BOOTSTRAP_KEY
337337

338338
######################################################################
339339
# Per-stage targets and runner

src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
1515
#![feature(int_uint)]
16+
#![allow(unstable)]
1617

1718
#![deny(warnings)]
1819

src/driver/driver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unstable)]
12+
1113
#[cfg(rustdoc)]
1214
extern crate "rustdoc" as this;
1315

src/liballoc/boxed.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ impl<T: ?Sized + Ord> Ord for Box<T> {
117117
#[stable]
118118
impl<T: ?Sized + Eq> Eq for Box<T> {}
119119

120-
#[cfg(stage0)]
121-
impl<S: hash::Writer, T: ?Sized + Hash<S>> Hash<S> for Box<T> {
122-
#[inline]
123-
fn hash(&self, state: &mut S) {
124-
(**self).hash(state);
125-
}
126-
}
127-
#[cfg(not(stage0))]
128120
impl<S: hash::Hasher, T: ?Sized + Hash<S>> Hash<S> for Box<T> {
129121
#[inline]
130122
fn hash(&self, state: &mut S) {

src/liballoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666

6767
#![no_std]
6868
#![allow(unknown_features)]
69+
#![allow(unstable)]
6970
#![feature(lang_items, unsafe_destructor)]
7071
#![feature(box_syntax)]
7172
#![feature(optin_builtin_traits)]

src/liballoc/rc.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -686,14 +686,6 @@ impl<T: Ord> Ord for Rc<T> {
686686
}
687687

688688
// FIXME (#18248) Make `T` `Sized?`
689-
#[cfg(stage0)]
690-
impl<S: hash::Writer, T: Hash<S>> Hash<S> for Rc<T> {
691-
#[inline]
692-
fn hash(&self, state: &mut S) {
693-
(**self).hash(state);
694-
}
695-
}
696-
#[cfg(not(stage0))]
697689
impl<S: hash::Hasher, T: Hash<S>> Hash<S> for Rc<T> {
698690
#[inline]
699691
fn hash(&self, state: &mut S) {

src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#![feature(box_syntax)]
3535
#![allow(unknown_features)] #![feature(int_uint)]
3636
#![allow(missing_docs)]
37+
#![allow(unstable)]
3738

3839
extern crate alloc;
3940

src/libcollections/btree/map.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ use core::cmp::Ordering;
2424
use core::default::Default;
2525
use core::fmt::Show;
2626
use core::hash::{Hash, Hasher};
27-
#[cfg(stage0)]
28-
use core::hash::Writer;
2927
use core::iter::{Map, FromIterator};
3028
use core::ops::{Index, IndexMut};
3129
use core::{iter, fmt, mem};
@@ -822,16 +820,6 @@ impl<K: Ord, V> Extend<(K, V)> for BTreeMap<K, V> {
822820
}
823821

824822
#[stable]
825-
#[cfg(stage0)]
826-
impl<S: Writer, K: Hash<S>, V: Hash<S>> Hash<S> for BTreeMap<K, V> {
827-
fn hash(&self, state: &mut S) {
828-
for elt in self.iter() {
829-
elt.hash(state);
830-
}
831-
}
832-
}
833-
#[stable]
834-
#[cfg(not(stage0))]
835823
impl<S: Hasher, K: Hash<S>, V: Hash<S>> Hash<S> for BTreeMap<K, V> {
836824
fn hash(&self, state: &mut S) {
837825
for elt in self.iter() {

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(unboxed_closures)]
2929
#![feature(old_impl_check)]
3030
#![allow(unknown_features)] #![feature(int_uint)]
31+
#![allow(unstable)]
3132
#![no_std]
3233

3334
#[macro_use]

0 commit comments

Comments
 (0)