Skip to content

Commit daa53a5

Browse files
committed
Auto merge of #57694 - pietroalbini:revert-beta-on-master, r=pietroalbini
Revert "Auto merge of #57670 - rust-lang:beta-next, r=Mark-Simulacrum" For whatever reason bors merged this in master `:/` r? @ghost
2 parents 6599946 + d158ef6 commit daa53a5

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

src/ci/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343
#
4444
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
4545
# either automatically or manually.
46-
export RUST_RELEASE_CHANNEL=beta
46+
export RUST_RELEASE_CHANNEL=nightly
4747
if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
4848
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
4949
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"

src/libcore/num/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st
4747
#[stable(feature = "nonzero", since = "1.28.0")]
4848
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
4949
#[repr(transparent)]
50-
// FIXME: the rustc_layout_scalar_valid_range_start attr is marked as unused
51-
#[cfg_attr(stage0, allow(unused_attributes))]
5250
#[rustc_layout_scalar_valid_range_start(1)]
5351
pub struct $Ty($Int);
5452
}
@@ -70,8 +68,6 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st
7068
#[inline]
7169
pub fn new(n: $Int) -> Option<Self> {
7270
if n != 0 {
73-
// FIXME: this unsafe block is actually needed
74-
#[cfg_attr(stage0, allow(unused_unsafe))]
7571
Some(unsafe { $Ty(n) })
7672
} else {
7773
None

src/libcore/ptr.rs

-16
Original file line numberDiff line numberDiff line change
@@ -2718,8 +2718,6 @@ impl<T: ?Sized> PartialOrd for *mut T {
27182718
(if you also use #[may_dangle]), Send, and/or Sync")]
27192719
#[doc(hidden)]
27202720
#[repr(transparent)]
2721-
// FIXME: the rustc_layout_scalar_valid_range_start attr is marked as unused
2722-
#[cfg_attr(stage0, allow(unused_attributes))]
27232721
#[rustc_layout_scalar_valid_range_start(1)]
27242722
pub struct Unique<T: ?Sized> {
27252723
pointer: *const T,
@@ -2785,8 +2783,6 @@ impl<T: ?Sized> Unique<T> {
27852783
/// Creates a new `Unique` if `ptr` is non-null.
27862784
pub fn new(ptr: *mut T) -> Option<Self> {
27872785
if !ptr.is_null() {
2788-
// FIXME: this unsafe block is actually needed
2789-
#[cfg_attr(stage0, allow(unused_unsafe))]
27902786
Some(unsafe { Unique { pointer: ptr as _, _marker: PhantomData } })
27912787
} else {
27922788
None
@@ -2843,26 +2839,20 @@ impl<T: ?Sized> fmt::Pointer for Unique<T> {
28432839
#[unstable(feature = "ptr_internals", issue = "0")]
28442840
impl<'a, T: ?Sized> From<&'a mut T> for Unique<T> {
28452841
fn from(reference: &'a mut T) -> Self {
2846-
// FIXME: this unsafe block is actually needed
2847-
#[cfg_attr(stage0, allow(unused_unsafe))]
28482842
unsafe { Unique { pointer: reference as *mut T, _marker: PhantomData } }
28492843
}
28502844
}
28512845

28522846
#[unstable(feature = "ptr_internals", issue = "0")]
28532847
impl<'a, T: ?Sized> From<&'a T> for Unique<T> {
28542848
fn from(reference: &'a T) -> Self {
2855-
// FIXME: this unsafe block is actually needed
2856-
#[cfg_attr(stage0, allow(unused_unsafe))]
28572849
unsafe { Unique { pointer: reference as *const T, _marker: PhantomData } }
28582850
}
28592851
}
28602852

28612853
#[unstable(feature = "ptr_internals", issue = "0")]
28622854
impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> {
28632855
fn from(p: NonNull<T>) -> Self {
2864-
// FIXME: this unsafe block is actually needed
2865-
#[cfg_attr(stage0, allow(unused_unsafe))]
28662856
unsafe { Unique { pointer: p.pointer, _marker: PhantomData } }
28672857
}
28682858
}
@@ -3052,8 +3042,6 @@ impl<T: ?Sized> hash::Hash for NonNull<T> {
30523042
impl<T: ?Sized> From<Unique<T>> for NonNull<T> {
30533043
#[inline]
30543044
fn from(unique: Unique<T>) -> Self {
3055-
// FIXME: this unsafe block is actually needed
3056-
#[cfg_attr(stage0, allow(unused_unsafe))]
30573045
unsafe { NonNull { pointer: unique.pointer } }
30583046
}
30593047
}
@@ -3062,8 +3050,6 @@ impl<T: ?Sized> From<Unique<T>> for NonNull<T> {
30623050
impl<'a, T: ?Sized> From<&'a mut T> for NonNull<T> {
30633051
#[inline]
30643052
fn from(reference: &'a mut T) -> Self {
3065-
// FIXME: this unsafe block is actually needed
3066-
#[cfg_attr(stage0, allow(unused_unsafe))]
30673053
unsafe { NonNull { pointer: reference as *mut T } }
30683054
}
30693055
}
@@ -3072,8 +3058,6 @@ impl<'a, T: ?Sized> From<&'a mut T> for NonNull<T> {
30723058
impl<'a, T: ?Sized> From<&'a T> for NonNull<T> {
30733059
#[inline]
30743060
fn from(reference: &'a T) -> Self {
3075-
// FIXME: this unsafe block is actually needed
3076-
#[cfg_attr(stage0, allow(unused_unsafe))]
30773061
unsafe { NonNull { pointer: reference as *const T } }
30783062
}
30793063
}

src/stage0.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# source tarball for a stable release you'll likely see `1.x.0` for rustc and
1313
# `0.x.0` for Cargo where they were released on `date`.
1414

15-
date: 2019-01-16
16-
rustc: 1.32.0
17-
cargo: 0.33.0
15+
date: 2019-01-04
16+
rustc: beta
17+
cargo: beta
1818

1919
# When making a stable release the process currently looks like:
2020
#
@@ -34,4 +34,4 @@ cargo: 0.33.0
3434
# looking at a beta source tarball and it's uncommented we'll shortly comment it
3535
# out.
3636

37-
dev: 1
37+
#dev: 1

0 commit comments

Comments
 (0)