Skip to content

Commit f861b6e

Browse files
committed
Auto merge of #44154 - alexcrichton:bump-bootstrap, r=Mark-Simulacrum
Bump to 1.22.0 and update boostrap compiler Time to get a new nightly!
2 parents ed532c0 + 271c63c commit f861b6e

File tree

19 files changed

+72
-271
lines changed

19 files changed

+72
-271
lines changed

src/Cargo.lock

Lines changed: 57 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ debug-assertions = false
5656
debug = false
5757
debug-assertions = false
5858

59-
[replace]
60-
"https://github.com/rust-lang/cargo#0.22.0" = { path = "tools/cargo" }
59+
[patch.'https://github.com/rust-lang/cargo']
60+
cargo = { path = "tools/cargo" }

src/bootstrap/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use Build;
2424
use config::Config;
2525

2626
// The version number
27-
pub const CFG_RELEASE_NUM: &str = "1.21.0";
27+
pub const CFG_RELEASE_NUM: &str = "1.22.0";
2828

2929
// An optional number to put after the label, e.g. '.2' -> '-beta.2'
3030
// Be sure to make this starts with a dot to conform to semver pre-release

src/bootstrap/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub fn symlink_dir(src: &Path, dest: &Path) -> io::Result<()> {
279279
ptr::null_mut());
280280

281281
let mut data = [0u8; MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
282-
let mut db = data.as_mut_ptr()
282+
let db = data.as_mut_ptr()
283283
as *mut REPARSE_MOUNTPOINT_DATA_BUFFER;
284284
let buf = &mut (*db).ReparseTarget as *mut _;
285285
let mut i = 0;

src/libcore/array.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,6 @@ macro_rules! array_impls {
123123
}
124124
}
125125

126-
#[stable(feature = "rust1", since = "1.0.0")]
127-
#[cfg(stage0)]
128-
impl<T:Copy> Clone for [T; $N] {
129-
fn clone(&self) -> [T; $N] {
130-
*self
131-
}
132-
}
133-
134126
#[stable(feature = "rust1", since = "1.0.0")]
135127
impl<T: Hash> Hash for [T; $N] {
136128
fn hash<H: hash::Hasher>(&self, state: &mut H) {

src/libcore/clone.rs

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
/// }
8989
/// ```
9090
#[stable(feature = "rust1", since = "1.0.0")]
91-
#[cfg_attr(not(stage0), lang = "clone")]
91+
#[lang = "clone"]
9292
pub trait Clone : Sized {
9393
/// Returns a copy of the value.
9494
///
@@ -130,45 +130,3 @@ pub struct AssertParamIsClone<T: Clone + ?Sized> { _field: ::marker::PhantomData
130130
reason = "deriving hack, should not be public",
131131
issue = "0")]
132132
pub struct AssertParamIsCopy<T: Copy + ?Sized> { _field: ::marker::PhantomData<T> }
133-
134-
#[stable(feature = "rust1", since = "1.0.0")]
135-
#[cfg(stage0)]
136-
impl<'a, T: ?Sized> Clone for &'a T {
137-
/// Returns a shallow copy of the reference.
138-
#[inline]
139-
fn clone(&self) -> &'a T { *self }
140-
}
141-
142-
macro_rules! clone_impl {
143-
($t:ty) => {
144-
#[stable(feature = "rust1", since = "1.0.0")]
145-
#[cfg(stage0)]
146-
impl Clone for $t {
147-
/// Returns a deep copy of the value.
148-
#[inline]
149-
fn clone(&self) -> $t { *self }
150-
}
151-
}
152-
}
153-
154-
clone_impl! { isize }
155-
clone_impl! { i8 }
156-
clone_impl! { i16 }
157-
clone_impl! { i32 }
158-
clone_impl! { i64 }
159-
clone_impl! { i128 }
160-
161-
clone_impl! { usize }
162-
clone_impl! { u8 }
163-
clone_impl! { u16 }
164-
clone_impl! { u32 }
165-
clone_impl! { u64 }
166-
clone_impl! { u128 }
167-
168-
clone_impl! { f32 }
169-
clone_impl! { f64 }
170-
171-
clone_impl! { ! }
172-
clone_impl! { () }
173-
clone_impl! { bool }
174-
clone_impl! { char }

src/libcore/macros.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[macro_export]
12-
// This stability attribute is totally useless.
13-
#[stable(feature = "rust1", since = "1.0.0")]
14-
#[cfg(stage0)]
15-
macro_rules! __rust_unstable_column {
16-
() => {
17-
column!()
18-
}
19-
}
20-
2111
/// Entry point of thread panic, for details, see std::macros
2212
#[macro_export]
2313
#[allow_internal_unstable]

src/libcore/mem.rs

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,6 @@ pub fn forget<T>(t: T) {
188188
/// ```
189189
#[inline]
190190
#[stable(feature = "rust1", since = "1.0.0")]
191-
#[cfg(stage0)]
192-
pub fn size_of<T>() -> usize {
193-
unsafe { intrinsics::size_of::<T>() }
194-
}
195-
196-
/// Returns the size of a type in bytes.
197-
///
198-
/// More specifically, this is the offset in bytes between successive
199-
/// items of the same type, including alignment padding.
200-
///
201-
/// # Examples
202-
///
203-
/// ```
204-
/// use std::mem;
205-
///
206-
/// assert_eq!(4, mem::size_of::<i32>());
207-
/// ```
208-
#[inline]
209-
#[stable(feature = "rust1", since = "1.0.0")]
210-
#[cfg(not(stage0))]
211191
pub const fn size_of<T>() -> usize {
212192
unsafe { intrinsics::size_of::<T>() }
213193
}
@@ -299,29 +279,6 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
299279
/// ```
300280
#[inline]
301281
#[stable(feature = "rust1", since = "1.0.0")]
302-
#[cfg(stage0)]
303-
pub fn align_of<T>() -> usize {
304-
unsafe { intrinsics::min_align_of::<T>() }
305-
}
306-
307-
/// Returns the [ABI]-required minimum alignment of a type.
308-
///
309-
/// Every reference to a value of the type `T` must be a multiple of this number.
310-
///
311-
/// This is the alignment used for struct fields. It may be smaller than the preferred alignment.
312-
///
313-
/// [ABI]: https://en.wikipedia.org/wiki/Application_binary_interface
314-
///
315-
/// # Examples
316-
///
317-
/// ```
318-
/// use std::mem;
319-
///
320-
/// assert_eq!(4, mem::align_of::<i32>());
321-
/// ```
322-
#[inline]
323-
#[stable(feature = "rust1", since = "1.0.0")]
324-
#[cfg(not(stage0))]
325282
pub const fn align_of<T>() -> usize {
326283
unsafe { intrinsics::min_align_of::<T>() }
327284
}

src/libcore/num/f32.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
//! Operations and constants for 32-bits floats (`f32` type)
1212
13-
#![cfg_attr(stage0, allow(overflowing_literals))]
14-
1513
#![stable(feature = "rust1", since = "1.0.0")]
1614

1715
use intrinsics;

src/libcore/ptr.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -875,36 +875,9 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
875875
a == b
876876
}
877877

878-
#[stable(feature = "rust1", since = "1.0.0")]
879-
#[cfg(stage0)]
880-
impl<T: ?Sized> Clone for *const T {
881-
#[inline]
882-
fn clone(&self) -> *const T {
883-
*self
884-
}
885-
}
886-
887-
#[stable(feature = "rust1", since = "1.0.0")]
888-
#[cfg(stage0)]
889-
impl<T: ?Sized> Clone for *mut T {
890-
#[inline]
891-
fn clone(&self) -> *mut T {
892-
*self
893-
}
894-
}
895-
896878
// Impls for function pointers
897879
macro_rules! fnptr_impls_safety_abi {
898880
($FnTy: ty, $($Arg: ident),*) => {
899-
#[stable(feature = "rust1", since = "1.0.0")]
900-
#[cfg(stage0)]
901-
impl<Ret, $($Arg),*> Clone for $FnTy {
902-
#[inline]
903-
fn clone(&self) -> Self {
904-
*self
905-
}
906-
}
907-
908881
#[stable(feature = "fnptr_impls", since = "1.4.0")]
909882
impl<Ret, $($Arg),*> PartialEq for $FnTy {
910883
#[inline]

0 commit comments

Comments
 (0)