Skip to content

Commit

Permalink
Auto merge of #52949 - Mark-Simulacrum:snap, r=alexcrichton
Browse files Browse the repository at this point in the history
Switch to bootstrapping from 1.29 beta

r? @alexcrichton
  • Loading branch information
bors committed Aug 2, 2018
2 parents 5e92bf2 + 683a3db commit 03da14b
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 277 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use Build;
use config::Config;

// The version number
pub const CFG_RELEASE_NUM: &str = "1.29.0";
pub const CFG_RELEASE_NUM: &str = "1.30.0";

pub struct GitInfo {
inner: Option<Info>,
Expand Down
5 changes: 1 addition & 4 deletions src/liballoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ mod boxed {
#[cfg(test)]
mod boxed_test;
pub mod collections;
#[cfg(any(
all(stage0, target_has_atomic = "ptr"),
all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas")
))]
#[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
pub mod sync;
pub mod rc;
pub mod raw_vec;
Expand Down
15 changes: 3 additions & 12 deletions src/liballoc/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@

pub use core::task::*;

#[cfg(any(
all(stage0, target_has_atomic = "ptr"),
all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas")
))]
#[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
pub use self::if_arc::*;

#[cfg(any(
all(stage0, target_has_atomic = "ptr"),
all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas")
))]
#[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
mod if_arc {
use super::*;
use core::marker::PhantomData;
Expand Down Expand Up @@ -53,10 +47,7 @@ mod if_arc {
}
}

#[cfg(any(
all(stage0, target_has_atomic = "ptr"),
all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas")
))]
#[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
struct ArcWrapped<T>(PhantomData<T>);

unsafe impl<T: Wake + 'static> UnsafeWake for ArcWrapped<T> {
Expand Down
6 changes: 1 addition & 5 deletions src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ use usize;
use ptr::{self, NonNull};
use num::NonZeroUsize;

#[unstable(feature = "alloc_internals", issue = "0")]
#[cfg(stage0)]
pub type Opaque = u8;

/// Represents the combination of a starting address and
/// a total capacity of the returned block.
#[unstable(feature = "allocator_api", issue = "32838")]
Expand All @@ -48,7 +44,7 @@ fn size_align<T>() -> (usize, usize) {
/// use specific allocators with looser requirements.)
#[stable(feature = "alloc_layout", since = "1.28.0")]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(not(stage0), lang = "alloc_layout")]
#[lang = "alloc_layout"]
pub struct Layout {
// size of the requested block of memory, measured in bytes.
size_: usize,
Expand Down
2 changes: 0 additions & 2 deletions src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1087,11 +1087,9 @@ extern "rust-intrinsic" {

/// Perform a volatile load from the `src` pointer
/// The pointer is not required to be aligned.
#[cfg(not(stage0))]
pub fn unaligned_volatile_load<T>(src: *const T) -> T;
/// Perform a volatile store to the `dst` pointer.
/// The pointer is not required to be aligned.
#[cfg(not(stage0))]
pub fn unaligned_volatile_store<T>(dst: *mut T, val: T);

/// Returns the square root of an `f32`
Expand Down
195 changes: 0 additions & 195 deletions src/libcore/manually_drop_stage0.rs

This file was deleted.

7 changes: 0 additions & 7 deletions src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,18 +953,13 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
/// }
/// }
/// ```
#[cfg(not(stage0))]
#[stable(feature = "manually_drop", since = "1.20.0")]
#[lang = "manually_drop"]
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ManuallyDrop<T> {
value: T,
}

#[cfg(stage0)]
include!("manually_drop_stage0.rs");

#[cfg(not(stage0))]
impl<T> ManuallyDrop<T> {
/// Wrap a value to be manually dropped.
///
Expand Down Expand Up @@ -1010,7 +1005,6 @@ impl<T> ManuallyDrop<T> {
}
}

#[cfg(not(stage0))]
#[stable(feature = "manually_drop", since = "1.20.0")]
impl<T> Deref for ManuallyDrop<T> {
type Target = T;
Expand All @@ -1020,7 +1014,6 @@ impl<T> Deref for ManuallyDrop<T> {
}
}

#[cfg(not(stage0))]
#[stable(feature = "manually_drop", since = "1.20.0")]
impl<T> DerefMut for ManuallyDrop<T> {
#[inline]
Expand Down
Loading

0 comments on commit 03da14b

Please sign in to comment.