Skip to content

Commit 3e5a940

Browse files
eddybbrson
authored andcommitted
---
yaml --- r: 176108 b: refs/heads/try c: 89b80fa h: refs/heads/master v: v3
1 parent ab2d0d3 commit 3e5a940

File tree

30 files changed

+174
-524
lines changed

30 files changed

+174
-524
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a530cc9706324ad44dba464d541a807eb5afdb08
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 777435990e0e91df6b72ce80c9b6fa485eeb5daa
5-
refs/heads/try: 6da8827482418b6ee89eaf3c66b8693c4cc649e8
5+
refs/heads/try: 89b80faa8ef2b52f5adc423cfcfed69b313ea1b7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)) \

branches/try/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) {

branches/try/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) {

branches/try/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() {

branches/try/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) {

branches/try/src/libcollections/vec.rs

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -681,43 +681,6 @@ impl<T> Vec<T> {
681681
}
682682
}
683683

684-
/// Moves all the elements of `other` into `Self`, leaving `other` empty.
685-
///
686-
/// # Panics
687-
///
688-
/// Panics if the number of elements in the vector overflows a `uint`.
689-
///
690-
/// # Examples
691-
/// ```rust
692-
/// let mut vec = vec![1, 2, 3];
693-
/// let mut vec2 = vec![4, 5, 6];
694-
/// vec.append(&mut vec2);
695-
/// assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
696-
/// assert_eq!(vec2, vec![]);
697-
/// ```
698-
#[inline]
699-
#[unstable = "new API, waiting for dust to settle"]
700-
pub fn append(&mut self, other: &mut Self) {
701-
if mem::size_of::<T>() == 0 {
702-
// zero-size types consume no memory, so we can't rely on the
703-
// address space running out
704-
self.len = self.len.checked_add(other.len()).expect("length overflow");
705-
unsafe { other.set_len(0) }
706-
return;
707-
}
708-
self.reserve(other.len());
709-
let len = self.len();
710-
unsafe {
711-
ptr::copy_nonoverlapping_memory(
712-
self.get_unchecked_mut(len),
713-
other.as_ptr(),
714-
other.len());
715-
}
716-
717-
self.len += other.len();
718-
unsafe { other.set_len(0); }
719-
}
720-
721684
/// Creates a draining iterator that clears the `Vec` and iterates over
722685
/// the removed items from start to end.
723686
///
@@ -1222,14 +1185,6 @@ impl<T:Clone> Clone for Vec<T> {
12221185
}
12231186
}
12241187

1225-
#[cfg(stage0)]
1226-
impl<S: hash::Writer, T: Hash<S>> Hash<S> for Vec<T> {
1227-
#[inline]
1228-
fn hash(&self, state: &mut S) {
1229-
self.as_slice().hash(state);
1230-
}
1231-
}
1232-
#[cfg(not(stage0))]
12331188
impl<S: hash::Writer + hash::Hasher, T: Hash<S>> Hash<S> for Vec<T> {
12341189
#[inline]
12351190
fn hash(&self, state: &mut S) {
@@ -2335,15 +2290,6 @@ mod tests {
23352290
assert_eq!(ys.as_slice(), [1u, 2, 3]);
23362291
}
23372292

2338-
#[test]
2339-
fn test_append() {
2340-
let mut vec = vec![1, 2, 3];
2341-
let mut vec2 = vec![4, 5, 6];
2342-
vec.append(&mut vec2);
2343-
assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
2344-
assert_eq!(vec2, vec![]);
2345-
}
2346-
23472293
#[bench]
23482294
fn bench_new(b: &mut Bencher) {
23492295
b.iter(|| {

branches/try/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

branches/try/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)