diff options
| author | bors <bors@rust-lang.org> | 2015-01-18 05:48:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-18 05:48:56 +0000 |
| commit | a833337943300db1c310a4cf9c84b7b4ef4e9468 (patch) | |
| tree | 7834caf30f35c3ac85ea122333b7ba7c07cc767c /src/libsyntax | |
| parent | 6da8827482418b6ee89eaf3c66b8693c4cc649e8 (diff) | |
| parent | 8b2335a01d000300cca7d8b12210e605424eedb4 (diff) | |
| download | rust-a833337943300db1c310a4cf9c84b7b4ef4e9468.tar.gz rust-a833337943300db1c310a4cf9c84b7b4ef4e9468.zip | |
auto merge of #21288 : brson/rust/snaps, r=alexcrichton
This fixes the issues mentioned in https://github.com/rust-lang/rust/pull/21236, as well as the one https://github.com/rust-lang/rust/issues/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
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/lib.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ptr.rs | 8 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 096e96b003b..fa675a9fcaa 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -28,6 +28,7 @@ #![feature(box_syntax)] #![feature(quote, unsafe_destructor)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate arena; extern crate fmt_macros; diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index 13a14d069d7..37fa8703706 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -38,7 +38,6 @@ use std::fmt::{self, Show}; use std::hash::{Hash, Hasher}; -#[cfg(stage0)] use std::hash::Writer; use std::ops::Deref; use std::ptr; @@ -107,13 +106,6 @@ impl<T: Show> Show for P<T> { } } -#[cfg(stage0)] -impl<S: Writer, T: Hash<S>> Hash<S> for P<T> { - fn hash(&self, state: &mut S) { - (**self).hash(state); - } -} -#[cfg(not(stage0))] impl<S: Hasher, T: Hash<S>> Hash<S> for P<T> { fn hash(&self, state: &mut S) { (**self).hash(state); |
