Skip to content

Commit 1f1e753

Browse files
authored
Rollup merge of rust-lang#92887 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum
Bootstrap compiler update r? ``@Mark-Simulacrum``
2 parents 7e00527 + f82a9e9 commit 1f1e753

File tree

13 files changed

+47
-81
lines changed

13 files changed

+47
-81
lines changed

alloc/src/lib.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,14 @@
6767
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
6868
test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
6969
)]
70-
#![cfg_attr(
71-
not(bootstrap),
72-
doc(cfg_hide(
73-
not(test),
74-
not(any(test, bootstrap)),
75-
any(not(feature = "miri-test-libstd"), test, doctest),
76-
no_global_oom_handling,
77-
not(no_global_oom_handling),
78-
target_has_atomic = "ptr"
79-
))
80-
)]
70+
#![doc(cfg_hide(
71+
not(test),
72+
not(any(test, bootstrap)),
73+
any(not(feature = "miri-test-libstd"), test, doctest),
74+
no_global_oom_handling,
75+
not(no_global_oom_handling),
76+
target_has_atomic = "ptr"
77+
))]
8178
#![no_std]
8279
#![needs_allocator]
8380
//
@@ -151,7 +148,6 @@
151148
#![feature(const_precise_live_drops)]
152149
#![feature(const_trait_impl)]
153150
#![feature(const_try)]
154-
#![cfg_attr(bootstrap, feature(destructuring_assignment))]
155151
#![feature(dropck_eyepatch)]
156152
#![feature(exclusive_range_pattern)]
157153
#![feature(fundamental)]

core/src/cell.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,11 +1310,7 @@ impl Clone for BorrowRef<'_> {
13101310
///
13111311
/// See the [module-level documentation](self) for more.
13121312
#[stable(feature = "rust1", since = "1.0.0")]
1313-
#[cfg_attr(
1314-
not(bootstrap),
1315-
must_not_suspend = "holding a Ref across suspend \
1316-
points can cause BorrowErrors"
1317-
)]
1313+
#[must_not_suspend = "holding a Ref across suspend points can cause BorrowErrors"]
13181314
pub struct Ref<'b, T: ?Sized + 'b> {
13191315
value: &'b T,
13201316
borrow: BorrowRef<'b>,
@@ -1692,11 +1688,7 @@ impl<'b> BorrowRefMut<'b> {
16921688
///
16931689
/// See the [module-level documentation](self) for more.
16941690
#[stable(feature = "rust1", since = "1.0.0")]
1695-
#[cfg_attr(
1696-
not(bootstrap),
1697-
must_not_suspend = "holding a RefMut across suspend \
1698-
points can cause BorrowErrors"
1699-
)]
1691+
#[must_not_suspend = "holding a RefMut across suspend points can cause BorrowErrors"]
17001692
pub struct RefMut<'b, T: ?Sized + 'b> {
17011693
value: &'b mut T,
17021694
borrow: BorrowRefMut<'b>,

core/src/future/into_future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub trait IntoFuture {
1313

1414
/// Creates a future from a value.
1515
#[unstable(feature = "into_future", issue = "67644")]
16-
#[cfg_attr(not(bootstrap), lang = "into_future")]
16+
#[lang = "into_future"]
1717
fn into_future(self) -> Self::Future;
1818
}
1919

core/src/lib.rs

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,32 +60,29 @@
6060
test(no_crate_inject, attr(deny(warnings))),
6161
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
6262
)]
63-
#![cfg_attr(
64-
not(bootstrap),
65-
doc(cfg_hide(
66-
not(test),
67-
any(not(feature = "miri-test-libstd"), test, doctest),
68-
no_fp_fmt_parse,
69-
target_pointer_width = "16",
70-
target_pointer_width = "32",
71-
target_pointer_width = "64",
72-
target_has_atomic = "8",
73-
target_has_atomic = "16",
74-
target_has_atomic = "32",
75-
target_has_atomic = "64",
76-
target_has_atomic = "ptr",
77-
target_has_atomic_equal_alignment = "8",
78-
target_has_atomic_equal_alignment = "16",
79-
target_has_atomic_equal_alignment = "32",
80-
target_has_atomic_equal_alignment = "64",
81-
target_has_atomic_equal_alignment = "ptr",
82-
target_has_atomic_load_store = "8",
83-
target_has_atomic_load_store = "16",
84-
target_has_atomic_load_store = "32",
85-
target_has_atomic_load_store = "64",
86-
target_has_atomic_load_store = "ptr",
87-
))
88-
)]
63+
#![doc(cfg_hide(
64+
not(test),
65+
any(not(feature = "miri-test-libstd"), test, doctest),
66+
no_fp_fmt_parse,
67+
target_pointer_width = "16",
68+
target_pointer_width = "32",
69+
target_pointer_width = "64",
70+
target_has_atomic = "8",
71+
target_has_atomic = "16",
72+
target_has_atomic = "32",
73+
target_has_atomic = "64",
74+
target_has_atomic = "ptr",
75+
target_has_atomic_equal_alignment = "8",
76+
target_has_atomic_equal_alignment = "16",
77+
target_has_atomic_equal_alignment = "32",
78+
target_has_atomic_equal_alignment = "64",
79+
target_has_atomic_equal_alignment = "ptr",
80+
target_has_atomic_load_store = "8",
81+
target_has_atomic_load_store = "16",
82+
target_has_atomic_load_store = "32",
83+
target_has_atomic_load_store = "64",
84+
target_has_atomic_load_store = "ptr",
85+
))]
8986
#![no_core]
9087
//
9188
// Lints:

core/src/macros/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ pub(crate) mod builtin {
10031003
/// assert_eq!(s, b"ABCDEF");
10041004
/// # }
10051005
/// ```
1006-
#[cfg(not(bootstrap))]
10071006
#[unstable(feature = "concat_bytes", issue = "87555")]
10081007
#[rustc_builtin_macro]
10091008
#[macro_export]

core/src/prelude/v1.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub use crate::{
6565
issue = "87555",
6666
reason = "`concat_bytes` is not stable enough for use and is subject to change"
6767
)]
68-
#[cfg(not(bootstrap))]
6968
#[doc(no_inline)]
7069
pub use crate::concat_bytes;
7170

core/tests/cmp.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ fn cmp_default() {
204204
assert_eq!(Fool(false), Fool(true));
205205
}
206206

207-
#[cfg(not(bootstrap))]
208207
mod const_cmp {
209208
use super::*;
210209

core/tests/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ fn test_assume_can_be_in_const_contexts() {
3737
}
3838

3939
#[test]
40-
#[cfg(not(bootstrap))]
4140
const fn test_write_bytes_in_const_contexts() {
4241
use core::intrinsics::write_bytes;
4342

core/tests/ptr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ fn test_set_memory() {
251251
}
252252

253253
#[test]
254-
#[cfg(not(bootstrap))]
255254
fn test_set_memory_const() {
256255
const XS: [u8; 20] = {
257256
let mut xs = [0u8; 20];

std/src/lib.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,12 @@
195195
test(no_crate_inject, attr(deny(warnings))),
196196
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
197197
)]
198-
#![cfg_attr(
199-
not(bootstrap),
200-
doc(cfg_hide(
201-
not(test),
202-
not(any(test, bootstrap)),
203-
no_global_oom_handling,
204-
not(no_global_oom_handling)
205-
))
206-
)]
198+
#![doc(cfg_hide(
199+
not(test),
200+
not(any(test, bootstrap)),
201+
no_global_oom_handling,
202+
not(no_global_oom_handling)
203+
))]
207204
// Don't link to std. We are std.
208205
#![no_std]
209206
#![warn(deprecated_in_future)]
@@ -249,7 +246,7 @@
249246
#![feature(cfg_target_thread_local)]
250247
#![feature(char_error_internals)]
251248
#![feature(char_internals)]
252-
#![cfg_attr(not(bootstrap), feature(concat_bytes))]
249+
#![feature(concat_bytes)]
253250
#![feature(concat_idents)]
254251
#![feature(const_fn_floating_point_arithmetic)]
255252
#![feature(const_fn_fn_ptr_basics)]
@@ -585,7 +582,6 @@ pub use core::{
585582
issue = "87555",
586583
reason = "`concat_bytes` is not stable enough for use and is subject to change"
587584
)]
588-
#[cfg(not(bootstrap))]
589585
pub use core::concat_bytes;
590586

591587
#[stable(feature = "core_primitive", since = "1.43.0")]

0 commit comments

Comments
 (0)