Skip to content

Commit 12b26c1

Browse files
committed
Auto merge of rust-lang#129941 - BoxyUwU:bump-boostrap, r=albertlarsan68
Bump boostrap compiler to new beta Accidentally left some comments on the update cfgs commit directly xd
2 parents ec867f0 + 0091b8a commit 12b26c1

File tree

51 files changed

+543
-616
lines changed

Some content is hidden

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

51 files changed

+543
-616
lines changed

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
// tidy-alphabetical-start
88
#![allow(internal_features)]
9-
#![cfg_attr(bootstrap, feature(unsafe_extern_blocks))]
109
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1110
#![doc(rust_logo)]
1211
#![feature(assert_matches)]

compiler/rustc_driver_impl/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// tidy-alphabetical-start
88
#![allow(internal_features)]
99
#![allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable
10-
#![cfg_attr(bootstrap, feature(unsafe_extern_blocks))]
1110
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1211
#![doc(rust_logo)]
1312
#![feature(decl_macro)]

compiler/rustc_feature/src/accepted.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ declare_features! (
6161
/// Allows explicit discriminants on non-unit enum variants.
6262
(accepted, arbitrary_enum_discriminant, "1.66.0", Some(60553)),
6363
/// Allows using `const` operands in inline assembly.
64-
(accepted, asm_const, "CURRENT_RUSTC_VERSION", Some(93332)),
64+
(accepted, asm_const, "1.82.0", Some(93332)),
6565
/// Allows using `sym` operands in inline assembly.
6666
(accepted, asm_sym, "1.66.0", Some(93333)),
6767
/// Allows the definition of associated constants in `trait` or `impl` blocks.
@@ -116,7 +116,7 @@ declare_features! (
116116
/// Allows calling constructor functions in `const fn`.
117117
(accepted, const_constructor, "1.40.0", Some(61456)),
118118
/// Allows basic arithmetic on floating point types in a `const fn`.
119-
(accepted, const_fn_floating_point_arithmetic, "CURRENT_RUSTC_VERSION", Some(57241)),
119+
(accepted, const_fn_floating_point_arithmetic, "1.82.0", Some(57241)),
120120
/// Allows using and casting function pointers in a `const fn`.
121121
(accepted, const_fn_fn_ptr_basics, "1.61.0", Some(57563)),
122122
/// Allows trait bounds in `const fn`.
@@ -272,7 +272,7 @@ declare_features! (
272272
/// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
273273
(accepted, min_const_unsafe_fn, "1.33.0", Some(55607)),
274274
/// Allows exhaustive pattern matching on uninhabited types when matched by value.
275-
(accepted, min_exhaustive_patterns, "CURRENT_RUSTC_VERSION", Some(119612)),
275+
(accepted, min_exhaustive_patterns, "1.82.0", Some(119612)),
276276
/// Allows using `Self` and associated types in struct expressions and patterns.
277277
(accepted, more_struct_aliases, "1.16.0", Some(37544)),
278278
/// Allows using the MOVBE target feature.
@@ -299,7 +299,7 @@ declare_features! (
299299
/// Allows `foo.rs` as an alternative to `foo/mod.rs`.
300300
(accepted, non_modrs_mods, "1.30.0", Some(44660)),
301301
/// Allows using multiple nested field accesses in offset_of!
302-
(accepted, offset_of_nested, "CURRENT_RUSTC_VERSION", Some(120140)),
302+
(accepted, offset_of_nested, "1.82.0", Some(120140)),
303303
/// Allows the use of or-patterns (e.g., `0 | 1`).
304304
(accepted, or_patterns, "1.53.0", Some(54883)),
305305
/// Allows using `+bundle,+whole-archive` link modifiers with native libs.
@@ -312,7 +312,7 @@ declare_features! (
312312
/// Allows parentheses in patterns.
313313
(accepted, pattern_parentheses, "1.31.0", Some(51087)),
314314
/// Allows `use<'a, 'b, A, B>` in `impl Trait + use<...>` for precise capture of generic args.
315-
(accepted, precise_capturing, "CURRENT_RUSTC_VERSION", Some(123432)),
315+
(accepted, precise_capturing, "1.82.0", Some(123432)),
316316
/// Allows procedural macros in `proc-macro` crates.
317317
(accepted, proc_macro, "1.29.0", Some(38356)),
318318
/// Allows multi-segment paths in attributes and derives.
@@ -326,7 +326,7 @@ declare_features! (
326326
/// Allows keywords to be escaped for use as identifiers.
327327
(accepted, raw_identifiers, "1.30.0", Some(48589)),
328328
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
329-
(accepted, raw_ref_op, "CURRENT_RUSTC_VERSION", Some(64490)),
329+
(accepted, raw_ref_op, "1.82.0", Some(64490)),
330330
/// Allows relaxing the coherence rules such that
331331
/// `impl<T> ForeignTrait<LocalType> for ForeignType<T>` is permitted.
332332
(accepted, re_rebalance_coherence, "1.41.0", Some(55437)),
@@ -399,11 +399,11 @@ declare_features! (
399399
/// Allows arbitrary delimited token streams in non-macro attributes.
400400
(accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208)),
401401
/// Allows unsafe attributes.
402-
(accepted, unsafe_attributes, "CURRENT_RUSTC_VERSION", Some(123757)),
402+
(accepted, unsafe_attributes, "1.82.0", Some(123757)),
403403
/// The `unsafe_op_in_unsafe_fn` lint (allowed by default): no longer treat an unsafe function as an unsafe block.
404404
(accepted, unsafe_block_in_unsafe_fn, "1.52.0", Some(71668)),
405405
/// Allows unsafe on extern declarations and safety qualifiers over internal items.
406-
(accepted, unsafe_extern_blocks, "CURRENT_RUSTC_VERSION", Some(123743)),
406+
(accepted, unsafe_extern_blocks, "1.82.0", Some(123743)),
407407
/// Allows importing and reexporting macros with `use`,
408408
/// enables macro modularization in general.
409409
(accepted, use_extern_macros, "1.30.0", Some(35896)),

compiler/rustc_feature/src/removed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ declare_features! (
8383
(removed, custom_derive, "1.32.0", Some(29644),
8484
Some("subsumed by `#[proc_macro_derive]`")),
8585
/// Allows default type parameters to influence type inference.
86-
(removed, default_type_parameter_fallback, "CURRENT_RUSTC_VERSION", Some(27336),
86+
(removed, default_type_parameter_fallback, "1.82.0", Some(27336),
8787
Some("never properly implemented; requires significant design work")),
8888
/// Allows using `#[doc(keyword = "...")]`.
8989
(removed, doc_keyword, "1.28.0", Some(51315),

compiler/rustc_feature/src/unstable.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ declare_features! (
208208
/// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
209209
(unstable, link_cfg, "1.14.0", None),
210210
/// Allows using `?Trait` trait bounds in more contexts.
211-
(internal, more_maybe_bounds, "CURRENT_RUSTC_VERSION", None),
211+
(internal, more_maybe_bounds, "1.82.0", None),
212212
/// Allows the `multiple_supertrait_upcastable` lint.
213213
(unstable, multiple_supertrait_upcastable, "1.69.0", None),
214214
/// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
@@ -302,7 +302,7 @@ declare_features! (
302302
// FIXME: Document these and merge with the list below.
303303

304304
// Unstable `#[target_feature]` directives.
305-
(unstable, aarch64_unstable_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
305+
(unstable, aarch64_unstable_target_feature, "1.82.0", Some(44839)),
306306
(unstable, aarch64_ver_target_feature, "1.27.0", Some(44839)),
307307
(unstable, arm_target_feature, "1.27.0", Some(44839)),
308308
(unstable, avx512_target_feature, "1.27.0", Some(44839)),
@@ -317,7 +317,7 @@ declare_features! (
317317
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
318318
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
319319
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
320-
(unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
320+
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
321321
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
322322
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
323323
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
@@ -474,7 +474,7 @@ declare_features! (
474474
/// Allows the use of `#[ffi_pure]` on foreign functions.
475475
(unstable, ffi_pure, "1.45.0", Some(58329)),
476476
/// Controlling the behavior of fmt::Debug
477-
(unstable, fmt_debug, "CURRENT_RUSTC_VERSION", Some(129709)),
477+
(unstable, fmt_debug, "1.82.0", Some(129709)),
478478
/// Allows using `#[repr(align(...))]` on function items
479479
(unstable, fn_align, "1.53.0", Some(82232)),
480480
/// Support delegating implementation of functions to other already implemented functions.
@@ -586,8 +586,8 @@ declare_features! (
586586
/// Allows `extern "rust-cold"`.
587587
(unstable, rust_cold_cc, "1.63.0", Some(97544)),
588588
/// Allows use of x86 SHA512, SM3 and SM4 target-features and intrinsics
589-
(unstable, sha512_sm_x86, "CURRENT_RUSTC_VERSION", Some(126624)),
590-
/// Shorten the tail expression lifetime
589+
(unstable, sha512_sm_x86, "1.82.0", Some(126624)),
590+
/// Shortern the tail expression lifetime
591591
(unstable, shorter_tail_lifetimes, "1.79.0", Some(123739)),
592592
/// Allows the use of SIMD types in functions declared in `extern` blocks.
593593
(unstable, simd_ffi, "1.0.0", Some(27731)),
@@ -625,7 +625,7 @@ declare_features! (
625625
(incomplete, unnamed_fields, "1.74.0", Some(49804)),
626626
/// Allows const generic parameters to be defined with types that
627627
/// are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
628-
(incomplete, unsized_const_params, "CURRENT_RUSTC_VERSION", Some(95174)),
628+
(incomplete, unsized_const_params, "1.82.0", Some(95174)),
629629
/// Allows unsized fn parameters.
630630
(internal, unsized_fn_params, "1.49.0", Some(48055)),
631631
/// Allows unsized rvalues at arguments and parameters.

compiler/rustc_llvm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
3-
#![cfg_attr(bootstrap, feature(unsafe_attributes, unsafe_extern_blocks))]
43
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
54
#![doc(rust_logo)]
65
#![feature(rustdoc_internals)]

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![allow(rustc::diagnostic_outside_of_impl)]
2929
#![allow(rustc::potential_query_instability)]
3030
#![allow(rustc::untranslatable_diagnostic)]
31-
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns, unsafe_extern_blocks))]
3231
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
3332
#![doc(rust_logo)]
3433
#![feature(allocator_api)]

compiler/rustc_target/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
1010
// tidy-alphabetical-start
1111
#![allow(internal_features)]
12-
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
1312
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1413
#![doc(rust_logo)]
1514
#![feature(assert_matches)]

compiler/rustc_transmute/src/layout/nfa.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ where
8787
pub(crate) fn from_tree(tree: Tree<!, R>) -> Result<Self, Uninhabited> {
8888
Ok(match tree {
8989
Tree::Byte(b) => Self::from_byte(b),
90-
#[cfg(bootstrap)]
91-
Tree::Def(..) => unreachable!(),
9290
Tree::Ref(r) => Self::from_ref(r),
9391
Tree::Alt(alts) => {
9492
let mut alts = alts.into_iter().map(Self::from_tree);

compiler/rustc_type_ir/src/fold.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ pub trait TypeFoldable<I: Interner>: TypeVisitable<I> {
9191
fn fold_with<F: TypeFolder<I>>(self, folder: &mut F) -> Self {
9292
match self.try_fold_with(folder) {
9393
Ok(t) => t,
94-
#[cfg(bootstrap)]
95-
Err(e) => match e {},
9694
}
9795
}
9896
}
@@ -116,8 +114,6 @@ pub trait TypeSuperFoldable<I: Interner>: TypeFoldable<I> {
116114
fn super_fold_with<F: TypeFolder<I>>(self, folder: &mut F) -> Self {
117115
match self.try_super_fold_with(folder) {
118116
Ok(t) => t,
119-
#[cfg(bootstrap)]
120-
Err(e) => match e {},
121117
}
122118
}
123119
}

0 commit comments

Comments
 (0)