Skip to content

Commit 89b80fa

Browse files
eddybbrson
authored andcommitted
Register new snapshots.
1 parent f4f10db commit 89b80fa

File tree

29 files changed

+173
-477
lines changed

29 files changed

+173
-477
lines changed

mk/main.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ export CFG_DISABLE_UNSTABLE_FEATURES
333333
endif
334334
# Subvert unstable feature lints to do the self-build
335335
export CFG_BOOTSTRAP_KEY
336-
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
337336

338337
######################################################################
339338
# Per-stage targets and runner
@@ -404,8 +403,13 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
404403
ifeq ($(1),0)
405404
# Don't run the stage0 compiler under valgrind - that ship has sailed
406405
CFG_VALGRIND_COMPILE$(1) =
406+
# FIXME(21230) HACK Extract the key from the snapshot
407+
CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$$$((grep -a 'save analysis[0-9]' \
408+
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) || echo N) |\
409+
sed 's/.*save analysis\([0-9]*\).*/\1/')
407410
else
408411
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
412+
CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$(CFG_BOOTSTRAP_KEY)
409413
endif
410414

411415
# Add RUSTFLAGS_STAGEN values to the build command
@@ -478,6 +482,7 @@ STAGE$(1)_T_$(2)_H_$(3) := \
478482
$$(Q)$$(RPATH_VAR$(1)_T_$(2)_H_$(3)) \
479483
$$(call CFG_RUN_TARG_$(3),$(1), \
480484
$$(CFG_VALGRIND_COMPILE$(1)) \
485+
$$(CFG_BOOSTRAP_KEY_ENV$(1)) \
481486
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
482487
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
483488
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2)) \

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/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/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/string.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -830,15 +830,6 @@ impl fmt::Show for String {
830830
}
831831

832832
#[unstable = "waiting on Hash stabilization"]
833-
#[cfg(stage0)]
834-
impl<H: hash::Writer> hash::Hash<H> for String {
835-
#[inline]
836-
fn hash(&self, hasher: &mut H) {
837-
(**self).hash(hasher)
838-
}
839-
}
840-
#[unstable = "waiting on Hash stabilization"]
841-
#[cfg(not(stage0))]
842833
impl<H: hash::Writer + hash::Hasher> hash::Hash<H> for String {
843834
#[inline]
844835
fn hash(&self, hasher: &mut H) {

src/libcollections/vec.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,14 +1185,6 @@ impl<T:Clone> Clone for Vec<T> {
11851185
}
11861186
}
11871187

1188-
#[cfg(stage0)]
1189-
impl<S: hash::Writer, T: Hash<S>> Hash<S> for Vec<T> {
1190-
#[inline]
1191-
fn hash(&self, state: &mut S) {
1192-
self.as_slice().hash(state);
1193-
}
1194-
}
1195-
#[cfg(not(stage0))]
11961188
impl<S: hash::Writer + hash::Hasher, T: Hash<S>> Hash<S> for Vec<T> {
11971189
#[inline]
11981190
fn hash(&self, state: &mut S) {

src/libcore/fmt/mod.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -180,25 +180,6 @@ impl<'a> Arguments<'a> {
180180
/// unsafety, but will ignore invalid .
181181
#[doc(hidden)] #[inline]
182182
#[unstable = "implementation detail of the `format_args!` macro"]
183-
#[cfg(stage0)] // SNAP 9e4e524
184-
pub fn with_placeholders(pieces: &'a [&'a str],
185-
fmt: &'a [rt::Argument<'a>],
186-
args: &'a [Argument<'a>]) -> Arguments<'a> {
187-
Arguments {
188-
pieces: pieces,
189-
fmt: Some(fmt),
190-
args: args
191-
}
192-
}
193-
/// This function is used to specify nonstandard formatting parameters.
194-
/// The `pieces` array must be at least as long as `fmt` to construct
195-
/// a valid Arguments structure. Also, any `Count` within `fmt` that is
196-
/// `CountIsParam` or `CountIsNextParam` has to point to an argument
197-
/// created with `argumentuint`. However, failing to do so doesn't cause
198-
/// unsafety, but will ignore invalid .
199-
#[doc(hidden)] #[inline]
200-
#[unstable = "implementation detail of the `format_args!` macro"]
201-
#[cfg(not(stage0))]
202183
pub fn with_placeholders(pieces: &'a [&'a str],
203184
fmt: &'a [rt::Argument],
204185
args: &'a [Argument<'a>]) -> Arguments<'a> {
@@ -226,10 +207,6 @@ pub struct Arguments<'a> {
226207
pieces: &'a [&'a str],
227208

228209
// Placeholder specs, or `None` if all specs are default (as in "{}{}").
229-
// SNAP 9e4e524
230-
#[cfg(stage0)]
231-
fmt: Option<&'a [rt::Argument<'a>]>,
232-
#[cfg(not(stage0))]
233210
fmt: Option<&'a [rt::Argument]>,
234211

235212
// Dynamic arguments for interpolation, to be interleaved with string

src/libcore/fmt/rt.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,12 @@ pub use self::Count::*;
2121
pub use self::Position::*;
2222
pub use self::Flag::*;
2323

24-
// SNAP 9e4e524
2524
#[doc(hidden)]
2625
#[derive(Copy)]
27-
#[cfg(not(stage0))]
2826
pub struct Argument {
2927
pub position: Position,
3028
pub format: FormatSpec,
3129
}
32-
#[doc(hidden)]
33-
#[derive(Copy)]
34-
#[cfg(stage0)]
35-
pub struct Argument<'a> {
36-
pub position: Position,
37-
pub format: FormatSpec,
38-
}
3930

4031
#[doc(hidden)]
4132
#[derive(Copy)]

0 commit comments

Comments
 (0)