Skip to content

Commit 6813f95

Browse files
committed
Auto merge of rust-lang#139279 - BoxyUwU:bump-boostrap, r=jieyouxu
Bump boostrap compiler to new beta try-job: `*msvc*`
2 parents 51548ce + 5a5bda5 commit 6813f95

File tree

65 files changed

+652
-790
lines changed

Some content is hidden

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

65 files changed

+652
-790
lines changed

compiler/rustc_data_structures/src/obligation_forest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ mod helper {
315315
use super::*;
316316
pub(super) type ObligationTreeIdGenerator = impl Iterator<Item = ObligationTreeId>;
317317
impl<O: ForestObligation> ObligationForest<O> {
318-
#[cfg_attr(not(bootstrap), define_opaque(ObligationTreeIdGenerator))]
318+
#[define_opaque(ObligationTreeIdGenerator)]
319319
pub fn new() -> ObligationForest<O> {
320320
ObligationForest {
321321
nodes: vec![],

compiler/rustc_error_messages/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub type LazyFallbackBundle = Arc<LazyLock<FluentBundle, impl FnOnce() -> Fluent
208208

209209
/// Return the default `FluentBundle` with standard "en-US" diagnostic messages.
210210
#[instrument(level = "trace", skip(resources))]
211-
#[cfg_attr(not(bootstrap), define_opaque(LazyFallbackBundle))]
211+
#[define_opaque(LazyFallbackBundle)]
212212
pub fn fallback_fluent_bundle(
213213
resources: Vec<&'static str>,
214214
with_directionality_markers: bool,

compiler/rustc_feature/src/accepted.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare_features! (
6363
/// Allows using `const` operands in inline assembly.
6464
(accepted, asm_const, "1.82.0", Some(93332)),
6565
/// Allows using `label` operands in inline assembly.
66-
(accepted, asm_goto, "CURRENT_RUSTC_VERSION", Some(119364)),
66+
(accepted, asm_goto, "1.87.0", Some(119364)),
6767
/// Allows using `sym` operands in inline assembly.
6868
(accepted, asm_sym, "1.66.0", Some(93333)),
6969
/// Allows the definition of associated constants in `trait` or `impl` blocks.
@@ -332,7 +332,7 @@ declare_features! (
332332
/// Allows `use<'a, 'b, A, B>` in `impl Trait + use<...>` for precise capture of generic args.
333333
(accepted, precise_capturing, "1.82.0", Some(123432)),
334334
/// Allows `use<..>` precise capturign on impl Trait in traits.
335-
(accepted, precise_capturing_in_traits, "CURRENT_RUSTC_VERSION", Some(130044)),
335+
(accepted, precise_capturing_in_traits, "1.87.0", Some(130044)),
336336
/// Allows procedural macros in `proc-macro` crates.
337337
(accepted, proc_macro, "1.29.0", Some(38356)),
338338
/// Allows multi-segment paths in attributes and derives.

compiler/rustc_feature/src/removed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ declare_features! (
247247
/// Allows unnamed fields of struct and union type
248248
(removed, unnamed_fields, "1.83.0", Some(49804), Some("feature needs redesign")),
249249
(removed, unsafe_no_drop_flag, "1.0.0", None, None),
250-
(removed, unsized_tuple_coercion, "CURRENT_RUSTC_VERSION", Some(42877),
250+
(removed, unsized_tuple_coercion, "1.87.0", Some(42877),
251251
Some("The feature restricts possible layouts for tuples, and this restriction is not worth it.")),
252252
/// Allows `union` fields that don't implement `Copy` as long as they don't have any drop glue.
253253
(removed, untagged_unions, "1.13.0", Some(55149),

compiler/rustc_feature/src/unstable.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ declare_features! (
474474
/// Allows `dyn* Trait` objects.
475475
(incomplete, dyn_star, "1.65.0", Some(102425)),
476476
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
477-
(incomplete, ergonomic_clones, "CURRENT_RUSTC_VERSION", Some(132290)),
477+
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
478478
/// Allows exhaustive pattern matching on types that contain uninhabited types.
479479
(unstable, exhaustive_patterns, "1.13.0", Some(51085)),
480480
/// Allows explicit tail calls via `become` expression.
@@ -511,7 +511,7 @@ declare_features! (
511511
/// Allows generic parameters and where-clauses on free & associated const items.
512512
(incomplete, generic_const_items, "1.73.0", Some(113521)),
513513
/// Allows the type of const generics to depend on generic parameters
514-
(incomplete, generic_const_parameter_types, "CURRENT_RUSTC_VERSION", Some(137626)),
514+
(incomplete, generic_const_parameter_types, "1.87.0", Some(137626)),
515515
/// Allows any generic constants being used as pattern type range ends
516516
(incomplete, generic_pattern_types, "1.86.0", Some(136574)),
517517
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
@@ -602,7 +602,7 @@ declare_features! (
602602
/// Allows macro attributes on expressions, statements and non-inline modules.
603603
(unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
604604
/// Allows the use of raw-dylibs on ELF platforms
605-
(incomplete, raw_dylib_elf, "CURRENT_RUSTC_VERSION", Some(135694)),
605+
(incomplete, raw_dylib_elf, "1.87.0", Some(135694)),
606606
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
607607
(incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
608608
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024—structural variant
@@ -664,14 +664,14 @@ declare_features! (
664664
/// Allows using the `#[used(linker)]` (or `#[used(compiler)]`) attribute.
665665
(unstable, used_with_arg, "1.60.0", Some(93798)),
666666
/// Allows use of attributes in `where` clauses.
667-
(unstable, where_clause_attrs, "CURRENT_RUSTC_VERSION", Some(115590)),
667+
(unstable, where_clause_attrs, "1.87.0", Some(115590)),
668668
/// Allows use of x86 `AMX` target-feature attributes and intrinsics
669669
(unstable, x86_amx_intrinsics, "1.81.0", Some(126622)),
670670
/// Allows use of the `xop` target-feature
671671
(unstable, xop_target_feature, "1.81.0", Some(127208)),
672672
/// Allows `do yeet` expressions
673673
(unstable, yeet_expr, "1.62.0", Some(96373)),
674-
(unstable, yield_expr, "CURRENT_RUSTC_VERSION", Some(43122)),
674+
(unstable, yield_expr, "1.87.0", Some(43122)),
675675
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
676676
// Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
677677
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!

compiler/rustc_middle/src/mir/terminator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ mod helper {
454454
/// Like [`SwitchTargets::target_for_value`], but returning the same type as
455455
/// [`Terminator::successors`].
456456
#[inline]
457-
#[cfg_attr(not(bootstrap), define_opaque(Successors))]
457+
#[define_opaque(Successors)]
458458
pub fn successors_for_value(&self, value: u128) -> Successors<'_> {
459459
let target = self.target_for_value(value);
460460
(&[]).into_iter().copied().chain(Some(target))
@@ -463,7 +463,7 @@ mod helper {
463463

464464
impl<'tcx> TerminatorKind<'tcx> {
465465
#[inline]
466-
#[cfg_attr(not(bootstrap), define_opaque(Successors))]
466+
#[define_opaque(Successors)]
467467
pub fn successors(&self) -> Successors<'_> {
468468
use self::TerminatorKind::*;
469469
match *self {
@@ -502,7 +502,7 @@ mod helper {
502502
}
503503

504504
#[inline]
505-
#[cfg_attr(not(bootstrap), define_opaque(SuccessorsMut))]
505+
#[define_opaque(SuccessorsMut)]
506506
pub fn successors_mut(&mut self) -> SuccessorsMut<'_> {
507507
use self::TerminatorKind::*;
508508
match *self {

compiler/rustc_middle/src/query/erase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub trait EraseType: Copy {
2525
pub type Erase<T: EraseType> = Erased<impl Copy>;
2626

2727
#[inline(always)]
28-
#[cfg_attr(not(bootstrap), define_opaque(Erase))]
28+
#[define_opaque(Erase)]
2929
pub fn erase<T: EraseType>(src: T) -> Erase<T> {
3030
// Ensure the sizes match
3131
const {
@@ -49,7 +49,7 @@ pub fn erase<T: EraseType>(src: T) -> Erase<T> {
4949

5050
/// Restores an erased value.
5151
#[inline(always)]
52-
#[cfg_attr(not(bootstrap), define_opaque(Erase))]
52+
#[define_opaque(Erase)]
5353
pub fn restore<T: EraseType>(value: Erase<T>) -> T {
5454
let value: Erased<<T as EraseType>::Result> = value;
5555
// See comment in `erase` for why we use `transmute_unchecked`.

compiler/rustc_next_trait_solver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
// tidy-alphabetical-start
88
#![allow(rustc::usage_of_type_ir_inherent)]
9-
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_traits))]
9+
#![allow(rustc::usage_of_type_ir_traits)]
1010
// tidy-alphabetical-end
1111

1212
pub mod canonicalizer;

compiler/rustc_type_ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::usage_of_ty_tykind)]
33
#![allow(rustc::usage_of_type_ir_inherent)]
4+
#![allow(rustc::usage_of_type_ir_traits)]
45
#![cfg_attr(
56
feature = "nightly",
67
feature(associated_type_defaults, never_type, rustc_attrs, negative_impls)
78
)]
89
#![cfg_attr(feature = "nightly", allow(internal_features))]
9-
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_traits))]
1010
// tidy-alphabetical-end
1111

1212
extern crate self as rustc_type_ir;

library/alloc/src/alloc.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ unsafe extern "Rust" {
1616
// otherwise.
1717
#[rustc_allocator]
1818
#[rustc_nounwind]
19-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
19+
#[rustc_std_internal_symbol]
2020
fn __rust_alloc(size: usize, align: usize) -> *mut u8;
2121
#[rustc_deallocator]
2222
#[rustc_nounwind]
23-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
23+
#[rustc_std_internal_symbol]
2424
fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize);
2525
#[rustc_reallocator]
2626
#[rustc_nounwind]
27-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
27+
#[rustc_std_internal_symbol]
2828
fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8;
2929
#[rustc_allocator_zeroed]
3030
#[rustc_nounwind]
31-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
31+
#[rustc_std_internal_symbol]
3232
fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8;
3333

34-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
34+
#[rustc_std_internal_symbol]
3535
static __rust_no_alloc_shim_is_unstable: u8;
3636
}
3737

@@ -360,7 +360,7 @@ unsafe extern "Rust" {
360360
// This is the magic symbol to call the global alloc error handler. rustc generates
361361
// it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
362362
// default implementations below (`__rdl_oom`) otherwise.
363-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
363+
#[rustc_std_internal_symbol]
364364
fn __rust_alloc_error_handler(size: usize, align: usize) -> !;
365365
}
366366

@@ -427,7 +427,7 @@ pub mod __alloc_error_handler {
427427
unsafe extern "Rust" {
428428
// This symbol is emitted by rustc next to __rust_alloc_error_handler.
429429
// Its value depends on the -Zoom={panic,abort} compiler option.
430-
#[cfg_attr(not(bootstrap), rustc_std_internal_symbol)]
430+
#[rustc_std_internal_symbol]
431431
static __rust_alloc_error_handler_should_panic: u8;
432432
}
433433

0 commit comments

Comments
 (0)