Skip to content

Commit 251206c

Browse files
committed
Auto merge of #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

+1-1
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

+1-1
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

+3-3
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

+1-1
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

+11-11
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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::*;

compiler/rustc_parse/src/parser/tokenstream/tests.rs

+1-1
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_ast::token::{self, IdentIsRaw};
44
use rustc_ast::tokenstream::{TokenStream, TokenTree};

compiler/rustc_resolve/src/late/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ impl<'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
31573157
}
31583158
}
31593159

3160-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
3160+
#[allow(rustc::symbol_intern_string_literal)]
31613161
let existing_name = match &in_scope_lifetimes[..] {
31623162
[] => Symbol::intern("'a"),
31633163
[(existing, _)] => existing.name,

compiler/rustc_span/src/edit_distance/tests.rs

+1-1
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 super::*;
44

library/alloc/src/boxed.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -2028,8 +2028,7 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
20282028
}
20292029
}
20302030

2031-
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2032-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2031+
#[stable(feature = "async_closure", since = "1.85.0")]
20332032
impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args> for Box<F, A> {
20342033
type Output = F::Output;
20352034
type CallOnceFuture = F::CallOnceFuture;
@@ -2039,8 +2038,7 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
20392038
}
20402039
}
20412040

2042-
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2043-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2041+
#[stable(feature = "async_closure", since = "1.85.0")]
20442042
impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> for Box<F, A> {
20452043
type CallRefFuture<'a>
20462044
= F::CallRefFuture<'a>
@@ -2052,8 +2050,7 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
20522050
}
20532051
}
20542052

2055-
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2056-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2053+
#[stable(feature = "async_closure", since = "1.85.0")]
20572054
impl<Args: Tuple, F: AsyncFn<Args> + ?Sized, A: Allocator> AsyncFn<Args> for Box<F, A> {
20582055
extern "rust-call" fn async_call(&self, args: Args) -> Self::CallRefFuture<'_> {
20592056
F::async_call(self, args)

library/alloc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
//
9292
// Library features:
9393
// tidy-alphabetical-start
94-
#![cfg_attr(bootstrap, feature(async_closure))]
9594
#![cfg_attr(test, feature(str_as_str))]
9695
#![feature(alloc_layout_extra)]
9796
#![feature(allocator_api)]

library/core/src/alloc/layout.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl Layout {
178178
/// allocate backing structure for `T` (which could be a trait
179179
/// or other unsized type like a slice).
180180
#[stable(feature = "alloc_layout", since = "1.28.0")]
181-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
181+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
182182
#[must_use]
183183
#[inline]
184184
pub const fn for_value<T: ?Sized>(t: &T) -> Self {
@@ -252,7 +252,7 @@ impl Layout {
252252
/// Returns an error if the combination of `self.size()` and the given
253253
/// `align` violates the conditions listed in [`Layout::from_size_align`].
254254
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
255-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
255+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
256256
#[inline]
257257
pub const fn align_to(&self, align: usize) -> Result<Self, LayoutError> {
258258
if let Some(align) = Alignment::new(align) {
@@ -327,7 +327,7 @@ impl Layout {
327327
/// This is equivalent to adding the result of `padding_needed_for`
328328
/// to the layout's current size.
329329
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
330-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
330+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
331331
#[must_use = "this returns a new `Layout`, \
332332
without modifying the original"]
333333
#[inline]
@@ -426,7 +426,7 @@ impl Layout {
426426
/// # assert_eq!(repr_c(&[u64, u32, u16, u32]), Ok((s, vec![0, 8, 12, 16])));
427427
/// ```
428428
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
429-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
429+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
430430
#[inline]
431431
pub const fn extend(&self, next: Self) -> Result<(Self, usize), LayoutError> {
432432
let new_align = Alignment::max(self.align, next.align);
@@ -489,7 +489,7 @@ impl Layout {
489489
/// On arithmetic overflow or when the total size would exceed
490490
/// `isize::MAX`, returns `LayoutError`.
491491
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
492-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
492+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
493493
#[inline]
494494
pub const fn array<T>(n: usize) -> Result<Self, LayoutError> {
495495
// Reduce the amount of code we need to monomorphize per `T`.

library/core/src/arch.rs

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?
6565
// When stabilizing this, update the comment on `core::intrinsics::breakpoint`.
6666
#[unstable(feature = "breakpoint", issue = "133724")]
6767
#[inline(always)]
68-
#[cfg(not(bootstrap))]
6968
pub fn breakpoint() {
7069
core::intrinsics::breakpoint();
7170
}

library/core/src/future/async_drop.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ pub trait AsyncDrop {
133133
}
134134

135135
#[lang = "async_destruct"]
136-
#[cfg_attr(bootstrap, rustc_deny_explicit_impl(implement_via_object = false))]
137-
#[cfg_attr(not(bootstrap), rustc_deny_explicit_impl)]
138-
#[cfg_attr(not(bootstrap), rustc_do_not_implement_via_object)]
136+
#[rustc_deny_explicit_impl]
137+
#[rustc_do_not_implement_via_object]
139138
trait AsyncDestruct {
140139
type AsyncDestructor: Future<Output = ()>;
141140
}

library/core/src/hash/mod.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,8 @@ pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
752752

753753
impl<H> BuildHasherDefault<H> {
754754
/// Creates a new BuildHasherDefault for Hasher `H`.
755-
#[stable(feature = "build_hasher_default_const_new", since = "CURRENT_RUSTC_VERSION")]
756-
#[rustc_const_stable(
757-
feature = "build_hasher_default_const_new",
758-
since = "CURRENT_RUSTC_VERSION"
759-
)]
755+
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
756+
#[rustc_const_stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
760757
pub const fn new() -> Self {
761758
BuildHasherDefault(marker::PhantomData)
762759
}

library/core/src/intrinsics/mod.rs

+2-30
Original file line numberDiff line numberDiff line change
@@ -1382,22 +1382,10 @@ pub unsafe fn prefetch_write_instruction<T>(_data: *const T, _locality: i32) {
13821382
#[rustc_intrinsic]
13831383
#[rustc_intrinsic_must_be_overridden]
13841384
#[rustc_nounwind]
1385-
#[cfg(not(bootstrap))]
13861385
pub fn breakpoint() {
13871386
unreachable!()
13881387
}
13891388

1390-
/// Executes a breakpoint trap, for inspection by a debugger.
1391-
///
1392-
/// This intrinsic does not have a stable counterpart.
1393-
#[rustc_intrinsic]
1394-
#[rustc_intrinsic_must_be_overridden]
1395-
#[rustc_nounwind]
1396-
#[cfg(bootstrap)]
1397-
pub unsafe fn breakpoint() {
1398-
unreachable!()
1399-
}
1400-
14011389
/// Magic intrinsic that derives its meaning from attributes
14021390
/// attached to the function.
14031391
///
@@ -3323,8 +3311,8 @@ pub const fn mul_with_overflow<T: Copy>(_x: T, _y: T) -> (T, bool) {
33233311
#[unstable(feature = "core_intrinsics", issue = "none")]
33243312
#[rustc_const_unstable(feature = "const_carrying_mul_add", issue = "85532")]
33253313
#[rustc_nounwind]
3326-
#[cfg_attr(not(bootstrap), rustc_intrinsic)]
3327-
#[cfg_attr(not(bootstrap), miri::intrinsic_fallback_is_spec)]
3314+
#[rustc_intrinsic]
3315+
#[miri::intrinsic_fallback_is_spec]
33283316
pub const fn carrying_mul_add<T: ~const fallback::CarryingMulAdd<Unsigned = U>, U>(
33293317
multiplier: T,
33303318
multiplicand: T,
@@ -3969,21 +3957,6 @@ pub const fn is_val_statically_known<T: Copy>(_arg: T) -> bool {
39693957
false
39703958
}
39713959

3972-
#[rustc_nounwind]
3973-
#[inline]
3974-
#[rustc_intrinsic]
3975-
#[rustc_intrinsic_const_stable_indirect]
3976-
#[rustc_allow_const_fn_unstable(const_swap_nonoverlapping)] // this is anyway not called since CTFE implements the intrinsic
3977-
#[cfg(bootstrap)]
3978-
pub const unsafe fn typed_swap<T>(x: *mut T, y: *mut T) {
3979-
// SAFETY: The caller provided single non-overlapping items behind
3980-
// pointers, so swapping them with `count: 1` is fine.
3981-
unsafe { ptr::swap_nonoverlapping(x, y, 1) };
3982-
}
3983-
3984-
#[cfg(bootstrap)]
3985-
pub use typed_swap as typed_swap_nonoverlapping;
3986-
39873960
/// Non-overlapping *typed* swap of a single value.
39883961
///
39893962
/// The codegen backends will replace this with a better implementation when
@@ -3999,7 +3972,6 @@ pub use typed_swap as typed_swap_nonoverlapping;
39993972
#[rustc_intrinsic]
40003973
#[rustc_intrinsic_const_stable_indirect]
40013974
#[rustc_allow_const_fn_unstable(const_swap_nonoverlapping)] // this is anyway not called since CTFE implements the intrinsic
4002-
#[cfg(not(bootstrap))]
40033975
pub const unsafe fn typed_swap_nonoverlapping<T>(x: *mut T, y: *mut T) {
40043976
// SAFETY: The caller provided single non-overlapping items behind
40053977
// pointers, so swapping them with `count: 1` is fine.

library/core/src/intrinsics/simd.rs

-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,6 @@ extern "rust-intrinsic" {
623623
/// and others do not.
624624
///
625625
/// `T` must be a vector of floats.
626-
#[cfg(not(bootstrap))]
627626
#[rustc_nounwind]
628627
pub fn simd_relaxed_fma<T>(x: T, y: T, z: T) -> T;
629628

library/core/src/iter/traits/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ macro_rules! spec_tuple_impl {
472472
#[doc(fake_variadic)]
473473
#[doc = "This trait is implemented for tuples up to twelve items long. The `impl`s for \
474474
1- and 3- through 12-ary tuples were stabilized after 2-tuples, in \
475-
CURRENT_RUSTC_VERSION."]
475+
1.85.0."]
476476
=> ($ty_name, $var_name, $extend_ty_name, $cnt),
477477
);
478478
};

0 commit comments

Comments
 (0)