Skip to content

Commit 5e98ad3

Browse files
committed
Auto merge of rust-lang#82076 - jyn514:update-bootstrap, r=Mark-Simulacrum
Update the bootstrap compiler This updates the bootstrap compiler, notably leaving out a change to enable semicolon in macro expressions lint, because stdarch still depends on the old behavior.
2 parents c469766 + 61abcb6 commit 5e98ad3

File tree

10 files changed

+3
-58
lines changed

10 files changed

+3
-58
lines changed

alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
#![feature(ptr_internals)]
118118
#![feature(rustc_attrs)]
119119
#![feature(receiver_trait)]
120-
#![cfg_attr(bootstrap, feature(min_const_generics))]
121120
#![feature(min_specialization)]
122121
#![feature(set_ptr_value)]
123122
#![feature(slice_ptr_get)]

alloc/src/task.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ pub trait Wake {
8585
}
8686
}
8787

88-
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
89-
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
9088
#[stable(feature = "wake_trait", since = "1.51.0")]
9189
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
9290
fn from(waker: Arc<W>) -> Waker {
@@ -96,8 +94,6 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
9694
}
9795
}
9896

99-
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
100-
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
10197
#[stable(feature = "wake_trait", since = "1.51.0")]
10298
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
10399
fn from(waker: Arc<W>) -> RawWaker {

alloc/tests/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ fn subslice_patterns() {
17981798

17991799
macro_rules! c {
18001800
($inp:expr, $typ:ty, $out:expr $(,)?) => {
1801-
assert_eq!($out, identity::<$typ>($inp));
1801+
assert_eq!($out, identity::<$typ>($inp))
18021802
};
18031803
}
18041804

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
#![feature(repr_simd, platform_intrinsics)]
129129
#![feature(rustc_attrs)]
130130
#![feature(simd_ffi)]
131-
#![cfg_attr(bootstrap, feature(min_const_generics))]
132131
#![feature(min_specialization)]
133132
#![feature(staged_api)]
134133
#![feature(std_internals)]

core/src/macros/mod.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
#[cfg(bootstrap)]
2-
#[doc(include = "panic.md")]
3-
#[macro_export]
4-
#[allow_internal_unstable(core_panic)]
5-
#[stable(feature = "core", since = "1.6.0")]
6-
#[rustc_diagnostic_item = "core_panic_macro"]
7-
macro_rules! panic {
8-
() => (
9-
$crate::panic!("explicit panic")
10-
);
11-
($msg:literal $(,)?) => (
12-
$crate::panicking::panic($msg)
13-
);
14-
($msg:expr $(,)?) => (
15-
$crate::panicking::panic_str($msg)
16-
);
17-
($fmt:expr, $($arg:tt)+) => (
18-
$crate::panicking::panic_fmt($crate::format_args!($fmt, $($arg)+))
19-
);
20-
}
21-
22-
#[cfg(not(bootstrap))]
231
#[doc(include = "panic.md")]
242
#[macro_export]
253
#[rustc_builtin_macro = "core_panic"]

core/src/mem/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! types, initializing and manipulating memory.
55
66
#![stable(feature = "rust1", since = "1.0.0")]
7-
#![cfg_attr(bootstrap, allow(unused_unsafe))]
87

98
use crate::clone;
109
use crate::cmp;
@@ -152,13 +151,6 @@ pub const fn forget<T>(t: T) {
152151
#[inline]
153152
#[unstable(feature = "forget_unsized", issue = "none")]
154153
pub fn forget_unsized<T: ?Sized>(t: T) {
155-
#[cfg(bootstrap)]
156-
// SAFETY: the forget intrinsic could be safe, but there's no point in making it safe since
157-
// we'll be implementing this function soon via `ManuallyDrop`
158-
unsafe {
159-
intrinsics::forget(t)
160-
}
161-
#[cfg(not(bootstrap))]
162154
intrinsics::forget(t)
163155
}
164156

core/tests/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ mod cell;
9494
mod char;
9595
mod clone;
9696
mod cmp;
97-
98-
#[cfg(not(bootstrap))]
9997
mod const_ptr;
100-
10198
mod fmt;
10299
mod hash;
103100
mod intrinsics;

core/tests/mem.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ fn uninit_write_slice_cloned_no_drop() {
284284
}
285285

286286
#[test]
287-
#[cfg(not(bootstrap))]
288287
fn uninit_const_assume_init_read() {
289288
const FOO: u32 = unsafe { MaybeUninit::new(42).assume_init_read() };
290289
assert_eq!(FOO, 42);

std/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@
185185
//! [other]: #what-is-in-the-standard-library-documentation
186186
//! [primitive types]: ../book/ch03-02-data-types.html
187187
//! [rust-discord]: https://discord.gg/rust-lang
188-
#![cfg_attr(not(bootstrap), doc = "[array]: prim@array")]
189-
#![cfg_attr(not(bootstrap), doc = "[slice]: prim@slice")]
188+
//! [array]: prim@array
189+
//! [slice]: prim@slice
190190
#![cfg_attr(not(feature = "restricted-std"), stable(feature = "rust1", since = "1.0.0"))]
191191
#![cfg_attr(feature = "restricted-std", unstable(feature = "restricted_std", issue = "none"))]
192192
#![doc(

std/src/macros.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,6 @@
44
//! library. Each macro is available for use when linking against the standard
55
//! library.
66
7-
#[cfg(bootstrap)]
8-
#[doc(include = "../../core/src/macros/panic.md")]
9-
#[macro_export]
10-
#[stable(feature = "rust1", since = "1.0.0")]
11-
#[allow_internal_unstable(libstd_sys_internals)]
12-
#[cfg_attr(not(test), rustc_diagnostic_item = "std_panic_macro")]
13-
macro_rules! panic {
14-
() => ({ $crate::panic!("explicit panic") });
15-
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
16-
($fmt:expr, $($arg:tt)+) => ({
17-
$crate::rt::begin_panic_fmt(&$crate::format_args!($fmt, $($arg)+))
18-
});
19-
}
20-
21-
#[cfg(not(bootstrap))]
227
#[doc(include = "../../core/src/macros/panic.md")]
238
#[macro_export]
249
#[rustc_builtin_macro = "std_panic"]

0 commit comments

Comments
 (0)