Skip to content

Commit cd64446

Browse files
committed
Auto merge of #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 a4e595d + b1a4bca commit cd64446

File tree

16 files changed

+49
-115
lines changed

16 files changed

+49
-115
lines changed

compiler/rustc_arena/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![feature(dropck_eyepatch)]
1515
#![feature(new_uninit)]
1616
#![feature(maybe_uninit_slice)]
17-
#![cfg_attr(bootstrap, feature(min_const_generics))]
1817
#![feature(min_specialization)]
1918
#![cfg_attr(test, feature(test))]
2019

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![feature(thread_id_value)]
2727
#![feature(extend_one)]
2828
#![feature(const_panic)]
29-
#![cfg_attr(bootstrap, feature(min_const_generics))]
3029
#![feature(new_uninit)]
3130
#![feature(once_cell)]
3231
#![feature(maybe_uninit_uninit_array)]

compiler/rustc_serialize/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Core encoding and decoding interfaces.
1313
#![feature(never_type)]
1414
#![feature(nll)]
1515
#![feature(associated_type_bounds)]
16-
#![cfg_attr(bootstrap, feature(min_const_generics))]
1716
#![feature(min_specialization)]
1817
#![feature(vec_spare_capacity)]
1918
#![feature(core_intrinsics)]

library/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)]

library/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 {

library/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

library/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)]

library/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"]

library/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

library/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;

0 commit comments

Comments
 (0)