Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c09561c

Browse files
committedJan 7, 2025
update version placeholders
1 parent 319f529 commit c09561c

File tree

27 files changed

+86
-86
lines changed

27 files changed

+86
-86
lines changed
 

‎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
@@ -331,7 +331,7 @@ declare_features! (
331331
(unstable, hexagon_target_feature, "1.27.0", Some(44839)),
332332
(unstable, lahfsahf_target_feature, "1.78.0", Some(44839)),
333333
(unstable, loongarch_target_feature, "1.73.0", Some(44839)),
334-
(unstable, m68k_target_feature, "CURRENT_RUSTC_VERSION", Some(134328)),
334+
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
335335
(unstable, mips_target_feature, "1.27.0", Some(44839)),
336336
(unstable, powerpc_target_feature, "1.27.0", Some(44839)),
337337
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
@@ -342,7 +342,7 @@ declare_features! (
342342
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
343343
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
344344
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
345-
(unstable, x87_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
345+
(unstable, x87_target_feature, "1.85.0", Some(44839)),
346346
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
347347
// Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
348348
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
@@ -378,25 +378,25 @@ declare_features! (
378378
/// Enables experimental inline assembly support for additional architectures.
379379
(unstable, asm_experimental_arch, "1.58.0", Some(93335)),
380380
/// Enables experimental register support in inline assembly.
381-
(unstable, asm_experimental_reg, "CURRENT_RUSTC_VERSION", Some(133416)),
381+
(unstable, asm_experimental_reg, "1.85.0", Some(133416)),
382382
/// Allows using `label` operands in inline assembly.
383383
(unstable, asm_goto, "1.78.0", Some(119364)),
384384
/// Allows using `label` operands in inline assembly together with output operands.
385-
(unstable, asm_goto_with_outputs, "CURRENT_RUSTC_VERSION", Some(119364)),
385+
(unstable, asm_goto_with_outputs, "1.85.0", Some(119364)),
386386
/// Allows the `may_unwind` option in inline assembly.
387387
(unstable, asm_unwind, "1.58.0", Some(93334)),
388388
/// Allows users to enforce equality of associated constants `TraitImpl<AssocConst=3>`.
389389
(unstable, associated_const_equality, "1.58.0", Some(92827)),
390390
/// Allows associated type defaults.
391391
(unstable, associated_type_defaults, "1.2.0", Some(29661)),
392392
/// Allows async functions to be called from `dyn Trait`.
393-
(incomplete, async_fn_in_dyn_trait, "CURRENT_RUSTC_VERSION", Some(133119)),
393+
(incomplete, async_fn_in_dyn_trait, "1.85.0", Some(133119)),
394394
/// Allows `#[track_caller]` on async functions.
395395
(unstable, async_fn_track_caller, "1.73.0", Some(110011)),
396396
/// Allows `for await` loops.
397397
(unstable, async_for_loop, "1.77.0", Some(118898)),
398398
/// Allows `async` trait bound modifier.
399-
(unstable, async_trait_bounds, "CURRENT_RUSTC_VERSION", Some(62290)),
399+
(unstable, async_trait_bounds, "1.85.0", Some(62290)),
400400
/// Allows using C-variadics.
401401
(unstable, c_variadic, "1.34.0", Some(44930)),
402402
/// Allows the use of `#[cfg(<true/false>)]`.
@@ -434,7 +434,7 @@ declare_features! (
434434
/// Allows `const || {}` closures in const contexts.
435435
(incomplete, const_closures, "1.68.0", Some(106003)),
436436
/// Allows using `~const Destruct` bounds and calling drop impls in const contexts.
437-
(unstable, const_destruct, "CURRENT_RUSTC_VERSION", Some(133214)),
437+
(unstable, const_destruct, "1.85.0", Some(133214)),
438438
/// Allows `for _ in _` loops in const contexts.
439439
(unstable, const_for, "1.56.0", Some(87575)),
440440
/// Be more precise when looking for live drops in a const context.
@@ -458,7 +458,7 @@ declare_features! (
458458
(unstable, decl_macro, "1.17.0", Some(39412)),
459459
/// Allows the use of default values on struct definitions and the construction of struct
460460
/// literals with the functional update syntax without a base.
461-
(unstable, default_field_values, "CURRENT_RUSTC_VERSION", Some(132162)),
461+
(unstable, default_field_values, "1.85.0", Some(132162)),
462462
/// Allows using `#[deprecated_safe]` to deprecate the safeness of a function or trait
463463
(unstable, deprecated_safe, "1.61.0", Some(94978)),
464464
/// Allows having using `suggestion` in the `#[deprecated]` attribute.
@@ -508,7 +508,7 @@ declare_features! (
508508
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
509509
(unstable, global_registration, "1.80.0", Some(125119)),
510510
/// Allows using guards in patterns.
511-
(incomplete, guard_patterns, "CURRENT_RUSTC_VERSION", Some(129967)),
511+
(incomplete, guard_patterns, "1.85.0", Some(129967)),
512512
/// Allows using `..=X` as a patterns in slices.
513513
(unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
514514
/// Allows `if let` guard in match arms.
@@ -637,9 +637,9 @@ declare_features! (
637637
/// not changed from prior instances of the same struct (RFC #2528)
638638
(unstable, type_changing_struct_update, "1.58.0", Some(86555)),
639639
/// Allows using `unsafe<'a> &'a T` unsafe binder types.
640-
(incomplete, unsafe_binders, "CURRENT_RUSTC_VERSION", Some(130516)),
640+
(incomplete, unsafe_binders, "1.85.0", Some(130516)),
641641
/// Allows declaring fields `unsafe`.
642-
(incomplete, unsafe_fields, "CURRENT_RUSTC_VERSION", Some(132922)),
642+
(incomplete, unsafe_fields, "1.85.0", Some(132922)),
643643
/// Allows const generic parameters to be defined with types that
644644
/// are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
645645
(incomplete, unsized_const_params, "1.82.0", Some(95174)),

‎library/alloc/src/boxed.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
20092009
}
20102010

20112011
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2012-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2012+
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "1.85.0"))]
20132013
impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args> for Box<F, A> {
20142014
type Output = F::Output;
20152015
type CallOnceFuture = F::CallOnceFuture;
@@ -2020,7 +2020,7 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
20202020
}
20212021

20222022
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2023-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2023+
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "1.85.0"))]
20242024
impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> for Box<F, A> {
20252025
type CallRefFuture<'a>
20262026
= F::CallRefFuture<'a>
@@ -2033,7 +2033,7 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
20332033
}
20342034

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

‎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/hash/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,10 @@ 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")]
755+
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
756756
#[rustc_const_stable(
757757
feature = "build_hasher_default_const_new",
758-
since = "CURRENT_RUSTC_VERSION"
758+
since = "1.85.0"
759759
)]
760760
pub const fn new() -> Self {
761761
BuildHasherDefault(marker::PhantomData)

‎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
};

‎library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ impl<T> MaybeUninit<T> {
507507
/// ```
508508
#[inline(always)]
509509
#[stable(feature = "maybe_uninit_write", since = "1.55.0")]
510-
#[rustc_const_stable(feature = "const_maybe_uninit_write", since = "CURRENT_RUSTC_VERSION")]
510+
#[rustc_const_stable(feature = "const_maybe_uninit_write", since = "1.85.0")]
511511
pub const fn write(&mut self, val: T) -> &mut T {
512512
*self = MaybeUninit::new(val);
513513
// SAFETY: We just initialized this value.

‎library/core/src/mem/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ pub const fn size_of<T>() -> usize {
333333
#[inline]
334334
#[must_use]
335335
#[stable(feature = "rust1", since = "1.0.0")]
336-
#[rustc_const_stable(feature = "const_size_of_val", since = "CURRENT_RUSTC_VERSION")]
336+
#[rustc_const_stable(feature = "const_size_of_val", since = "1.85.0")]
337337
#[cfg_attr(not(test), rustc_diagnostic_item = "mem_size_of_val")]
338338
pub const fn size_of_val<T: ?Sized>(val: &T) -> usize {
339339
// SAFETY: `val` is a reference, so it's a valid raw pointer
@@ -484,7 +484,7 @@ pub const fn align_of<T>() -> usize {
484484
#[inline]
485485
#[must_use]
486486
#[stable(feature = "rust1", since = "1.0.0")]
487-
#[rustc_const_stable(feature = "const_align_of_val", since = "CURRENT_RUSTC_VERSION")]
487+
#[rustc_const_stable(feature = "const_align_of_val", since = "1.85.0")]
488488
#[allow(deprecated)]
489489
pub const fn align_of_val<T: ?Sized>(val: &T) -> usize {
490490
// SAFETY: val is a reference, so it's a valid raw pointer
@@ -725,7 +725,7 @@ pub unsafe fn uninitialized<T>() -> T {
725725
/// ```
726726
#[inline]
727727
#[stable(feature = "rust1", since = "1.0.0")]
728-
#[rustc_const_stable(feature = "const_swap", since = "CURRENT_RUSTC_VERSION")]
728+
#[rustc_const_stable(feature = "const_swap", since = "1.85.0")]
729729
#[rustc_diagnostic_item = "mem_swap"]
730730
pub const fn swap<T>(x: &mut T, y: &mut T) {
731731
// SAFETY: `&mut` guarantees these are typed readable and writable

‎library/core/src/num/f32.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ impl f32 {
818818
/// ```
819819
#[must_use = "this returns the result of the operation, without modifying the original"]
820820
#[stable(feature = "rust1", since = "1.0.0")]
821-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
821+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
822822
#[inline]
823823
pub const fn recip(self) -> f32 {
824824
1.0 / self
@@ -836,7 +836,7 @@ impl f32 {
836836
#[must_use = "this returns the result of the operation, \
837837
without modifying the original"]
838838
#[stable(feature = "f32_deg_rad_conversions", since = "1.7.0")]
839-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
839+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
840840
#[inline]
841841
pub const fn to_degrees(self) -> f32 {
842842
// Use a constant for better precision.
@@ -856,7 +856,7 @@ impl f32 {
856856
#[must_use = "this returns the result of the operation, \
857857
without modifying the original"]
858858
#[stable(feature = "f32_deg_rad_conversions", since = "1.7.0")]
859-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
859+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
860860
#[inline]
861861
pub const fn to_radians(self) -> f32 {
862862
const RADS_PER_DEG: f32 = consts::PI / 180.0;
@@ -878,7 +878,7 @@ impl f32 {
878878
/// ```
879879
#[must_use = "this returns the result of the comparison, without modifying either input"]
880880
#[stable(feature = "rust1", since = "1.0.0")]
881-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
881+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
882882
#[inline]
883883
pub const fn max(self, other: f32) -> f32 {
884884
intrinsics::maxnumf32(self, other)
@@ -899,7 +899,7 @@ impl f32 {
899899
/// ```
900900
#[must_use = "this returns the result of the comparison, without modifying either input"]
901901
#[stable(feature = "rust1", since = "1.0.0")]
902-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
902+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
903903
#[inline]
904904
pub const fn min(self, other: f32) -> f32 {
905905
intrinsics::minnumf32(self, other)
@@ -988,8 +988,8 @@ impl f32 {
988988
/// assert_eq!((-5.5f32).midpoint(8.0), 1.25);
989989
/// ```
990990
#[inline]
991-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
992-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
991+
#[stable(feature = "num_midpoint", since = "1.85.0")]
992+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
993993
pub const fn midpoint(self, other: f32) -> f32 {
994994
cfg_if! {
995995
// Allow faster implementation that have known good 64-bit float
@@ -1396,7 +1396,7 @@ impl f32 {
13961396
/// ```
13971397
#[must_use = "method returns a new number and does not mutate the original value"]
13981398
#[stable(feature = "clamp", since = "1.50.0")]
1399-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1399+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14001400
#[inline]
14011401
pub const fn clamp(mut self, min: f32, max: f32) -> f32 {
14021402
const_assert!(
@@ -1433,7 +1433,7 @@ impl f32 {
14331433
/// ```
14341434
#[must_use = "method returns a new number and does not mutate the original value"]
14351435
#[stable(feature = "rust1", since = "1.0.0")]
1436-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1436+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14371437
#[inline]
14381438
pub const fn abs(self) -> f32 {
14391439
// SAFETY: this is actually a safe intrinsic
@@ -1458,7 +1458,7 @@ impl f32 {
14581458
/// ```
14591459
#[must_use = "method returns a new number and does not mutate the original value"]
14601460
#[stable(feature = "rust1", since = "1.0.0")]
1461-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1461+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14621462
#[inline]
14631463
pub const fn signum(self) -> f32 {
14641464
if self.is_nan() { Self::NAN } else { 1.0_f32.copysign(self) }
@@ -1493,7 +1493,7 @@ impl f32 {
14931493
#[must_use = "method returns a new number and does not mutate the original value"]
14941494
#[inline]
14951495
#[stable(feature = "copysign", since = "1.35.0")]
1496-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1496+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14971497
pub const fn copysign(self, sign: f32) -> f32 {
14981498
// SAFETY: this is actually a safe intrinsic
14991499
unsafe { intrinsics::copysignf32(self, sign) }
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.