Skip to content

Commit 664ede8

Browse files
committed
Auto merge of #56536 - alexcrichton:update-master, r=Mark-Simulacrum
Bump to 1.33.0 * Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations
2 parents 97a0bd6 + cf47a19 commit 664ede8

File tree

31 files changed

+47
-63
lines changed

31 files changed

+47
-63
lines changed

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.32.0";
27+
pub const CFG_RELEASE_NUM: &str = "1.33.0";
2828

2929
pub struct GitInfo {
3030
inner: Option<Info>,

src/liballoc/tests/str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,19 +1514,19 @@ fn contains_weird_cases() {
15141514

15151515
#[test]
15161516
fn trim_ws() {
1517-
assert_eq!(" \t a \t ".trim_left_matches(|c: char| c.is_whitespace()),
1517+
assert_eq!(" \t a \t ".trim_start_matches(|c: char| c.is_whitespace()),
15181518
"a \t ");
1519-
assert_eq!(" \t a \t ".trim_right_matches(|c: char| c.is_whitespace()),
1519+
assert_eq!(" \t a \t ".trim_end_matches(|c: char| c.is_whitespace()),
15201520
" \t a");
15211521
assert_eq!(" \t a \t ".trim_start_matches(|c: char| c.is_whitespace()),
15221522
"a \t ");
15231523
assert_eq!(" \t a \t ".trim_end_matches(|c: char| c.is_whitespace()),
15241524
" \t a");
15251525
assert_eq!(" \t a \t ".trim_matches(|c: char| c.is_whitespace()),
15261526
"a");
1527-
assert_eq!(" \t \t ".trim_left_matches(|c: char| c.is_whitespace()),
1527+
assert_eq!(" \t \t ".trim_start_matches(|c: char| c.is_whitespace()),
15281528
"");
1529-
assert_eq!(" \t \t ".trim_right_matches(|c: char| c.is_whitespace()),
1529+
assert_eq!(" \t \t ".trim_end_matches(|c: char| c.is_whitespace()),
15301530
"");
15311531
assert_eq!(" \t \t ".trim_start_matches(|c: char| c.is_whitespace()),
15321532
"");

src/libcore/ffi.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![stable(feature = "", since = "1.30.0")]
22

33
#![allow(non_camel_case_types)]
4-
#![cfg_attr(stage0, allow(dead_code))]
54

65
//! Utilities related to FFI bindings.
76
@@ -123,7 +122,6 @@ struct VaListImpl {
123122
all supported platforms",
124123
issue = "27745")]
125124
#[repr(transparent)]
126-
#[cfg(not(stage0))]
127125
pub struct VaList<'a>(&'a mut VaListImpl);
128126

129127
// The VaArgSafe trait needs to be used in public interfaces, however, the trait
@@ -173,7 +171,6 @@ impl<T> sealed_trait::VaArgSafe for *mut T {}
173171
issue = "27745")]
174172
impl<T> sealed_trait::VaArgSafe for *const T {}
175173

176-
#[cfg(not(stage0))]
177174
impl<'a> VaList<'a> {
178175
/// Advance to the next arg.
179176
#[unstable(feature = "c_variadic",
@@ -208,7 +205,6 @@ impl<'a> VaList<'a> {
208205
}
209206
}
210207

211-
#[cfg(not(stage0))]
212208
extern "rust-intrinsic" {
213209
/// Destroy the arglist `ap` after initialization with `va_start` or
214210
/// `va_copy`.

src/libcore/intrinsics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,6 @@ extern "rust-intrinsic" {
718718
pub fn uninit<T>() -> T;
719719

720720
/// Moves a value out of scope without running drop glue.
721-
#[cfg(not(stage0))]
722721
pub fn forget<T: ?Sized>(_: T);
723722

724723
/// Reinterprets the bits of a value of one type as another type.
@@ -1476,14 +1475,12 @@ extern "rust-intrinsic" {
14761475
/// The stabilized versions of this intrinsic are available on the integer
14771476
/// primitives via the `rotate_left` method. For example,
14781477
/// [`std::u32::rotate_left`](../../std/primitive.u32.html#method.rotate_left)
1479-
#[cfg(not(stage0))]
14801478
pub fn rotate_left<T>(x: T, y: T) -> T;
14811479

14821480
/// Performs rotate right.
14831481
/// The stabilized versions of this intrinsic are available on the integer
14841482
/// primitives via the `rotate_right` method. For example,
14851483
/// [`std::u32::rotate_right`](../../std/primitive.u32.html#method.rotate_right)
1486-
#[cfg(not(stage0))]
14871484
pub fn rotate_right<T>(x: T, y: T) -> T;
14881485

14891486
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.

src/libcore/mem.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ pub fn forget<T>(t: T) {
149149
///
150150
/// [`forget`]: fn.forget.html
151151
#[inline]
152-
#[cfg(not(stage0))]
153152
#[unstable(feature = "forget_unsized", issue = "0")]
154153
pub fn forget_unsized<T: ?Sized>(t: T) {
155154
unsafe { intrinsics::forget(t) }

src/libcore/num/mod.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,12 +2330,7 @@ assert_eq!(n.rotate_left(", $rot, "), m);
23302330
#[rustc_const_unstable(feature = "const_int_rotate")]
23312331
#[inline]
23322332
pub const fn rotate_left(self, n: u32) -> Self {
2333-
#[cfg(not(stage0))] {
2334-
unsafe { intrinsics::rotate_left(self, n as $SelfT) }
2335-
}
2336-
#[cfg(stage0)] {
2337-
(self << (n % $BITS)) | (self >> (($BITS - (n % $BITS)) % $BITS))
2338-
}
2333+
unsafe { intrinsics::rotate_left(self, n as $SelfT) }
23392334
}
23402335
}
23412336

@@ -2360,12 +2355,7 @@ assert_eq!(n.rotate_right(", $rot, "), m);
23602355
#[rustc_const_unstable(feature = "const_int_rotate")]
23612356
#[inline]
23622357
pub const fn rotate_right(self, n: u32) -> Self {
2363-
#[cfg(not(stage0))] {
2364-
unsafe { intrinsics::rotate_right(self, n as $SelfT) }
2365-
}
2366-
#[cfg(stage0)] {
2367-
(self >> (n % $BITS)) | (self << (($BITS - (n % $BITS)) % $BITS))
2368-
}
2358+
unsafe { intrinsics::rotate_right(self, n as $SelfT) }
23692359
}
23702360
}
23712361

src/libcore/ops/unsize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
9393
/// {}
9494
/// ```
9595
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
96-
#[cfg_attr(not(stage0), lang = "dispatch_from_dyn")]
96+
#[lang = "dispatch_from_dyn"]
9797
pub trait DispatchFromDyn<T> {
9898
// Empty.
9999
}

src/libcore/sync/atomic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ atomic_int! {
19401940
8,
19411941
u64 AtomicU64 ATOMIC_U64_INIT
19421942
}
1943-
#[cfg(all(not(stage0), target_has_atomic = "128"))]
1943+
#[cfg(target_has_atomic = "128")]
19441944
atomic_int! {
19451945
unstable(feature = "integer_atomics", issue = "32976"),
19461946
unstable(feature = "integer_atomics", issue = "32976"),
@@ -1954,7 +1954,7 @@ atomic_int! {
19541954
16,
19551955
i128 AtomicI128 ATOMIC_I128_INIT
19561956
}
1957-
#[cfg(all(not(stage0), target_has_atomic = "128"))]
1957+
#[cfg(target_has_atomic = "128")]
19581958
atomic_int! {
19591959
unstable(feature = "integer_atomics", issue = "32976"),
19601960
unstable(feature = "integer_atomics", issue = "32976"),

src/librustc/lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ impl BuiltinLintDiagnostics {
463463
Ok(ref s) => {
464464
// FIXME(Manishearth) ideally the emitting code
465465
// can tell us whether or not this is global
466-
let opt_colon = if s.trim_left().starts_with("::") {
466+
let opt_colon = if s.trim_start().starts_with("::") {
467467
""
468468
} else {
469469
"::"

src/librustc_errors/emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ impl EmitterWriter {
12621262

12631263
// Do not underline the leading...
12641264
let start = part.snippet.len()
1265-
.saturating_sub(part.snippet.trim_left().len());
1265+
.saturating_sub(part.snippet.trim_start().len());
12661266
// ...or trailing spaces. Account for substitutions containing unicode
12671267
// characters.
12681268
let sub_len = part.snippet.trim().chars().fold(0, |acc, ch| {

0 commit comments

Comments
 (0)