Skip to content

Commit 8a6b67f

Browse files
committed
Auto merge of rust-lang#115094 - Mark-Simulacrum:bootstrap-update, r=ozkanonur
Update bootstrap compiler to 1.73.0 beta
2 parents 0b31792 + 0a91606 commit 8a6b67f

File tree

46 files changed

+443
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+443
-472
lines changed

compiler/rustc_abi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg_attr(feature = "nightly", feature(step_trait, rustc_attrs, min_specialization))]
2-
#![cfg_attr(all(not(bootstrap), feature = "nightly"), allow(internal_features))]
2+
#![cfg_attr(feature = "nightly", allow(internal_features))]
33

44
use std::fmt;
55
#[cfg(feature = "nightly")]

compiler/rustc_arena/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#![deny(unsafe_op_in_unsafe_fn)]
2525
#![deny(rustc::untranslatable_diagnostic)]
2626
#![deny(rustc::diagnostic_outside_of_impl)]
27-
#![cfg_attr(not(bootstrap), allow(internal_features))]
27+
#![allow(internal_features)]
2828
#![allow(clippy::mut_from_ref)] // Arena allocators are one of the places where this pattern is fine.
2929

3030
use smallvec::SmallVec;

compiler/rustc_borrowck/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![feature(trusted_step)]
1212
#![feature(try_blocks)]
1313
#![recursion_limit = "256"]
14-
#![cfg_attr(not(bootstrap), allow(internal_features))]
14+
#![allow(internal_features)]
1515

1616
#[macro_use]
1717
extern crate rustc_middle;

compiler/rustc_data_structures/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#![allow(rustc::potential_query_instability)]
3838
#![deny(rustc::untranslatable_diagnostic)]
3939
#![deny(rustc::diagnostic_outside_of_impl)]
40-
#![cfg_attr(not(bootstrap), allow(internal_features))]
40+
#![allow(internal_features)]
4141
#![deny(unsafe_op_in_unsafe_fn)]
4242

4343
#[macro_use]

compiler/rustc_error_messages/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(type_alias_impl_trait)]
55
#![deny(rustc::untranslatable_diagnostic)]
66
#![deny(rustc::diagnostic_outside_of_impl)]
7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
7+
#![allow(internal_features)]
88

99
#[macro_use]
1010
extern crate tracing;

compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#![feature(box_patterns)]
1616
#![feature(error_reporter)]
1717
#![allow(incomplete_features)]
18-
#![cfg_attr(not(bootstrap), allow(internal_features))]
18+
#![allow(internal_features)]
1919

2020
#[macro_use]
2121
extern crate rustc_macros;

compiler/rustc_expand/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![feature(try_blocks)]
1212
#![recursion_limit = "256"]
1313
#![deny(rustc::untranslatable_diagnostic)]
14-
#![cfg_attr(not(bootstrap), allow(internal_features))]
14+
#![allow(internal_features)]
1515

1616
#[macro_use]
1717
extern crate rustc_macros;

compiler/rustc_feature/src/active.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ declare_features! (
282282
(active, arm_target_feature, "1.27.0", Some(44839), None),
283283
(active, avx512_target_feature, "1.27.0", Some(44839), None),
284284
(active, bpf_target_feature, "1.54.0", Some(44839), None),
285-
(active, csky_target_feature, "CURRENT_RUSTC_VERSION", Some(44839), None),
285+
(active, csky_target_feature, "1.73.0", Some(44839), None),
286286
(active, ermsb_target_feature, "1.49.0", Some(44839), None),
287287
(active, hexagon_target_feature, "1.27.0", Some(44839), None),
288288
(active, mips_target_feature, "1.27.0", Some(44839), None),
@@ -315,7 +315,7 @@ declare_features! (
315315
/// Allows `extern "ptx-*" fn()`.
316316
(active, abi_ptx, "1.15.0", Some(38788), None),
317317
/// Allows `extern "riscv-interrupt-m" fn()` and `extern "riscv-interrupt-s" fn()`.
318-
(active, abi_riscv_interrupt, "CURRENT_RUSTC_VERSION", Some(111889), None),
318+
(active, abi_riscv_interrupt, "1.73.0", Some(111889), None),
319319
/// Allows `extern "x86-interrupt" fn()`.
320320
(active, abi_x86_interrupt, "1.17.0", Some(40180), None),
321321
/// Allows additional const parameter types, such as `&'static str` or user defined types
@@ -341,7 +341,7 @@ declare_features! (
341341
/// Allows async functions to be declared, implemented, and used in traits.
342342
(active, async_fn_in_trait, "1.66.0", Some(91611), None),
343343
/// Allows `#[track_caller]` on async functions.
344-
(active, async_fn_track_caller, "CURRENT_RUSTC_VERSION", Some(110011), None),
344+
(active, async_fn_track_caller, "1.73.0", Some(110011), None),
345345
/// Allows builtin # foo() syntax
346346
(active, builtin_syntax, "1.71.0", Some(110680), None),
347347
/// Allows `c"foo"` literals.
@@ -353,7 +353,7 @@ declare_features! (
353353
/// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
354354
(active, cfg_overflow_checks, "1.71.0", Some(111466), None),
355355
/// Provides the relocation model information as cfg entry
356-
(active, cfg_relocation_model, "CURRENT_RUSTC_VERSION", Some(114929), None),
356+
(active, cfg_relocation_model, "1.73.0", Some(114929), None),
357357
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
358358
(active, cfg_sanitize, "1.41.0", Some(39699), None),
359359
/// Allows `cfg(target_abi = "...")`.
@@ -411,7 +411,7 @@ declare_features! (
411411
/// Allows having using `suggestion` in the `#[deprecated]` attribute.
412412
(active, deprecated_suggestion, "1.61.0", Some(94785), None),
413413
/// Allows using the `#[diagnostic]` attribute tool namespace
414-
(active, diagnostic_namespace, "CURRENT_RUSTC_VERSION", Some(94785), None),
414+
(active, diagnostic_namespace, "1.73.0", Some(94785), None),
415415
/// Controls errors in trait implementations.
416416
(active, do_not_recommend, "1.67.0", Some(51992), None),
417417
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
@@ -456,7 +456,7 @@ declare_features! (
456456
/// Allows non-trivial generic constants which have to have wfness manually propagated to callers
457457
(incomplete, generic_const_exprs, "1.56.0", Some(76560), None),
458458
/// Allows generic parameters and where-clauses on free & associated const items.
459-
(incomplete, generic_const_items, "CURRENT_RUSTC_VERSION", Some(113521), None),
459+
(incomplete, generic_const_items, "1.73.0", Some(113521), None),
460460
/// Allows using `..=X` as a patterns in slices.
461461
(active, half_open_range_patterns_in_slices, "1.66.0", Some(67264), None),
462462
/// Allows `if let` guard in match arms.

compiler/rustc_hir/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#![recursion_limit = "256"]
1414
#![deny(rustc::untranslatable_diagnostic)]
1515
#![deny(rustc::diagnostic_outside_of_impl)]
16-
#![cfg_attr(not(bootstrap), allow(internal_features))]
16+
#![allow(internal_features)]
1717

1818
#[macro_use]
1919
extern crate rustc_macros;

compiler/rustc_index/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
test
1313
)
1414
)]
15-
#![cfg_attr(all(not(bootstrap), feature = "nightly"), allow(internal_features))]
15+
#![cfg_attr(feature = "nightly", allow(internal_features))]
1616

1717
#[cfg(feature = "nightly")]
1818
pub mod bit_set;

compiler/rustc_lint/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#![recursion_limit = "256"]
4141
#![deny(rustc::untranslatable_diagnostic)]
4242
#![deny(rustc::diagnostic_outside_of_impl)]
43-
#![cfg_attr(not(bootstrap), allow(internal_features))]
43+
#![allow(internal_features)]
4444

4545
#[macro_use]
4646
extern crate rustc_middle;

compiler/rustc_macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![allow(rustc::default_hash_types)]
88
#![deny(rustc::untranslatable_diagnostic)]
99
#![deny(rustc::diagnostic_outside_of_impl)]
10-
#![cfg_attr(not(bootstrap), allow(internal_features))]
10+
#![allow(internal_features)]
1111
#![recursion_limit = "128"]
1212

1313
use synstructure::decl_derive;

compiler/rustc_middle/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#![feature(macro_metavar_expr)]
6464
#![recursion_limit = "512"]
6565
#![allow(rustc::potential_query_instability)]
66-
#![cfg_attr(not(bootstrap), allow(internal_features))]
66+
#![allow(internal_features)]
6767

6868
#[macro_use]
6969
extern crate bitflags;

compiler/rustc_parse/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#![feature(never_type)]
99
#![feature(rustc_attrs)]
1010
#![recursion_limit = "256"]
11-
#![cfg_attr(not(bootstrap), allow(internal_features))]
11+
#![allow(internal_features)]
1212

1313
#[macro_use]
1414
extern crate tracing;

compiler/rustc_query_impl/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![allow(rustc::potential_query_instability, unused_parens)]
1212
#![deny(rustc::untranslatable_diagnostic)]
1313
#![deny(rustc::diagnostic_outside_of_impl)]
14-
#![cfg_attr(not(bootstrap), allow(internal_features))]
14+
#![allow(internal_features)]
1515

1616
#[macro_use]
1717
extern crate rustc_middle;

compiler/rustc_resolve/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![recursion_limit = "256"]
1919
#![allow(rustdoc::private_intra_doc_links)]
2020
#![allow(rustc::potential_query_instability)]
21-
#![cfg_attr(not(bootstrap), allow(internal_features))]
21+
#![allow(internal_features)]
2222

2323
#[macro_use]
2424
extern crate tracing;

compiler/rustc_session/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![allow(rustc::potential_query_instability)]
1111
#![deny(rustc::untranslatable_diagnostic)]
1212
#![deny(rustc::diagnostic_outside_of_impl)]
13-
#![cfg_attr(not(bootstrap), allow(internal_features))]
13+
#![allow(internal_features)]
1414

1515
#[macro_use]
1616
extern crate rustc_macros;

compiler/rustc_span/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![feature(round_char_boundary)]
2424
#![deny(rustc::untranslatable_diagnostic)]
2525
#![deny(rustc::diagnostic_outside_of_impl)]
26-
#![cfg_attr(not(bootstrap), allow(internal_features))]
26+
#![allow(internal_features)]
2727

2828
#[macro_use]
2929
extern crate rustc_macros;

compiler/rustc_target/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#![feature(step_trait)]
2020
#![deny(rustc::untranslatable_diagnostic)]
2121
#![deny(rustc::diagnostic_outside_of_impl)]
22-
#![cfg_attr(not(bootstrap), allow(internal_features))]
22+
#![allow(internal_features)]
2323

2424
use std::path::{Path, PathBuf};
2525

compiler/rustc_type_ir/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![feature(unwrap_infallible)]
77
#![deny(rustc::untranslatable_diagnostic)]
88
#![deny(rustc::diagnostic_outside_of_impl)]
9-
#![cfg_attr(not(bootstrap), allow(internal_features))]
9+
#![allow(internal_features)]
1010

1111
#[macro_use]
1212
extern crate bitflags;

library/alloc/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
#![warn(missing_docs)]
8989
#![allow(explicit_outlives_requirements)]
9090
#![warn(multiple_supertrait_upcastable)]
91-
#![cfg_attr(not(bootstrap), allow(internal_features))]
92-
#![cfg_attr(not(bootstrap), allow(rustdoc::redundant_explicit_links))]
91+
#![allow(internal_features)]
92+
#![allow(rustdoc::redundant_explicit_links)]
9393
//
9494
// Library features:
9595
// tidy-alphabetical-start

library/alloc/src/rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ impl<T> Weak<T> {
27192719
/// ```
27202720
#[inline]
27212721
#[stable(feature = "downgraded_weak", since = "1.10.0")]
2722-
#[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
2722+
#[rustc_const_stable(feature = "const_weak_new", since = "1.73.0")]
27232723
#[must_use]
27242724
pub const fn new() -> Weak<T> {
27252725
Weak {

library/alloc/src/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2501,7 +2501,7 @@ impl<T> Weak<T> {
25012501
/// ```
25022502
#[inline]
25032503
#[stable(feature = "downgraded_weak", since = "1.10.0")]
2504-
#[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
2504+
#[rustc_const_stable(feature = "const_weak_new", since = "1.73.0")]
25052505
#[must_use]
25062506
pub const fn new() -> Weak<T> {
25072507
Weak {

library/alloc/tests/vec.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,6 @@ fn test_into_flattened_size_overflow() {
24992499
let _ = v.into_flattened();
25002500
}
25012501

2502-
#[cfg(not(bootstrap))]
25032502
#[test]
25042503
fn test_box_zero_allocator() {
25052504
use core::{alloc::AllocError, cell::RefCell};

library/core/src/cell.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1893,8 +1893,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
18931893
/// on an _exclusive_ `UnsafeCell<T>`. Even though `T` and `UnsafeCell<T>` have the
18941894
/// same memory layout, the following is not allowed and undefined behavior:
18951895
///
1896-
#[cfg_attr(bootstrap, doc = "```rust,no_run")]
1897-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
1896+
/// ```rust,compile_fail
18981897
/// # use std::cell::UnsafeCell;
18991898
/// unsafe fn not_allowed<T>(ptr: &UnsafeCell<T>) -> &mut T {
19001899
/// let t = ptr as *const UnsafeCell<T> as *mut T;

library/core/src/intrinsics.rs

-16
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,6 @@ extern "rust-intrinsic" {
23992399
/// that differs. That allows optimizations that can read in large chunks.
24002400
///
24012401
/// [valid]: crate::ptr#safety
2402-
#[cfg(not(bootstrap))]
24032402
#[rustc_const_unstable(feature = "const_intrinsic_compare_bytes", issue = "none")]
24042403
#[rustc_nounwind]
24052404
pub fn compare_bytes(left: *const u8, right: *const u8, bytes: usize) -> i32;
@@ -2844,18 +2843,3 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
28442843
write_bytes(dst, val, count)
28452844
}
28462845
}
2847-
2848-
/// Backfill for bootstrap
2849-
#[cfg(bootstrap)]
2850-
pub unsafe fn compare_bytes(left: *const u8, right: *const u8, bytes: usize) -> i32 {
2851-
extern "C" {
2852-
fn memcmp(s1: *const u8, s2: *const u8, n: usize) -> crate::ffi::c_int;
2853-
}
2854-
2855-
if bytes != 0 {
2856-
// SAFETY: Since bytes is non-zero, the caller has met `memcmp`'s requirements.
2857-
unsafe { memcmp(left, right, bytes).into() }
2858-
} else {
2859-
0
2860-
}
2861-
}

library/core/src/intrinsics/mir.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! ```rust
1616
//! #![feature(core_intrinsics, custom_mir)]
17-
#![cfg_attr(not(bootstrap), doc = "#![allow(internal_features)]")]
17+
//! #![allow(internal_features)]
1818
//!
1919
//! use core::intrinsics::mir::*;
2020
//!
@@ -64,7 +64,7 @@
6464
//!
6565
//! ```rust
6666
//! #![feature(core_intrinsics, custom_mir)]
67-
#![cfg_attr(not(bootstrap), doc = "#![allow(internal_features)]")]
67+
//! #![allow(internal_features)]
6868
//!
6969
//! use core::intrinsics::mir::*;
7070
//!
@@ -318,7 +318,7 @@ define!(
318318
/// # Examples
319319
///
320320
/// ```rust
321-
#[cfg_attr(not(bootstrap), doc = "#![allow(internal_features)]")]
321+
/// #![allow(internal_features)]
322322
/// #![feature(custom_mir, core_intrinsics)]
323323
///
324324
/// use core::intrinsics::mir::*;

library/core/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
#![allow(explicit_outlives_requirements)]
9797
#![allow(incomplete_features)]
9898
#![warn(multiple_supertrait_upcastable)]
99-
#![cfg_attr(not(bootstrap), allow(internal_features))]
99+
#![allow(internal_features)]
100100
// Do not check link redundancy on bootstraping phase
101-
#![cfg_attr(not(bootstrap), allow(rustdoc::redundant_explicit_links))]
101+
#![allow(rustdoc::redundant_explicit_links)]
102102
//
103103
// Library features:
104104
// tidy-alphabetical-start

library/core/src/num/uint_macros.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2077,8 +2077,8 @@ macro_rules! uint_impl {
20772077
/// ```
20782078
#[doc = concat!("assert_eq!(7_", stringify!($SelfT), ".div_ceil(4), 2);")]
20792079
/// ```
2080-
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2081-
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2080+
#[stable(feature = "int_roundings1", since = "1.73.0")]
2081+
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
20822082
#[must_use = "this returns the result of the operation, \
20832083
without modifying the original"]
20842084
#[inline]
@@ -2113,8 +2113,8 @@ macro_rules! uint_impl {
21132113
#[doc = concat!("assert_eq!(16_", stringify!($SelfT), ".next_multiple_of(8), 16);")]
21142114
#[doc = concat!("assert_eq!(23_", stringify!($SelfT), ".next_multiple_of(8), 24);")]
21152115
/// ```
2116-
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2117-
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2116+
#[stable(feature = "int_roundings1", since = "1.73.0")]
2117+
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
21182118
#[must_use = "this returns the result of the operation, \
21192119
without modifying the original"]
21202120
#[inline]
@@ -2140,8 +2140,8 @@ macro_rules! uint_impl {
21402140
#[doc = concat!("assert_eq!(1_", stringify!($SelfT), ".checked_next_multiple_of(0), None);")]
21412141
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.checked_next_multiple_of(2), None);")]
21422142
/// ```
2143-
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2144-
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
2143+
#[stable(feature = "int_roundings1", since = "1.73.0")]
2144+
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
21452145
#[must_use = "this returns the result of the operation, \
21462146
without modifying the original"]
21472147
#[inline]

library/core/src/ptr/non_null.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl<T: ?Sized> NonNull<T> {
367367
///
368368
/// [the module documentation]: crate::ptr#safety
369369
#[stable(feature = "nonnull", since = "1.25.0")]
370-
#[rustc_const_stable(feature = "const_nonnull_as_ref", since = "CURRENT_RUSTC_VERSION")]
370+
#[rustc_const_stable(feature = "const_nonnull_as_ref", since = "1.73.0")]
371371
#[must_use]
372372
#[inline(always)]
373373
pub const unsafe fn as_ref<'a>(&self) -> &'a T {

library/core/src/str/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ unsafe impl SliceIndex<str> for ops::Range<usize> {
265265
/// inclusion/exclusion) does not point to the starting byte offset of
266266
/// a character (as defined by `is_char_boundary`), if `begin > end`, or if
267267
/// `end > len`.
268-
#[stable(feature = "slice_index_str_with_ops_bound_pair", since = "CURRENT_RUSTC_VERSION")]
268+
#[stable(feature = "slice_index_str_with_ops_bound_pair", since = "1.73.0")]
269269
unsafe impl SliceIndex<str> for (ops::Bound<usize>, ops::Bound<usize>) {
270270
type Output = str;
271271

library/panic_abort/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#![feature(staged_api)]
1515
#![feature(rustc_attrs)]
1616
#![feature(c_unwind)]
17-
#![cfg_attr(not(bootstrap), allow(internal_features))]
17+
#![allow(internal_features)]
1818

1919
#[cfg(target_os = "android")]
2020
mod android;

0 commit comments

Comments
 (0)