Skip to content

Commit be8721b

Browse files
committed
Auto merge of #140861 - pietroalbini:pa-beta, r=pietroalbini
[beta] Prepare 1.88.0 beta https://forge.rust-lang.org/release/process.html#beta-pr r? `@ghost`
2 parents da1e442 + d63d8e5 commit be8721b

File tree

19 files changed

+59
-59
lines changed

19 files changed

+59
-59
lines changed

compiler/rustc_feature/src/accepted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ declare_features! (
9696
/// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
9797
(accepted, cfg_attr_multi, "1.33.0", Some(54881)),
9898
/// Allows the use of `#[cfg(<true/false>)]`.
99-
(accepted, cfg_boolean_literals, "CURRENT_RUSTC_VERSION", Some(131204)),
99+
(accepted, cfg_boolean_literals, "1.88.0", Some(131204)),
100100
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
101101
(accepted, cfg_doctest, "1.40.0", Some(62210)),
102102
/// Enables `#[cfg(panic = "...")]` config key.
@@ -301,7 +301,7 @@ declare_features! (
301301
/// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref.
302302
(accepted, move_ref_pattern, "1.49.0", Some(68354)),
303303
/// Allows using `#[naked]` on functions.
304-
(accepted, naked_functions, "CURRENT_RUSTC_VERSION", Some(90957)),
304+
(accepted, naked_functions, "1.88.0", Some(90957)),
305305
/// Allows specifying modifiers in the link attribute: `#[link(modifiers = "...")]`
306306
(accepted, native_link_modifiers, "1.61.0", Some(81490)),
307307
/// Allows specifying the bundle link modifier

compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ declare_features! (
143143
(removed, infer_static_outlives_requirements, "1.63.0", Some(54185),
144144
Some("removed as it caused some confusion and discussion was inactive for years")),
145145
/// Allow anonymous constants from an inline `const` block in pattern position
146-
(removed, inline_const_pat, "CURRENT_RUSTC_VERSION", Some(76001),
146+
(removed, inline_const_pat, "1.88.0", Some(76001),
147147
Some("removed due to implementation concerns as it requires significant refactorings")),
148148
/// Lazily evaluate constants. This allows constants to depend on type parameters.
149149
(removed, lazy_normalization_consts, "1.46.0", Some(72219), Some("superseded by `generic_const_exprs`")),

compiler/rustc_feature/src/unstable.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ declare_features! (
206206
/// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
207207
(internal, cfg_emscripten_wasm_eh, "1.86.0", None),
208208
/// Allows checking whether or not the backend correctly supports unstable float types.
209-
(internal, cfg_target_has_reliable_f16_f128, "CURRENT_RUSTC_VERSION", None),
209+
(internal, cfg_target_has_reliable_f16_f128, "1.88.0", None),
210210
/// Allows identifying the `compiler_builtins` crate.
211211
(internal, compiler_builtins, "1.13.0", None),
212212
/// Allows writing custom MIR
@@ -316,7 +316,7 @@ declare_features! (
316316
// Unstable `#[target_feature]` directives.
317317
(unstable, aarch64_unstable_target_feature, "1.82.0", Some(44839)),
318318
(unstable, aarch64_ver_target_feature, "1.27.0", Some(44839)),
319-
(unstable, apx_target_feature, "CURRENT_RUSTC_VERSION", Some(139284)),
319+
(unstable, apx_target_feature, "1.88.0", Some(139284)),
320320
(unstable, arm_target_feature, "1.27.0", Some(44839)),
321321
(unstable, avx512_target_feature, "1.27.0", Some(44839)),
322322
(unstable, bpf_target_feature, "1.54.0", Some(44839)),
@@ -327,7 +327,7 @@ declare_features! (
327327
(unstable, loongarch_target_feature, "1.73.0", Some(44839)),
328328
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
329329
(unstable, mips_target_feature, "1.27.0", Some(44839)),
330-
(unstable, movrs_target_feature, "CURRENT_RUSTC_VERSION", Some(137976)),
330+
(unstable, movrs_target_feature, "1.88.0", Some(137976)),
331331
(unstable, powerpc_target_feature, "1.27.0", Some(44839)),
332332
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
333333
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
@@ -385,7 +385,7 @@ declare_features! (
385385
/// Allows associated type defaults.
386386
(unstable, associated_type_defaults, "1.2.0", Some(29661)),
387387
/// Allows implementing `AsyncDrop`.
388-
(incomplete, async_drop, "CURRENT_RUSTC_VERSION", Some(126482)),
388+
(incomplete, async_drop, "1.88.0", Some(126482)),
389389
/// Allows async functions to be called from `dyn Trait`.
390390
(incomplete, async_fn_in_dyn_trait, "1.85.0", Some(133119)),
391391
/// Allows `#[track_caller]` on async functions.
@@ -395,7 +395,7 @@ declare_features! (
395395
/// Allows `async` trait bound modifier.
396396
(unstable, async_trait_bounds, "1.85.0", Some(62290)),
397397
/// Allows using Intel AVX10 target features and intrinsics
398-
(unstable, avx10_target_feature, "CURRENT_RUSTC_VERSION", Some(138843)),
398+
(unstable, avx10_target_feature, "1.88.0", Some(138843)),
399399
/// Allows using C-variadics.
400400
(unstable, c_variadic, "1.34.0", Some(44930)),
401401
/// Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
@@ -483,11 +483,11 @@ declare_features! (
483483
/// Allows exhaustive pattern matching on types that contain uninhabited types.
484484
(unstable, exhaustive_patterns, "1.13.0", Some(51085)),
485485
/// Disallows `extern` without an explicit ABI.
486-
(unstable, explicit_extern_abis, "CURRENT_RUSTC_VERSION", Some(134986)),
486+
(unstable, explicit_extern_abis, "1.88.0", Some(134986)),
487487
/// Allows explicit tail calls via `become` expression.
488488
(incomplete, explicit_tail_calls, "1.72.0", Some(112788)),
489489
/// Allows using `#[export_stable]` which indicates that an item is exportable.
490-
(incomplete, export_stable, "CURRENT_RUSTC_VERSION", Some(139939)),
490+
(incomplete, export_stable, "1.88.0", Some(139939)),
491491
/// Allows using `aapcs`, `efiapi`, `sysv64` and `win64` as calling conventions
492492
/// for functions with varargs.
493493
(unstable, extended_varargs_abi_support, "1.65.0", Some(100189)),
@@ -512,7 +512,7 @@ declare_features! (
512512
/// Allows impls for the Freeze trait.
513513
(internal, freeze_impls, "1.78.0", Some(121675)),
514514
/// Frontmatter `---` blocks for use by external tools.
515-
(unstable, frontmatter, "CURRENT_RUSTC_VERSION", Some(136889)),
515+
(unstable, frontmatter, "1.88.0", Some(136889)),
516516
/// Allows defining gen blocks and `gen fn`.
517517
(unstable, gen_blocks, "1.75.0", Some(117078)),
518518
/// Infer generic args for both consts and types.
@@ -575,7 +575,7 @@ declare_features! (
575575
/// Allows `mut ref` and `mut ref mut` identifier patterns.
576576
(incomplete, mut_ref, "1.79.0", Some(123076)),
577577
/// Allows using `#[naked]` on `extern "Rust"` functions.
578-
(unstable, naked_functions_rustic_abi, "CURRENT_RUSTC_VERSION", Some(138997)),
578+
(unstable, naked_functions_rustic_abi, "1.88.0", Some(138997)),
579579
/// Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions.
580580
(unstable, naked_functions_target_feature, "1.86.0", Some(138568)),
581581
/// Allows specifying the as-needed link modifier
@@ -641,7 +641,7 @@ declare_features! (
641641
/// Allows string patterns to dereference values to match them.
642642
(unstable, string_deref_patterns, "1.67.0", Some(87121)),
643643
/// Allows `super let` statements.
644-
(unstable, super_let, "CURRENT_RUSTC_VERSION", Some(139076)),
644+
(unstable, super_let, "1.88.0", Some(139076)),
645645
/// Allows subtrait items to shadow supertrait items.
646646
(unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
647647
/// Allows using `#[thread_local]` on `static` items.

library/alloc/src/ffi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ pub use self::c_str::CString;
8787
#[stable(feature = "alloc_c_string", since = "1.64.0")]
8888
pub use self::c_str::{FromVecWithNulError, IntoStringError, NulError};
8989

90-
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
90+
#[stable(feature = "c_str_module", since = "1.88.0")]
9191
pub mod c_str;

library/core/src/arch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
3232
///
3333
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
3434
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
35-
#[stable(feature = "naked_functions", since = "CURRENT_RUSTC_VERSION")]
35+
#[stable(feature = "naked_functions", since = "1.88.0")]
3636
#[rustc_builtin_macro]
3737
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
3838
/* compiler built-in */

library/core/src/cell.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl<T> Cell<T> {
495495
/// ```
496496
#[inline]
497497
#[stable(feature = "move_cell", since = "1.17.0")]
498-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
498+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
499499
#[rustc_confusables("swap")]
500500
pub const fn replace(&self, val: T) -> T {
501501
// SAFETY: This can cause data races if called from a separate thread,
@@ -537,7 +537,7 @@ impl<T: Copy> Cell<T> {
537537
/// ```
538538
#[inline]
539539
#[stable(feature = "rust1", since = "1.0.0")]
540-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
540+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
541541
pub const fn get(&self) -> T {
542542
// SAFETY: This can cause data races if called from a separate thread,
543543
// but `Cell` is `!Sync` so this won't happen.
@@ -556,7 +556,7 @@ impl<T: Copy> Cell<T> {
556556
/// assert_eq!(c.get(), 6);
557557
/// ```
558558
#[inline]
559-
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
559+
#[stable(feature = "cell_update", since = "1.88.0")]
560560
pub fn update(&self, f: impl FnOnce(T) -> T) {
561561
let old = self.get();
562562
self.set(f(old));
@@ -608,7 +608,7 @@ impl<T: ?Sized> Cell<T> {
608608
/// ```
609609
#[inline]
610610
#[stable(feature = "cell_get_mut", since = "1.11.0")]
611-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
611+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
612612
pub const fn get_mut(&mut self) -> &mut T {
613613
self.value.get_mut()
614614
}
@@ -628,7 +628,7 @@ impl<T: ?Sized> Cell<T> {
628628
/// ```
629629
#[inline]
630630
#[stable(feature = "as_cell", since = "1.37.0")]
631-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
631+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
632632
pub const fn from_mut(t: &mut T) -> &Cell<T> {
633633
// SAFETY: `&mut` ensures unique access.
634634
unsafe { &*(t as *mut T as *const Cell<T>) }
@@ -686,7 +686,7 @@ impl<T> Cell<[T]> {
686686
/// assert_eq!(slice_cell.len(), 3);
687687
/// ```
688688
#[stable(feature = "as_cell", since = "1.37.0")]
689-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
689+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
690690
pub const fn as_slice_of_cells(&self) -> &[Cell<T>] {
691691
// SAFETY: `Cell<T>` has the same memory layout as `T`.
692692
unsafe { &*(self as *const Cell<[T]> as *const [Cell<T>]) }

library/core/src/ffi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use self::c_str::FromBytesUntilNulError;
2020
pub use self::c_str::FromBytesWithNulError;
2121
use crate::fmt;
2222

23-
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
23+
#[stable(feature = "c_str_module", since = "1.88.0")]
2424
pub mod c_str;
2525

2626
#[unstable(

library/core/src/hint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ pub const fn cold_path() {
782782
/// # assert_eq!(bucket_one.len() + bucket_two.len(), 1);
783783
/// ```
784784
#[inline(always)]
785-
#[stable(feature = "select_unpredictable", since = "CURRENT_RUSTC_VERSION")]
785+
#[stable(feature = "select_unpredictable", since = "1.88.0")]
786786
pub fn select_unpredictable<T>(condition: bool, true_val: T, false_val: T) -> T {
787787
// FIXME(https://github.com/rust-lang/unsafe-code-guidelines/issues/245):
788788
// Change this to use ManuallyDrop instead.

library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ impl<T: ?Sized> PartialOrd for *const T {
17411741
}
17421742
}
17431743

1744-
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
1744+
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
17451745
impl<T: ?Sized + Thin> Default for *const T {
17461746
/// Returns the default value of [`null()`][crate::ptr::null].
17471747
fn default() -> Self {

library/core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ pub const unsafe fn swap<T>(x: *mut T, y: *mut T) {
11011101
/// ```
11021102
#[inline]
11031103
#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
1104-
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "CURRENT_RUSTC_VERSION")]
1104+
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "1.88.0")]
11051105
#[rustc_diagnostic_item = "ptr_swap_nonoverlapping"]
11061106
#[rustc_allow_const_fn_unstable(const_eval_select)] // both implementations behave the same
11071107
pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ impl<T: ?Sized> *mut T {
15761576
///
15771577
/// [`ptr::replace`]: crate::ptr::replace()
15781578
#[stable(feature = "pointer_methods", since = "1.26.0")]
1579-
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
1579+
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
15801580
#[inline(always)]
15811581
pub const unsafe fn replace(self, src: T) -> T
15821582
where
@@ -2159,7 +2159,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
21592159
}
21602160
}
21612161

2162-
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
2162+
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
21632163
impl<T: ?Sized + Thin> Default for *mut T {
21642164
/// Returns the default value of [`null_mut()`][crate::ptr::null_mut].
21652165
fn default() -> Self {

library/core/src/ptr/non_null.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ impl<T: ?Sized> NonNull<T> {
11661166
/// [`ptr::replace`]: crate::ptr::replace()
11671167
#[inline(always)]
11681168
#[stable(feature = "non_null_convenience", since = "1.80.0")]
1169-
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
1169+
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
11701170
pub const unsafe fn replace(self, src: T) -> T
11711171
where
11721172
T: Sized,

library/core/src/slice/mod.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -1303,8 +1303,8 @@ impl<T> [T] {
13031303
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
13041304
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
13051305
/// ```
1306-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1307-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1306+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1307+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
13081308
#[inline]
13091309
#[must_use]
13101310
pub const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]] {
@@ -1360,8 +1360,8 @@ impl<T> [T] {
13601360
/// };
13611361
/// assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
13621362
/// ```
1363-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1364-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1363+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1364+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
13651365
#[inline]
13661366
#[track_caller]
13671367
#[must_use]
@@ -1407,8 +1407,8 @@ impl<T> [T] {
14071407
/// assert_eq!(remainder, &['l']);
14081408
/// assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
14091409
/// ```
1410-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1411-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1410+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1411+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
14121412
#[inline]
14131413
#[track_caller]
14141414
#[must_use]
@@ -1498,8 +1498,8 @@ impl<T> [T] {
14981498
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5
14991499
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
15001500
/// ```
1501-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1502-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1501+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1502+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
15031503
#[inline]
15041504
#[must_use]
15051505
pub const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]] {
@@ -1551,8 +1551,8 @@ impl<T> [T] {
15511551
/// }
15521552
/// assert_eq!(v, &[1, 1, 2, 2, 9]);
15531553
/// ```
1554-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1555-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1554+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1555+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
15561556
#[inline]
15571557
#[track_caller]
15581558
#[must_use]
@@ -1604,8 +1604,8 @@ impl<T> [T] {
16041604
/// }
16051605
/// assert_eq!(v, &[9, 1, 1, 2, 2]);
16061606
/// ```
1607-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1608-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1607+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1608+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
16091609
#[inline]
16101610
#[track_caller]
16111611
#[must_use]

library/proc_macro/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -513,29 +513,29 @@ impl Span {
513513
}
514514

515515
/// Creates an empty span pointing to directly before this span.
516-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
516+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
517517
pub fn start(&self) -> Span {
518518
Span(self.0.start())
519519
}
520520

521521
/// Creates an empty span pointing to directly after this span.
522-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
522+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
523523
pub fn end(&self) -> Span {
524524
Span(self.0.end())
525525
}
526526

527527
/// The one-indexed line of the source file where the span starts.
528528
///
529529
/// To obtain the line of the span's end, use `span.end().line()`.
530-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
530+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
531531
pub fn line(&self) -> usize {
532532
self.0.line()
533533
}
534534

535535
/// The one-indexed column of the source file where the span starts.
536536
///
537537
/// To obtain the column of the span's end, use `span.end().column()`.
538-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
538+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
539539
pub fn column(&self) -> usize {
540540
self.0.column()
541541
}
@@ -544,7 +544,7 @@ impl Span {
544544
///
545545
/// This might not correspond to a valid file system path.
546546
/// It might be remapped (e.g. `"/src/lib.rs"`) or an artificial path (e.g. `"<command line>"`).
547-
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
547+
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
548548
pub fn file(&self) -> String {
549549
self.0.file()
550550
}
@@ -554,7 +554,7 @@ impl Span {
554554
/// This is the actual path on disk. It is unaffected by path remapping.
555555
///
556556
/// This path should not be embedded in the output of the macro; prefer `file()` instead.
557-
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
557+
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
558558
pub fn local_file(&self) -> Option<PathBuf> {
559559
self.0.local_file().map(|s| PathBuf::from(s))
560560
}

0 commit comments

Comments
 (0)