Skip to content

Commit 2827db2

Browse files
committed
Auto merge of #87622 - pietroalbini:bump-bootstrap, r=Mark-Simulacrum
Bump bootstrap compiler to 1.55 Changing the cfgs for stdarch is missing, but my understanding is that we don't need to do it as part of this PR? r? `@Mark-Simulacrum`
2 parents 4e21ef2 + 24f9de5 commit 2827db2

File tree

11 files changed

+6
-24
lines changed

11 files changed

+6
-24
lines changed

compiler/rustc_macros/src/symbols.rs

-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) {
207207
#keyword_stream
208208
}
209209

210-
#[cfg_attr(bootstrap, allow(rustc::default_hash_types))]
211210
#[allow(non_upper_case_globals)]
212211
#[doc(hidden)]
213212
pub mod sym_generated {

library/core/src/array/equality.rs

-5
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ impl<T: PartialEq<Other>, Other, const N: usize> SpecArrayEq<Other, N> for T {
125125
}
126126

127127
impl<T: PartialEq<U> + IsRawEqComparable<U>, U, const N: usize> SpecArrayEq<U, N> for T {
128-
#[cfg(bootstrap)]
129-
fn spec_eq(a: &[T; N], b: &[U; N]) -> bool {
130-
a[..] == b[..]
131-
}
132-
#[cfg(not(bootstrap))]
133128
fn spec_eq(a: &[T; N], b: &[U; N]) -> bool {
134129
// SAFETY: This is why `IsRawEqComparable` is an `unsafe trait`.
135130
unsafe {

library/core/src/default.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ pub fn default<T: Default>() -> T {
161161
}
162162

163163
/// Derive macro generating an impl of the trait `Default`.
164-
#[cfg_attr(not(bootstrap), rustc_builtin_macro(Default, attributes(default)))]
165-
#[cfg_attr(bootstrap, rustc_builtin_macro)]
164+
#[rustc_builtin_macro(Default, attributes(default))]
166165
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
167166
#[allow_internal_unstable(core_intrinsics)]
168167
pub macro Default($item:item) {

library/core/src/intrinsics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,6 @@ extern "rust-intrinsic" {
19311931
///
19321932
/// (The implementation is allowed to branch on the results of comparisons,
19331933
/// which is UB if any of their inputs are `undef`.)
1934-
#[cfg(not(bootstrap))]
19351934
#[rustc_const_unstable(feature = "const_intrinsic_raw_eq", issue = "none")]
19361935
pub fn raw_eq<T>(a: &T, b: &T) -> bool;
19371936
}

library/core/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@
170170
#![feature(no_niche)] // rust-lang/rust#68303
171171
#![feature(no_coverage)] // rust-lang/rust#84605
172172
#![deny(unsafe_op_in_unsafe_fn)]
173-
#![cfg_attr(bootstrap, deny(or_patterns_back_compat))]
174-
#![cfg_attr(not(bootstrap), deny(rust_2021_incompatible_or_patterns))]
173+
#![deny(rust_2021_incompatible_or_patterns)]
175174

176175
// allow using `core::` in intra-doc links
177176
#[allow(unused_extern_crates)]

library/core/src/macros/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#[doc = include_str!("panic.md")]
22
#[macro_export]
3-
#[cfg_attr(bootstrap, rustc_builtin_macro = "core_panic")]
4-
#[cfg_attr(not(bootstrap), rustc_builtin_macro(core_panic))]
3+
#[rustc_builtin_macro(core_panic)]
54
#[allow_internal_unstable(edition_panic)]
65
#[stable(feature = "core", since = "1.6.0")]
76
#[rustc_diagnostic_item = "core_panic_macro"]

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<T> [T] {
9595
/// let a = [1, 2, 3];
9696
/// assert_eq!(a.len(), 3);
9797
/// ```
98-
#[cfg_attr(not(bootstrap), lang = "slice_len_fn")]
98+
#[lang = "slice_len_fn"]
9999
#[stable(feature = "rust1", since = "1.0.0")]
100100
#[rustc_const_stable(feature = "const_slice_len", since = "1.39.0")]
101101
#[inline]

library/std/src/macros.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
77
#[doc = include_str!("../../core/src/macros/panic.md")]
88
#[macro_export]
9-
#[cfg_attr(bootstrap, rustc_builtin_macro = "std_panic")]
10-
#[cfg_attr(not(bootstrap), rustc_builtin_macro(std_panic))]
9+
#[rustc_builtin_macro(std_panic)]
1110
#[stable(feature = "rust1", since = "1.0.0")]
1211
#[allow_internal_unstable(edition_panic)]
1312
#[cfg_attr(not(test), rustc_diagnostic_item = "std_panic_macro")]

library/std/src/sys/unix/weak.rs

-5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use crate::marker;
2626
use crate::mem;
2727
use crate::sync::atomic::{self, AtomicUsize, Ordering};
2828

29-
// Temporary null documentation to work around #57569 until the fix is beta
30-
#[cfg_attr(bootstrap, doc = "")]
3129
pub(crate) macro weak {
3230
(fn $name:ident($($t:ty),*) -> $ret:ty) => (
3331
#[allow(non_upper_case_globals)]
@@ -103,8 +101,6 @@ unsafe fn fetch(name: &str) -> usize {
103101
libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr()) as usize
104102
}
105103

106-
// Temporary null documentation to work around #57569 until the fix is beta
107-
#[cfg_attr(bootstrap, doc = "")]
108104
#[cfg(not(any(target_os = "linux", target_os = "android")))]
109105
pub(crate) macro syscall {
110106
(fn $name:ident($($arg_name:ident: $t:ty),*) -> $ret:ty) => (
@@ -123,7 +119,6 @@ pub(crate) macro syscall {
123119
)
124120
}
125121

126-
#[cfg_attr(bootstrap, doc = "")]
127122
#[cfg(any(target_os = "linux", target_os = "android"))]
128123
pub(crate) macro syscall {
129124
(fn $name:ident($($arg_name:ident: $t:ty),*) -> $ret:ty) => (

src/stage0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# stable release's version number. `date` is the date where the release we're
1313
# bootstrapping off was released.
1414

15-
date: 2021-06-23
15+
date: 2021-07-29
1616
rustc: beta
1717

1818
# We use a nightly rustfmt to format the source because it solves some

src/tools/clippy/clippy_lints/src/implicit_hasher.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg_attr(bootstrap, allow(rustc::default_hash_types))]
2-
31
use std::borrow::Cow;
42
use std::collections::BTreeMap;
53

0 commit comments

Comments
 (0)