From a92ee0f664c84545c3cba70644472ec3df23c1ee Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Fri, 19 Feb 2016 16:08:36 -0800 Subject: [PATCH] Register new snapshots --- src/libcollections/borrow.rs | 4 ++-- src/libcollections/btree/map.rs | 4 ++-- src/libcore/intrinsics.rs | 3 --- src/libcore/option.rs | 2 +- src/libcore/result.rs | 4 ++-- src/libstd/collections/hash/map.rs | 4 ++-- src/libstd/env.rs | 2 +- src/libstd/io/mod.rs | 6 ++--- src/libstd/net/addr.rs | 4 ++-- src/libstd/net/ip.rs | 4 ++-- src/libstd/path.rs | 20 ++++++++-------- src/libstd/sync/mpsc/mod.rs | 4 ++-- src/libstd/sys/common/poison.rs | 2 +- src/libstd/sys/common/unwind/gcc.rs | 1 - src/libstd/sys/common/unwind/mod.rs | 17 ------------- src/libstd/sys/common/unwind/seh.rs | 29 ----------------------- src/libstd/sys/common/unwind/seh64_gnu.rs | 1 - src/snapshots.txt | 9 +++++++ 18 files changed, 39 insertions(+), 81 deletions(-) diff --git a/src/libcollections/borrow.rs b/src/libcollections/borrow.rs index f174cc09bcd..ce20a25d13a 100644 --- a/src/libcollections/borrow.rs +++ b/src/libcollections/borrow.rs @@ -95,12 +95,12 @@ pub enum Cow<'a, B: ?Sized + 'a> { /// Borrowed data. #[stable(feature = "rust1", since = "1.0.0")] - Borrowed(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a B), + Borrowed(#[stable(feature = "rust1", since = "1.0.0")] &'a B), /// Owned data. #[stable(feature = "rust1", since = "1.0.0")] Owned( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] ::Owned + #[stable(feature = "rust1", since = "1.0.0")] ::Owned ), } diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs index 7207e7b151c..2a950ce0ab7 100644 --- a/src/libcollections/btree/map.rs +++ b/src/libcollections/btree/map.rs @@ -238,13 +238,13 @@ pub enum Entry<'a, K: 'a, V: 'a> { /// A vacant Entry #[stable(feature = "rust1", since = "1.0.0")] Vacant( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] VacantEntry<'a, K, V> + #[stable(feature = "rust1", since = "1.0.0")] VacantEntry<'a, K, V> ), /// An occupied Entry #[stable(feature = "rust1", since = "1.0.0")] Occupied( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] OccupiedEntry<'a, K, V> + #[stable(feature = "rust1", since = "1.0.0")] OccupiedEntry<'a, K, V> ), } diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 2e2292d63f4..760631e594f 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -559,8 +559,5 @@ pub fn volatile_copy_nonoverlapping_memory(dst: *mut T, src: *const T, /// platforms this is a `*mut *mut T` which is filled in by the compiler and /// on MSVC it's `*mut [usize; 2]`. For more information see the compiler's /// source as well as std's catch implementation. - #[cfg(not(stage0))] pub fn try(f: fn(*mut u8), data: *mut u8, local_ptr: *mut u8) -> i32; - #[cfg(stage0)] - pub fn try(f: fn(*mut u8), data: *mut u8) -> *mut u8; } diff --git a/src/libcore/option.rs b/src/libcore/option.rs index eeb0c173b9b..e38cf9af010 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -169,7 +169,7 @@ pub enum Option { None, /// Some value `T` #[stable(feature = "rust1", since = "1.0.0")] - Some(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T) + Some(#[stable(feature = "rust1", since = "1.0.0")] T) } ///////////////////////////////////////////////////////////////////////////// diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 9bd6ed12798..f6703d16ad9 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -250,11 +250,11 @@ pub enum Result { /// Contains the success value #[stable(feature = "rust1", since = "1.0.0")] - Ok(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T), + Ok(#[stable(feature = "rust1", since = "1.0.0")] T), /// Contains the error value #[stable(feature = "rust1", since = "1.0.0")] - Err(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] E) + Err(#[stable(feature = "rust1", since = "1.0.0")] E) } ///////////////////////////////////////////////////////////////////////////// diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 7220690469c..051829fbafb 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -1402,13 +1402,13 @@ pub enum Entry<'a, K: 'a, V: 'a> { /// An occupied Entry. #[stable(feature = "rust1", since = "1.0.0")] Occupied( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] OccupiedEntry<'a, K, V> + #[stable(feature = "rust1", since = "1.0.0")] OccupiedEntry<'a, K, V> ), /// A vacant Entry. #[stable(feature = "rust1", since = "1.0.0")] Vacant( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] VacantEntry<'a, K, V> + #[stable(feature = "rust1", since = "1.0.0")] VacantEntry<'a, K, V> ), } diff --git a/src/libstd/env.rs b/src/libstd/env.rs index fa48efb2788..47558598ff7 100644 --- a/src/libstd/env.rs +++ b/src/libstd/env.rs @@ -218,7 +218,7 @@ pub enum VarError { /// valid unicode data. The found data is returned as a payload of this /// variant. #[stable(feature = "env", since = "1.0.0")] - NotUnicode(#[cfg_attr(not(stage0), stable(feature = "env", since = "1.0.0"))] OsString), + NotUnicode(#[stable(feature = "env", since = "1.0.0")] OsString), } #[stable(feature = "env", since = "1.0.0")] diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index abb47b69418..6bdfdcd364a 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1175,7 +1175,7 @@ pub trait Seek { pub enum SeekFrom { /// Set the offset to the provided number of bytes. #[stable(feature = "rust1", since = "1.0.0")] - Start(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] u64), + Start(#[stable(feature = "rust1", since = "1.0.0")] u64), /// Set the offset to the size of this object plus the specified number of /// bytes. @@ -1183,7 +1183,7 @@ pub enum SeekFrom { /// It is possible to seek beyond the end of an object, but it's an error to /// seek before byte 0. #[stable(feature = "rust1", since = "1.0.0")] - End(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] i64), + End(#[stable(feature = "rust1", since = "1.0.0")] i64), /// Set the offset to the current position plus the specified number of /// bytes. @@ -1191,7 +1191,7 @@ pub enum SeekFrom { /// It is possible to seek beyond the end of an object, but it's an error to /// seek before byte 0. #[stable(feature = "rust1", since = "1.0.0")] - Current(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] i64), + Current(#[stable(feature = "rust1", since = "1.0.0")] i64), } fn read_until(r: &mut R, delim: u8, buf: &mut Vec) diff --git a/src/libstd/net/addr.rs b/src/libstd/net/addr.rs index 89c51c70843..6ce6777d11e 100644 --- a/src/libstd/net/addr.rs +++ b/src/libstd/net/addr.rs @@ -32,10 +32,10 @@ pub enum SocketAddr { /// An IPv4 socket address which is a (ip, port) combination. #[stable(feature = "rust1", since = "1.0.0")] - V4(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] SocketAddrV4), + V4(#[stable(feature = "rust1", since = "1.0.0")] SocketAddrV4), /// An IPv6 socket address #[stable(feature = "rust1", since = "1.0.0")] - V6(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] SocketAddrV6), + V6(#[stable(feature = "rust1", since = "1.0.0")] SocketAddrV6), } /// An IPv4 socket address which is a (ip, port) combination. diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index 8a4d7e3e2c2..68075af61cf 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -27,10 +27,10 @@ pub enum IpAddr { /// Representation of an IPv4 address. #[stable(feature = "ip_addr", since = "1.7.0")] - V4(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.7.0"))] Ipv4Addr), + V4(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv4Addr), /// Representation of an IPv6 address. #[stable(feature = "ip_addr", since = "1.7.0")] - V6(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.7.0"))] Ipv6Addr), + V6(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv6Addr), } /// Representation of an IPv4 address. diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 3798fb76ad6..f2154a616c5 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -268,33 +268,33 @@ fn parse_two_comps(mut path: &[u8], f: fn(u8) -> bool) -> Option<(&[u8], &[u8])> pub enum Prefix<'a> { /// Prefix `\\?\`, together with the given component immediately following it. #[stable(feature = "rust1", since = "1.0.0")] - Verbatim(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr), + Verbatim(#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr), /// Prefix `\\?\UNC\`, with the "server" and "share" components following it. #[stable(feature = "rust1", since = "1.0.0")] VerbatimUNC( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr, - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr, + #[stable(feature = "rust1", since = "1.0.0")] &'a OsStr, + #[stable(feature = "rust1", since = "1.0.0")] &'a OsStr, ), /// Prefix like `\\?\C:\`, for the given drive letter #[stable(feature = "rust1", since = "1.0.0")] - VerbatimDisk(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] u8), + VerbatimDisk(#[stable(feature = "rust1", since = "1.0.0")] u8), /// Prefix `\\.\`, together with the given component immediately following it. #[stable(feature = "rust1", since = "1.0.0")] - DeviceNS(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr), + DeviceNS(#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr), /// Prefix `\\server\share`, with the given "server" and "share" components. #[stable(feature = "rust1", since = "1.0.0")] UNC( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr, - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr, + #[stable(feature = "rust1", since = "1.0.0")] &'a OsStr, + #[stable(feature = "rust1", since = "1.0.0")] &'a OsStr, ), /// Prefix `C:` for the given disk drive. #[stable(feature = "rust1", since = "1.0.0")] - Disk(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] u8), + Disk(#[stable(feature = "rust1", since = "1.0.0")] u8), } impl<'a> Prefix<'a> { @@ -537,7 +537,7 @@ pub enum Component<'a> { /// Does not occur on Unix. #[stable(feature = "rust1", since = "1.0.0")] Prefix( - #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] PrefixComponent<'a> + #[stable(feature = "rust1", since = "1.0.0")] PrefixComponent<'a> ), /// The root directory component, appears after any prefix and before anything else @@ -554,7 +554,7 @@ pub enum Component<'a> { /// A normal component, i.e. `a` and `b` in `a/b` #[stable(feature = "rust1", since = "1.0.0")] - Normal(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a OsStr), + Normal(#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr), } impl<'a> Component<'a> { diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 9487295fd1a..fadca390986 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -385,12 +385,12 @@ pub enum TrySendError { /// this is not a buffered channel, then there is no receiver available to /// acquire the data. #[stable(feature = "rust1", since = "1.0.0")] - Full(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T), + Full(#[stable(feature = "rust1", since = "1.0.0")] T), /// This channel's receiving half has disconnected, so the data could not be /// sent. The data is returned back to the callee in this case. #[stable(feature = "rust1", since = "1.0.0")] - Disconnected(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T), + Disconnected(#[stable(feature = "rust1", since = "1.0.0")] T), } enum Flavor { diff --git a/src/libstd/sys/common/poison.rs b/src/libstd/sys/common/poison.rs index d858c002755..83780a31cce 100644 --- a/src/libstd/sys/common/poison.rs +++ b/src/libstd/sys/common/poison.rs @@ -71,7 +71,7 @@ pub enum TryLockError { /// The lock could not be acquired because another thread failed while holding /// the lock. #[stable(feature = "rust1", since = "1.0.0")] - Poisoned(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] PoisonError), + Poisoned(#[stable(feature = "rust1", since = "1.0.0")] PoisonError), /// The lock could not be acquired at this time because the operation would /// otherwise block. #[stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libstd/sys/common/unwind/gcc.rs b/src/libstd/sys/common/unwind/gcc.rs index 7cf9e2a54bd..ff6a11951dc 100644 --- a/src/libstd/sys/common/unwind/gcc.rs +++ b/src/libstd/sys/common/unwind/gcc.rs @@ -41,7 +41,6 @@ pub unsafe fn panic(data: Box) -> ! { } } -#[cfg(not(stage0))] pub fn payload() -> *mut u8 { 0 as *mut u8 } diff --git a/src/libstd/sys/common/unwind/mod.rs b/src/libstd/sys/common/unwind/mod.rs index d9641e63760..527c2e63030 100644 --- a/src/libstd/sys/common/unwind/mod.rs +++ b/src/libstd/sys/common/unwind/mod.rs @@ -128,7 +128,6 @@ fn try_fn(opt_closure: *mut u8) { } } -#[cfg(not(stage0))] unsafe fn inner_try(f: fn(*mut u8), data: *mut u8) -> Result<(), Box> { PANIC_COUNT.with(|s| { @@ -156,22 +155,6 @@ unsafe fn inner_try(f: fn(*mut u8), data: *mut u8) }) } -#[cfg(stage0)] -unsafe fn inner_try(f: fn(*mut u8), data: *mut u8) - -> Result<(), Box> { - PANIC_COUNT.with(|s| { - let prev = s.get(); - s.set(0); - let ep = intrinsics::try(f, data); - s.set(prev); - if ep.is_null() { - Ok(()) - } else { - Err(imp::cleanup(ep)) - } - }) -} - /// Determines whether the current thread is unwinding because of panic. pub fn panicking() -> bool { PANIC_COUNT.with(|s| s.get() != 0) diff --git a/src/libstd/sys/common/unwind/seh.rs b/src/libstd/sys/common/unwind/seh.rs index f8d3a92b3b6..94da42f0092 100644 --- a/src/libstd/sys/common/unwind/seh.rs +++ b/src/libstd/sys/common/unwind/seh.rs @@ -65,35 +65,6 @@ pub use self::imp::*; -#[cfg(stage0)] -mod imp { - use prelude::v1::*; - use any::Any; - - pub unsafe fn panic(_data: Box) -> ! { - rtabort!("cannot unwind SEH in stage0") - } - - pub unsafe fn cleanup(_ptr: *mut u8) -> Box { - rtabort!("can't cleanup SEH in stage0") - } - - #[lang = "msvc_try_filter"] - #[linkage = "external"] - unsafe extern fn __rust_try_filter() -> i32 { - 0 - } - - #[lang = "eh_unwind_resume"] - #[unwind] - unsafe extern fn rust_eh_unwind_resume(_ptr: *mut u8) -> ! { - rtabort!("can't resume unwind SEH in stage0") - } - #[lang = "eh_personality_catch"] - unsafe extern fn rust_eh_personality_catch() {} -} - -#[cfg(not(stage0))] mod imp { use prelude::v1::*; diff --git a/src/libstd/sys/common/unwind/seh64_gnu.rs b/src/libstd/sys/common/unwind/seh64_gnu.rs index 8afef081673..57281d67ebb 100644 --- a/src/libstd/sys/common/unwind/seh64_gnu.rs +++ b/src/libstd/sys/common/unwind/seh64_gnu.rs @@ -50,7 +50,6 @@ pub unsafe fn panic(data: Box) -> ! { rtabort!("could not unwind stack"); } -#[cfg(not(stage0))] pub fn payload() -> *mut u8 { 0 as *mut u8 } diff --git a/src/snapshots.txt b/src/snapshots.txt index f64c9d36025..9b3390d7747 100644 --- a/src/snapshots.txt +++ b/src/snapshots.txt @@ -1,3 +1,12 @@ +S 2016-02-17 4d3eebf + linux-i386 5f194aa7628c0703f0fd48adc4ec7f3cc64b98c7 + linux-x86_64 d29b7607d13d64078b6324aec82926fb493f59ba + macos-i386 4c8e42dd649e247f3576bf9dfa273327b4907f9c + macos-x86_64 411a41363f922d1d93fa62ff2fedf5c35e9cccb2 + winnt-i386 0c336d794a65f8e285c121866c7d59aa2dd0d1e1 + winnt-x86_64 27e75b1bf99770b3564bcebd7f3230be01135a92 + openbsd-x86_64 ac957c6b84de2bd67f01df085d9ea515f96e22f3 + S 2015-12-18 3391630 bitrig-x86_64 6476e1562df02389b55553b4c88b1f4fd121cd40 freebsd-i386 7e624c50494402e1feb14c743d659fbd71b448f5 -- GitLab