Skip to content

Commit 567fd96

Browse files
committed
replace placeholder version
1 parent 3678036 commit 567fd96

31 files changed

+170
-179
lines changed

Diff for: compiler/rustc_feature/src/accepted.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -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 the definition of `const extern fn` and `const unsafe extern fn`.
119-
(accepted, const_extern_fn, "CURRENT_RUSTC_VERSION", Some(64926)),
119+
(accepted, const_extern_fn, "1.83.0", Some(64926)),
120120
/// Allows basic arithmetic on floating point types in a `const fn`.
121121
(accepted, const_fn_floating_point_arithmetic, "1.82.0", Some(57241)),
122122
/// Allows using and casting function pointers in a `const fn`.
@@ -144,15 +144,15 @@ declare_features! (
144144
/// Allows the use of `loop` and `while` in constants.
145145
(accepted, const_loop, "1.46.0", Some(52000)),
146146
/// Allows using `&mut` in constant functions.
147-
(accepted, const_mut_refs, "CURRENT_RUSTC_VERSION", Some(57349)),
147+
(accepted, const_mut_refs, "1.83.0", Some(57349)),
148148
/// Allows panicking during const eval (producing compile-time errors).
149149
(accepted, const_panic, "1.57.0", Some(51999)),
150150
/// Allows dereferencing raw pointers during const eval.
151151
(accepted, const_raw_ptr_deref, "1.58.0", Some(51911)),
152152
/// Allows references to types with interior mutability within constants
153-
(accepted, const_refs_to_cell, "CURRENT_RUSTC_VERSION", Some(80384)),
153+
(accepted, const_refs_to_cell, "1.83.0", Some(80384)),
154154
/// Allows creating pointers and references to `static` items in constants.
155-
(accepted, const_refs_to_static, "CURRENT_RUSTC_VERSION", Some(119618)),
155+
(accepted, const_refs_to_static, "1.83.0", Some(119618)),
156156
/// Allows implementing `Copy` for closures where possible (RFC 2132).
157157
(accepted, copy_closures, "1.26.0", Some(44490)),
158158
/// Allows `crate` in paths.
@@ -190,7 +190,7 @@ declare_features! (
190190
/// Allows explicit generic arguments specification with `impl Trait` present.
191191
(accepted, explicit_generic_args_with_impl_trait, "1.63.0", Some(83701)),
192192
/// Uses 2024 rules for matching `expr` fragments in macros. Also enables `expr_2021` fragment.
193-
(accepted, expr_fragment_specifier_2024, "CURRENT_RUSTC_VERSION", Some(123742)),
193+
(accepted, expr_fragment_specifier_2024, "1.83.0", Some(123742)),
194194
/// Allows arbitrary expressions in key-value attributes at parse time.
195195
(accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
196196
/// Allows resolving absolute paths as paths from other crates.

Diff for: compiler/rustc_feature/src/removed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ declare_features! (
156156
(removed, no_stack_check, "1.0.0", None, None),
157157
/// Allows making `dyn Trait` well-formed even if `Trait` is not dyn-compatible (object safe).
158158
/// Renamed to `dyn_compatible_for_dispatch`.
159-
(removed, object_safe_for_dispatch, "CURRENT_RUSTC_VERSION", Some(43561),
159+
(removed, object_safe_for_dispatch, "1.83.0", Some(43561),
160160
Some("renamed to `dyn_compatible_for_dispatch`")),
161161
/// Allows using `#[on_unimplemented(..)]` on traits.
162162
/// (Moved to `rustc_attrs`.)
@@ -221,7 +221,7 @@ declare_features! (
221221
/// Allows using items which are missing stability attributes
222222
(removed, unmarked_api, "1.0.0", None, None),
223223
/// Allows unnamed fields of struct and union type
224-
(removed, unnamed_fields, "CURRENT_RUSTC_VERSION", Some(49804), Some("feature needs redesign")),
224+
(removed, unnamed_fields, "1.83.0", Some(49804), Some("feature needs redesign")),
225225
(removed, unsafe_no_drop_flag, "1.0.0", None, None),
226226
/// Allows `union` fields that don't implement `Copy` as long as they don't have any drop glue.
227227
(removed, untagged_unions, "1.13.0", Some(55149),

Diff for: compiler/rustc_feature/src/unstable.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ declare_features! (
228228
/// Added for testing unstable lints; perma-unstable.
229229
(internal, test_unstable_lint, "1.60.0", None),
230230
/// Helps with formatting for `group_imports = "StdExternalCrate"`.
231-
(unstable, unqualified_local_imports, "CURRENT_RUSTC_VERSION", None),
231+
(unstable, unqualified_local_imports, "1.83.0", None),
232232
/// Use for stable + negative coherence and strict coherence depending on trait's
233233
/// rustc_strict_coherence value.
234234
(unstable, with_negative_coherence, "1.60.0", None),
@@ -266,7 +266,7 @@ declare_features! (
266266
/// Renamed from `object_safe_for_dispatch`.
267267
///
268268
/// [^1]: Formerly known as "object safe".
269-
(unstable, dyn_compatible_for_dispatch, "CURRENT_RUSTC_VERSION", Some(43561)),
269+
(unstable, dyn_compatible_for_dispatch, "1.83.0", Some(43561)),
270270
/// Allows using the `#[fundamental]` attribute.
271271
(unstable, fundamental, "1.0.0", Some(29635)),
272272
/// Allows using `#[link_name="llvm.*"]`.
@@ -360,7 +360,7 @@ declare_features! (
360360
/// Allows inherent and trait methods with arbitrary self types.
361361
(unstable, arbitrary_self_types, "1.23.0", Some(44874)),
362362
/// Allows inherent and trait methods with arbitrary self types that are raw pointers.
363-
(unstable, arbitrary_self_types_pointers, "CURRENT_RUSTC_VERSION", Some(44874)),
363+
(unstable, arbitrary_self_types_pointers, "1.83.0", Some(44874)),
364364
/// Enables experimental inline assembly support for additional architectures.
365365
(unstable, asm_experimental_arch, "1.58.0", Some(93335)),
366366
/// Allows using `label` operands in inline assembly.
@@ -380,7 +380,7 @@ declare_features! (
380380
/// Allows using C-variadics.
381381
(unstable, c_variadic, "1.34.0", Some(44930)),
382382
/// Allows the use of `#[cfg(<true/false>)]`.
383-
(unstable, cfg_boolean_literals, "CURRENT_RUSTC_VERSION", Some(131204)),
383+
(unstable, cfg_boolean_literals, "1.83.0", Some(131204)),
384384
/// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
385385
(unstable, cfg_overflow_checks, "1.71.0", Some(111466)),
386386
/// Provides the relocation model information as cfg entry
@@ -498,7 +498,7 @@ declare_features! (
498498
/// Allows `if let` guard in match arms.
499499
(unstable, if_let_guard, "1.47.0", Some(51114)),
500500
/// Rescoping temporaries in `if let` to align with Rust 2024.
501-
(unstable, if_let_rescope, "CURRENT_RUSTC_VERSION", Some(124085)),
501+
(unstable, if_let_rescope, "1.83.0", Some(124085)),
502502
/// Allows `impl Trait` to be used inside associated types (RFC 2515).
503503
(unstable, impl_trait_in_assoc_type, "1.70.0", Some(63063)),
504504
/// Allows `impl Trait` as output type in `Fn` traits in return position of functions.
@@ -563,11 +563,11 @@ declare_features! (
563563
/// Allows specifying nop padding on functions for dynamic patching.
564564
(unstable, patchable_function_entry, "1.81.0", Some(123115)),
565565
/// Experimental features that make `Pin` more ergonomic.
566-
(incomplete, pin_ergonomics, "CURRENT_RUSTC_VERSION", Some(130494)),
566+
(incomplete, pin_ergonomics, "1.83.0", Some(130494)),
567567
/// Allows postfix match `expr.match { ... }`
568568
(unstable, postfix_match, "1.79.0", Some(121618)),
569569
/// Allows `use<..>` precise capturign on impl Trait in traits.
570-
(unstable, precise_capturing_in_traits, "CURRENT_RUSTC_VERSION", Some(130044)),
570+
(unstable, precise_capturing_in_traits, "1.83.0", Some(130044)),
571571
/// Allows macro attributes on expressions, statements and non-inline modules.
572572
(unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
573573
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.

Diff for: library/core/src/array/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub const fn from_ref<T>(s: &T) -> &[T; 1] {
146146

147147
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
148148
#[stable(feature = "array_from_ref", since = "1.53.0")]
149-
#[rustc_const_stable(feature = "const_array_from_ref", since = "CURRENT_RUSTC_VERSION")]
149+
#[rustc_const_stable(feature = "const_array_from_ref", since = "1.83.0")]
150150
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
151151
pub const fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
152152
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.

Diff for: library/core/src/cell.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ impl<T> Cell<T> {
515515
/// assert_eq!(five, 5);
516516
/// ```
517517
#[stable(feature = "move_cell", since = "1.17.0")]
518-
#[rustc_const_stable(feature = "const_cell_into_inner", since = "CURRENT_RUSTC_VERSION")]
518+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.83.0")]
519519
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
520520
pub const fn into_inner(self) -> T {
521521
self.value.into_inner()
@@ -864,7 +864,7 @@ impl<T> RefCell<T> {
864864
/// let five = c.into_inner();
865865
/// ```
866866
#[stable(feature = "rust1", since = "1.0.0")]
867-
#[rustc_const_stable(feature = "const_cell_into_inner", since = "CURRENT_RUSTC_VERSION")]
867+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.83.0")]
868868
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
869869
#[inline]
870870
pub const fn into_inner(self) -> T {
@@ -2108,7 +2108,7 @@ impl<T> UnsafeCell<T> {
21082108
/// ```
21092109
#[inline(always)]
21102110
#[stable(feature = "rust1", since = "1.0.0")]
2111-
#[rustc_const_stable(feature = "const_cell_into_inner", since = "CURRENT_RUSTC_VERSION")]
2111+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.83.0")]
21122112
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
21132113
pub const fn into_inner(self) -> T {
21142114
self.value
@@ -2182,7 +2182,7 @@ impl<T: ?Sized> UnsafeCell<T> {
21822182
#[inline(always)]
21832183
#[stable(feature = "unsafe_cell_get_mut", since = "1.50.0")]
21842184
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
2185-
#[rustc_const_stable(feature = "const_unsafecell_get_mut", since = "CURRENT_RUSTC_VERSION")]
2185+
#[rustc_const_stable(feature = "const_unsafecell_get_mut", since = "1.83.0")]
21862186
pub const fn get_mut(&mut self) -> &mut T {
21872187
&mut self.value
21882188
}

Diff for: library/core/src/cell/once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<T> OnceCell<T> {
309309
/// ```
310310
#[inline]
311311
#[stable(feature = "once_cell", since = "1.70.0")]
312-
#[rustc_const_stable(feature = "const_cell_into_inner", since = "CURRENT_RUSTC_VERSION")]
312+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.83.0")]
313313
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
314314
pub const fn into_inner(self) -> Option<T> {
315315
// Because `into_inner` takes `self` by value, the compiler statically verifies

Diff for: library/core/src/char/methods.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl char {
3636
/// let value_at_min = u32::from(char::MIN);
3737
/// assert_eq!(char::from_u32(value_at_min), Some('\0'));
3838
/// ```
39-
#[stable(feature = "char_min", since = "CURRENT_RUSTC_VERSION")]
39+
#[stable(feature = "char_min", since = "1.83.0")]
4040
pub const MIN: char = '\0';
4141

4242
/// The highest valid code point a `char` can have, `'\u{10FFFF}'`.
@@ -674,7 +674,7 @@ impl char {
674674
/// 'ß'.encode_utf8(&mut b);
675675
/// ```
676676
#[stable(feature = "unicode_encode_char", since = "1.15.0")]
677-
#[rustc_const_stable(feature = "const_char_encode_utf8", since = "CURRENT_RUSTC_VERSION")]
677+
#[rustc_const_stable(feature = "const_char_encode_utf8", since = "1.83.0")]
678678
#[inline]
679679
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
680680
pub const fn encode_utf8(self, dst: &mut [u8]) -> &mut str {
@@ -1771,7 +1771,7 @@ const fn len_utf16(code: u32) -> usize {
17711771
/// Panics if the buffer is not large enough.
17721772
/// A buffer of length four is large enough to encode any `char`.
17731773
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
1774-
#[rustc_const_stable(feature = "const_char_encode_utf8", since = "CURRENT_RUSTC_VERSION")]
1774+
#[rustc_const_stable(feature = "const_char_encode_utf8", since = "1.83.0")]
17751775
#[doc(hidden)]
17761776
#[inline]
17771777
#[rustc_allow_const_fn_unstable(const_eval_select)]

Diff for: library/core/src/fmt/builders.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
383383
/// "Foo(10, ..)",
384384
/// );
385385
/// ```
386-
#[stable(feature = "debug_more_non_exhaustive", since = "CURRENT_RUSTC_VERSION")]
386+
#[stable(feature = "debug_more_non_exhaustive", since = "1.83.0")]
387387
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
388388
self.result = self.result.and_then(|_| {
389389
if self.fields > 0 {
@@ -626,7 +626,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
626626
/// "{1, 2, ..}",
627627
/// );
628628
/// ```
629-
#[stable(feature = "debug_more_non_exhaustive", since = "CURRENT_RUSTC_VERSION")]
629+
#[stable(feature = "debug_more_non_exhaustive", since = "1.83.0")]
630630
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
631631
self.inner.result = self.inner.result.and_then(|_| {
632632
if self.inner.has_fields {
@@ -818,7 +818,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
818818
/// "[1, 2, ..]",
819819
/// );
820820
/// ```
821-
#[stable(feature = "debug_more_non_exhaustive", since = "CURRENT_RUSTC_VERSION")]
821+
#[stable(feature = "debug_more_non_exhaustive", since = "1.83.0")]
822822
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
823823
self.inner.result.and_then(|_| {
824824
if self.inner.has_fields {
@@ -1146,7 +1146,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
11461146
/// r#"{"A": 10, "B": 11, ..}"#,
11471147
/// );
11481148
/// ```
1149-
#[stable(feature = "debug_more_non_exhaustive", since = "CURRENT_RUSTC_VERSION")]
1149+
#[stable(feature = "debug_more_non_exhaustive", since = "1.83.0")]
11501150
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
11511151
self.result = self.result.and_then(|_| {
11521152
assert!(!self.has_key, "attempted to finish a map with a partial entry");

Diff for: library/core/src/intrinsics.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ extern "rust-intrinsic" {
10841084
/// it does not require an `unsafe` block.
10851085
/// Therefore, implementations must not require the user to uphold
10861086
/// any safety invariants.
1087-
#[rustc_const_stable(feature = "const_intrinsic_forget", since = "CURRENT_RUSTC_VERSION")]
1087+
#[rustc_const_stable(feature = "const_intrinsic_forget", since = "1.83.0")]
10881088
#[rustc_safe_intrinsic]
10891089
#[rustc_nounwind]
10901090
pub fn forget<T: ?Sized>(_: T);
@@ -2688,7 +2688,7 @@ extern "rust-intrinsic" {
26882688
/// This intrinsic can *only* be called where the pointer is a local without
26892689
/// projections (`write_via_move(ptr, x)`, not `write_via_move(*ptr, x)`) so
26902690
/// that it trivially obeys runtime-MIR rules about derefs in operands.
2691-
#[rustc_const_stable(feature = "const_ptr_write", since = "CURRENT_RUSTC_VERSION")]
2691+
#[rustc_const_stable(feature = "const_ptr_write", since = "1.83.0")]
26922692
#[rustc_nounwind]
26932693
pub fn write_via_move<T>(ptr: *mut T, value: T);
26942694

@@ -3217,7 +3217,7 @@ pub const fn type_id<T: ?Sized + 'static>() -> u128 {
32173217
/// change the possible layouts of pointers.
32183218
#[rustc_nounwind]
32193219
#[unstable(feature = "core_intrinsics", issue = "none")]
3220-
#[rustc_const_stable(feature = "ptr_metadata_const", since = "CURRENT_RUSTC_VERSION")]
3220+
#[rustc_const_stable(feature = "ptr_metadata_const", since = "1.83.0")]
32213221
#[rustc_intrinsic]
32223222
#[rustc_intrinsic_must_be_overridden]
32233223
pub const fn aggregate_raw_ptr<P: AggregateRawPtr<D, Metadata = M>, D, M>(_data: D, _meta: M) -> P {
@@ -3242,7 +3242,7 @@ impl<P: ?Sized, T: ptr::Thin> AggregateRawPtr<*mut T> for *mut P {
32423242
/// This is used to implement functions like `ptr::metadata`.
32433243
#[rustc_nounwind]
32443244
#[unstable(feature = "core_intrinsics", issue = "none")]
3245-
#[rustc_const_stable(feature = "ptr_metadata_const", since = "CURRENT_RUSTC_VERSION")]
3245+
#[rustc_const_stable(feature = "ptr_metadata_const", since = "1.83.0")]
32463246
#[rustc_intrinsic]
32473247
#[rustc_intrinsic_must_be_overridden]
32483248
pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(_ptr: *const P) -> M {
@@ -3343,13 +3343,13 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(_ptr: *cons
33433343
#[doc(alias = "memcpy")]
33443344
#[stable(feature = "rust1", since = "1.0.0")]
33453345
#[rustc_allowed_through_unstable_modules]
3346-
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "CURRENT_RUSTC_VERSION")]
3346+
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.83.0")]
33473347
#[inline(always)]
33483348
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
33493349
#[rustc_diagnostic_item = "ptr_copy_nonoverlapping"]
33503350
pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
33513351
extern "rust-intrinsic" {
3352-
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "CURRENT_RUSTC_VERSION")]
3352+
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.83.0")]
33533353
#[rustc_nounwind]
33543354
pub fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
33553355
}
@@ -3445,13 +3445,13 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
34453445
#[doc(alias = "memmove")]
34463446
#[stable(feature = "rust1", since = "1.0.0")]
34473447
#[rustc_allowed_through_unstable_modules]
3448-
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "CURRENT_RUSTC_VERSION")]
3448+
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.83.0")]
34493449
#[inline(always)]
34503450
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
34513451
#[rustc_diagnostic_item = "ptr_copy"]
34523452
pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
34533453
extern "rust-intrinsic" {
3454-
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "CURRENT_RUSTC_VERSION")]
3454+
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.83.0")]
34553455
#[rustc_nounwind]
34563456
fn copy<T>(src: *const T, dst: *mut T, count: usize);
34573457
}
@@ -3525,13 +3525,13 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
35253525
#[doc(alias = "memset")]
35263526
#[stable(feature = "rust1", since = "1.0.0")]
35273527
#[rustc_allowed_through_unstable_modules]
3528-
#[rustc_const_stable(feature = "const_ptr_write", since = "CURRENT_RUSTC_VERSION")]
3528+
#[rustc_const_stable(feature = "const_ptr_write", since = "1.83.0")]
35293529
#[inline(always)]
35303530
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
35313531
#[rustc_diagnostic_item = "ptr_write_bytes"]
35323532
pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
35333533
extern "rust-intrinsic" {
3534-
#[rustc_const_stable(feature = "const_ptr_write", since = "CURRENT_RUSTC_VERSION")]
3534+
#[rustc_const_stable(feature = "const_ptr_write", since = "1.83.0")]
35353535
#[rustc_nounwind]
35363536
fn write_bytes<T>(dst: *mut T, val: u8, count: usize);
35373537
}

Diff for: library/core/src/mem/maybe_uninit.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,7 @@ impl<T> MaybeUninit<T> {
569569
/// (Notice that the rules around references to uninitialized data are not finalized yet, but
570570
/// until they are, it is advisable to avoid them.)
571571
#[stable(feature = "maybe_uninit", since = "1.36.0")]
572-
#[rustc_const_stable(
573-
feature = "const_maybe_uninit_as_mut_ptr",
574-
since = "CURRENT_RUSTC_VERSION"
575-
)]
572+
#[rustc_const_stable(feature = "const_maybe_uninit_as_mut_ptr", since = "1.83.0")]
576573
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
577574
#[inline(always)]
578575
pub const fn as_mut_ptr(&mut self) -> *mut T {

Diff for: library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ pub fn take<T: Default>(dest: &mut T) -> T {
858858
#[stable(feature = "rust1", since = "1.0.0")]
859859
#[must_use = "if you don't need the old value, you can just assign the new value directly"]
860860
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
861-
#[rustc_const_stable(feature = "const_replace", since = "CURRENT_RUSTC_VERSION")]
861+
#[rustc_const_stable(feature = "const_replace", since = "1.83.0")]
862862
#[cfg_attr(not(test), rustc_diagnostic_item = "mem_replace")]
863863
pub const fn replace<T>(dest: &mut T, src: T) -> T {
864864
// It may be tempting to use `swap` to avoid `unsafe` here. Don't!

0 commit comments

Comments
 (0)