Skip to content

Commit c3942e7

Browse files
committed
Auto merge of #46288 - alexcrichton:bump-bootstrap, r=Mark-Simulacrum
Bump to 1.24.0 * Update the in-tree version number * Update the bootstrap compiler * Remove `cfg(stage0)` annotations * Update crate dependencies * Update Cargo itself
2 parents b15a8ea + a850bb0 commit c3942e7

File tree

12 files changed

+65
-288
lines changed

12 files changed

+65
-288
lines changed

src/Cargo.lock

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

src/bootstrap/bin/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fn main() {
175175
if let Ok(s) = env::var("RUSTC_CODEGEN_UNITS") {
176176
cmd.arg("-C").arg(format!("codegen-units={}", s));
177177
}
178-
if stage != "0" && env::var("RUSTC_THINLTO").is_ok() {
178+
if env::var("RUSTC_THINLTO").is_ok() {
179179
cmd.arg("-Ccodegen-units=16").arg("-Zthinlto");
180180
}
181181

src/liballoc/boxed.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ impl<T: ?Sized> Box<T> {
300300
issue = "27730")]
301301
#[inline]
302302
pub unsafe fn from_unique(u: Unique<T>) -> Self {
303-
#[cfg(stage0)]
304-
return mem::transmute(u);
305-
#[cfg(not(stage0))]
306-
return Box(u);
303+
Box(u)
307304
}
308305

309306
/// Consumes the `Box`, returning the wrapped raw pointer.
@@ -365,14 +362,9 @@ impl<T: ?Sized> Box<T> {
365362
issue = "27730")]
366363
#[inline]
367364
pub fn into_unique(b: Box<T>) -> Unique<T> {
368-
#[cfg(stage0)]
369-
return unsafe { mem::transmute(b) };
370-
#[cfg(not(stage0))]
371-
return {
372-
let unique = b.0;
373-
mem::forget(b);
374-
unique
375-
};
365+
let unique = b.0;
366+
mem::forget(b);
367+
unique
376368
}
377369

378370
/// Consumes and leaks the `Box`, returning a mutable reference,

src/liballoc/slice.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,11 +1626,8 @@ impl<T> [T] {
16261626
}
16271627
}
16281628

1629-
// FIXME(LukasKalbertodt): the `not(stage0)` constraint can be removed in the
1630-
// future once the stage0 compiler is new enough to know about the `slice_u8`
1631-
// lang item.
16321629
#[lang = "slice_u8"]
1633-
#[cfg(all(not(stage0), not(test)))]
1630+
#[cfg(not(test))]
16341631
impl [u8] {
16351632
/// Checks if all bytes in this slice are within the ASCII range.
16361633
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]

src/liballoc/str.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,6 @@ impl str {
21102110
/// [`to_uppercase`]: #method.to_uppercase
21112111
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]
21122112
#[inline]
2113-
#[cfg(not(stage0))]
21142113
pub fn to_ascii_uppercase(&self) -> String {
21152114
let mut bytes = self.as_bytes().to_vec();
21162115
bytes.make_ascii_uppercase();
@@ -2141,7 +2140,6 @@ impl str {
21412140
/// [`to_lowercase`]: #method.to_lowercase
21422141
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]
21432142
#[inline]
2144-
#[cfg(not(stage0))]
21452143
pub fn to_ascii_lowercase(&self) -> String {
21462144
let mut bytes = self.as_bytes().to_vec();
21472145
bytes.make_ascii_lowercase();
@@ -2163,7 +2161,6 @@ impl str {
21632161
/// ```
21642162
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]
21652163
#[inline]
2166-
#[cfg(not(stage0))]
21672164
pub fn eq_ignore_ascii_case(&self, other: &str) -> bool {
21682165
self.as_bytes().eq_ignore_ascii_case(other.as_bytes())
21692166
}
@@ -2178,7 +2175,6 @@ impl str {
21782175
///
21792176
/// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
21802177
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]
2181-
#[cfg(not(stage0))]
21822178
pub fn make_ascii_uppercase(&mut self) {
21832179
let me = unsafe { self.as_bytes_mut() };
21842180
me.make_ascii_uppercase()
@@ -2194,7 +2190,6 @@ impl str {
21942190
///
21952191
/// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
21962192
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")]
2197-
#[cfg(not(stage0))]
21982193
pub fn make_ascii_lowercase(&mut self) {
21992194
let me = unsafe { self.as_bytes_mut() };
22002195
me.make_ascii_lowercase()

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
#![feature(unboxed_closures)]
9191
#![feature(untagged_unions)]
9292
#![feature(unwind_attributes)]
93-
#![cfg_attr(not(stage0), feature(doc_spotlight))]
93+
#![feature(doc_spotlight)]
9494

9595
#[prelude_import]
9696
#[allow(unused)]

src/libcore/marker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use hash::Hasher;
3939
/// [arc]: ../../std/sync/struct.Arc.html
4040
/// [ub]: ../../reference/behavior-considered-undefined.html
4141
#[stable(feature = "rust1", since = "1.0.0")]
42-
#[cfg_attr(stage0, lang = "send")]
4342
#[rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely"]
4443
pub unsafe trait Send {
4544
// empty.

src/librustc/lint/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ use hir::def_id::{CrateNum, LOCAL_CRATE};
3838
use hir::intravisit::{self, FnKind};
3939
use hir;
4040
use session::Session;
41-
#[cfg(stage0)]
42-
use std::ascii::AsciiExt;
4341
use std::hash;
4442
use syntax::ast;
4543
use syntax::codemap::MultiSpan;

src/librustdoc/clean/cfg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use std::mem;
1616
use std::fmt::{self, Write};
1717
use std::ops;
18-
#[cfg(stage0)]
19-
use std::ascii::AsciiExt;
2018

2119
use syntax::symbol::Symbol;
2220
use syntax::ast::{MetaItem, MetaItemKind, NestedMetaItem, NestedMetaItemKind, LitKind};

src/librustdoc/html/render.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
//! both occur before the crate is rendered.
3535
pub use self::ExternalLocation::*;
3636

37-
#[cfg(stage0)]
38-
use std::ascii::AsciiExt;
3937
use std::borrow::Cow;
4038
use std::cell::RefCell;
4139
use std::cmp::Ordering;

0 commit comments

Comments
 (0)