Skip to content

Commit 251206c

Browse files
committed
Auto merge of rust-lang#135268 - pietroalbini:pa-bump-stage0, r=Mark-Simulacrum
Master bootstrap update Part of the release process. r? `@Mark-Simulacrum`
2 parents ec12cd8 + d894ce8 commit 251206c

File tree

59 files changed

+593
-710
lines changed

Some content is hidden

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

59 files changed

+593
-710
lines changed

compiler/rustc_ast/src/util/comments/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_span::create_default_session_globals_then;
44

compiler/rustc_ast_passes/src/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ fn check_new_solver_banned_features(sess: &Session, features: &Features) {
692692
.find(|feat| feat.gate_name == sym::generic_const_exprs)
693693
.map(|feat| feat.attr_sp)
694694
{
695-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
695+
#[allow(rustc::symbol_intern_string_literal)]
696696
sess.dcx().emit_err(errors::IncompatibleFeatures {
697697
spans: vec![gce_span],
698698
f1: Symbol::intern("-Znext-solver=globally"),

compiler/rustc_feature/src/accepted.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare_features! (
7373
/// Allows free and inherent `async fn`s, `async` blocks, and `<expr>.await` expressions.
7474
(accepted, async_await, "1.39.0", Some(50547)),
7575
/// Allows `async || body` closures.
76-
(accepted, async_closure, "CURRENT_RUSTC_VERSION", Some(62290)),
76+
(accepted, async_closure, "1.85.0", Some(62290)),
7777
/// Allows async functions to be declared, implemented, and used in traits.
7878
(accepted, async_fn_in_trait, "1.75.0", Some(91611)),
7979
/// Allows all literals in attribute lists and values of key-value pairs.
@@ -176,7 +176,7 @@ declare_features! (
176176
/// Allows using the `#[diagnostic]` attribute tool namespace
177177
(accepted, diagnostic_namespace, "1.78.0", Some(111996)),
178178
/// Controls errors in trait implementations.
179-
(accepted, do_not_recommend, "CURRENT_RUSTC_VERSION", Some(51992)),
179+
(accepted, do_not_recommend, "1.85.0", Some(51992)),
180180
/// Allows `#[doc(alias = "...")]`.
181181
(accepted, doc_alias, "1.48.0", Some(50146)),
182182
/// Allows `..` in tuple (struct) patterns.
@@ -199,7 +199,7 @@ declare_features! (
199199
(accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
200200
/// Allows using `efiapi`, `aapcs`, `sysv64` and `win64` as calling
201201
/// convention for functions with varargs.
202-
(accepted, extended_varargs_abi_support, "CURRENT_RUSTC_VERSION", Some(100189)),
202+
(accepted, extended_varargs_abi_support, "1.85.0", Some(100189)),
203203
/// Allows resolving absolute paths as paths from other crates.
204204
(accepted, extern_absolute_paths, "1.30.0", Some(44660)),
205205
/// Allows `extern crate foo as bar;`. This puts `bar` into extern prelude.

compiler/rustc_feature/src/removed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ declare_features! (
120120
/// Allows defining generators.
121121
(removed, generators, "1.21.0", Some(43122), Some("renamed to `coroutines`")),
122122
/// An extension to the `generic_associated_types` feature, allowing incomplete features.
123-
(removed, generic_associated_types_extended, "CURRENT_RUSTC_VERSION", Some(95451),
123+
(removed, generic_associated_types_extended, "1.85.0", Some(95451),
124124
Some(
125125
"feature needs overhaul and reimplementation pending \
126126
better implied higher-ranked implied bounds support"

compiler/rustc_feature/src/unstable.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ declare_features! (
333333
(unstable, hexagon_target_feature, "1.27.0", Some(44839)),
334334
(unstable, lahfsahf_target_feature, "1.78.0", Some(44839)),
335335
(unstable, loongarch_target_feature, "1.73.0", Some(44839)),
336-
(unstable, m68k_target_feature, "CURRENT_RUSTC_VERSION", Some(134328)),
336+
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
337337
(unstable, mips_target_feature, "1.27.0", Some(44839)),
338338
(unstable, powerpc_target_feature, "1.27.0", Some(44839)),
339339
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
@@ -344,7 +344,7 @@ declare_features! (
344344
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
345345
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
346346
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
347-
(unstable, x87_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
347+
(unstable, x87_target_feature, "1.85.0", Some(44839)),
348348
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
349349
// Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
350350
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
@@ -380,25 +380,25 @@ declare_features! (
380380
/// Enables experimental inline assembly support for additional architectures.
381381
(unstable, asm_experimental_arch, "1.58.0", Some(93335)),
382382
/// Enables experimental register support in inline assembly.
383-
(unstable, asm_experimental_reg, "CURRENT_RUSTC_VERSION", Some(133416)),
383+
(unstable, asm_experimental_reg, "1.85.0", Some(133416)),
384384
/// Allows using `label` operands in inline assembly.
385385
(unstable, asm_goto, "1.78.0", Some(119364)),
386386
/// Allows using `label` operands in inline assembly together with output operands.
387-
(unstable, asm_goto_with_outputs, "CURRENT_RUSTC_VERSION", Some(119364)),
387+
(unstable, asm_goto_with_outputs, "1.85.0", Some(119364)),
388388
/// Allows the `may_unwind` option in inline assembly.
389389
(unstable, asm_unwind, "1.58.0", Some(93334)),
390390
/// Allows users to enforce equality of associated constants `TraitImpl<AssocConst=3>`.
391391
(unstable, associated_const_equality, "1.58.0", Some(92827)),
392392
/// Allows associated type defaults.
393393
(unstable, associated_type_defaults, "1.2.0", Some(29661)),
394394
/// Allows async functions to be called from `dyn Trait`.
395-
(incomplete, async_fn_in_dyn_trait, "CURRENT_RUSTC_VERSION", Some(133119)),
395+
(incomplete, async_fn_in_dyn_trait, "1.85.0", Some(133119)),
396396
/// Allows `#[track_caller]` on async functions.
397397
(unstable, async_fn_track_caller, "1.73.0", Some(110011)),
398398
/// Allows `for await` loops.
399399
(unstable, async_for_loop, "1.77.0", Some(118898)),
400400
/// Allows `async` trait bound modifier.
401-
(unstable, async_trait_bounds, "CURRENT_RUSTC_VERSION", Some(62290)),
401+
(unstable, async_trait_bounds, "1.85.0", Some(62290)),
402402
/// Allows using C-variadics.
403403
(unstable, c_variadic, "1.34.0", Some(44930)),
404404
/// Allows the use of `#[cfg(<true/false>)]`.
@@ -436,7 +436,7 @@ declare_features! (
436436
/// Allows `const || {}` closures in const contexts.
437437
(incomplete, const_closures, "1.68.0", Some(106003)),
438438
/// Allows using `~const Destruct` bounds and calling drop impls in const contexts.
439-
(unstable, const_destruct, "CURRENT_RUSTC_VERSION", Some(133214)),
439+
(unstable, const_destruct, "1.85.0", Some(133214)),
440440
/// Allows `for _ in _` loops in const contexts.
441441
(unstable, const_for, "1.56.0", Some(87575)),
442442
/// Be more precise when looking for live drops in a const context.
@@ -460,7 +460,7 @@ declare_features! (
460460
(unstable, decl_macro, "1.17.0", Some(39412)),
461461
/// Allows the use of default values on struct definitions and the construction of struct
462462
/// literals with the functional update syntax without a base.
463-
(unstable, default_field_values, "CURRENT_RUSTC_VERSION", Some(132162)),
463+
(unstable, default_field_values, "1.85.0", Some(132162)),
464464
/// Allows using `#[deprecated_safe]` to deprecate the safeness of a function or trait
465465
(unstable, deprecated_safe, "1.61.0", Some(94978)),
466466
/// Allows having using `suggestion` in the `#[deprecated]` attribute.
@@ -510,7 +510,7 @@ declare_features! (
510510
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
511511
(unstable, global_registration, "1.80.0", Some(125119)),
512512
/// Allows using guards in patterns.
513-
(incomplete, guard_patterns, "CURRENT_RUSTC_VERSION", Some(129967)),
513+
(incomplete, guard_patterns, "1.85.0", Some(129967)),
514514
/// Allows using `..=X` as a patterns in slices.
515515
(unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
516516
/// Allows `if let` guard in match arms.
@@ -639,9 +639,9 @@ declare_features! (
639639
/// not changed from prior instances of the same struct (RFC #2528)
640640
(unstable, type_changing_struct_update, "1.58.0", Some(86555)),
641641
/// Allows using `unsafe<'a> &'a T` unsafe binder types.
642-
(incomplete, unsafe_binders, "CURRENT_RUSTC_VERSION", Some(130516)),
642+
(incomplete, unsafe_binders, "1.85.0", Some(130516)),
643643
/// Allows declaring fields `unsafe`.
644-
(incomplete, unsafe_fields, "CURRENT_RUSTC_VERSION", Some(132922)),
644+
(incomplete, unsafe_fields, "1.85.0", Some(132922)),
645645
/// Allows const generic parameters to be defined with types that
646646
/// are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
647647
(incomplete, unsized_const_params, "1.82.0", Some(95174)),

compiler/rustc_hir/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_data_structures::stable_hasher::Hash64;
44
use rustc_span::def_id::{DefPathHash, StableCrateId};

compiler/rustc_lint/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_span::{Symbol, create_default_session_globals_then};
44

compiler/rustc_metadata/src/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
867867
// First up we check for global allocators. Look at the crate graph here
868868
// and see what's a global allocator, including if we ourselves are a
869869
// global allocator.
870-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
870+
#[allow(rustc::symbol_intern_string_literal)]
871871
let this_crate = Symbol::intern("this crate");
872872

873873
let mut global_allocator = self.cstore.has_global_allocator.then_some(this_crate);

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ impl MetadataBlob {
871871

872872
let def_kind = root.tables.def_kind.get(blob, item).unwrap();
873873
let def_key = root.tables.def_keys.get(blob, item).unwrap().decode(blob);
874-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
874+
#[allow(rustc::symbol_intern_string_literal)]
875875
let def_name = if item == CRATE_DEF_INDEX {
876876
kw::Crate
877877
} else {

compiler/rustc_parse/src/parser/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use std::assert_matches::assert_matches;
44
use std::io::prelude::*;

0 commit comments

Comments
 (0)