Skip to content

Commit d33a7b3

Browse files
committed
replace stabilization placeholders
1 parent f5d89cd commit d33a7b3

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

core/src/ops/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ pub enum Bound<T> {
677677
impl<T> Bound<T> {
678678
/// Converts from `&Bound<T>` to `Bound<&T>`.
679679
#[inline]
680-
#[stable(feature = "bound_as_ref_shared", since = "CURRENT_RUSTC_VERSION")]
680+
#[stable(feature = "bound_as_ref_shared", since = "1.65.0")]
681681
pub fn as_ref(&self) -> Bound<&T> {
682682
match *self {
683683
Included(ref x) => Included(x),

core/src/ptr/const_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ impl<T: ?Sized> *const T {
9898
///
9999
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
100100
/// refactored.
101-
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
102-
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
101+
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
102+
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
103103
pub const fn cast_mut(self) -> *mut T {
104104
self as _
105105
}

core/src/ptr/mut_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ impl<T: ?Sized> *mut T {
103103
/// coercion.
104104
///
105105
/// [`cast_mut`]: #method.cast_mut
106-
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
107-
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
106+
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
107+
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
108108
pub const fn cast_const(self) -> *const T {
109109
self as _
110110
}

std/src/backtrace.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
//! `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` at runtime might not actually change
5959
//! how backtraces are captured.
6060
61-
#![stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
61+
#![stable(feature = "backtrace", since = "1.65.0")]
6262

6363
#[cfg(test)]
6464
mod tests;
@@ -104,29 +104,29 @@ use crate::vec::Vec;
104104
/// previous point in time. In some instances the `Backtrace` type may
105105
/// internally be empty due to configuration. For more information see
106106
/// `Backtrace::capture`.
107-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
107+
#[stable(feature = "backtrace", since = "1.65.0")]
108108
#[must_use]
109109
pub struct Backtrace {
110110
inner: Inner,
111111
}
112112

113113
/// The current status of a backtrace, indicating whether it was captured or
114114
/// whether it is empty for some other reason.
115-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
115+
#[stable(feature = "backtrace", since = "1.65.0")]
116116
#[non_exhaustive]
117117
#[derive(Debug, PartialEq, Eq)]
118118
pub enum BacktraceStatus {
119119
/// Capturing a backtrace is not supported, likely because it's not
120120
/// implemented for the current platform.
121-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
121+
#[stable(feature = "backtrace", since = "1.65.0")]
122122
Unsupported,
123123
/// Capturing a backtrace has been disabled through either the
124124
/// `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` environment variables.
125-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
125+
#[stable(feature = "backtrace", since = "1.65.0")]
126126
Disabled,
127127
/// A backtrace has been captured and the `Backtrace` should print
128128
/// reasonable information when rendered.
129-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
129+
#[stable(feature = "backtrace", since = "1.65.0")]
130130
Captured,
131131
}
132132

@@ -173,7 +173,7 @@ enum BytesOrWide {
173173
Wide(Vec<u16>),
174174
}
175175

176-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
176+
#[stable(feature = "backtrace", since = "1.65.0")]
177177
impl fmt::Debug for Backtrace {
178178
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
179179
let capture = match &self.inner {
@@ -289,7 +289,7 @@ impl Backtrace {
289289
///
290290
/// To forcibly capture a backtrace regardless of environment variables, use
291291
/// the `Backtrace::force_capture` function.
292-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
292+
#[stable(feature = "backtrace", since = "1.65.0")]
293293
#[inline(never)] // want to make sure there's a frame here to remove
294294
pub fn capture() -> Backtrace {
295295
if !Backtrace::enabled() {
@@ -308,16 +308,16 @@ impl Backtrace {
308308
/// Note that capturing a backtrace can be an expensive operation on some
309309
/// platforms, so this should be used with caution in performance-sensitive
310310
/// parts of code.
311-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
311+
#[stable(feature = "backtrace", since = "1.65.0")]
312312
#[inline(never)] // want to make sure there's a frame here to remove
313313
pub fn force_capture() -> Backtrace {
314314
Backtrace::create(Backtrace::force_capture as usize)
315315
}
316316

317317
/// Forcibly captures a disabled backtrace, regardless of environment
318318
/// variable configuration.
319-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
320-
#[rustc_const_stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
319+
#[stable(feature = "backtrace", since = "1.65.0")]
320+
#[rustc_const_stable(feature = "backtrace", since = "1.65.0")]
321321
pub const fn disabled() -> Backtrace {
322322
Backtrace { inner: Inner::Disabled }
323323
}
@@ -361,7 +361,7 @@ impl Backtrace {
361361
/// Returns the status of this backtrace, indicating whether this backtrace
362362
/// request was unsupported, disabled, or a stack trace was actually
363363
/// captured.
364-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
364+
#[stable(feature = "backtrace", since = "1.65.0")]
365365
#[must_use]
366366
pub fn status(&self) -> BacktraceStatus {
367367
match self.inner {
@@ -381,7 +381,7 @@ impl<'a> Backtrace {
381381
}
382382
}
383383

384-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
384+
#[stable(feature = "backtrace", since = "1.65.0")]
385385
impl fmt::Display for Backtrace {
386386
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
387387
let capture = match &self.inner {

std/src/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ pub trait Read {
10451045
/// Ok(())
10461046
/// }
10471047
/// ```
1048-
#[stable(feature = "io_read_to_string", since = "CURRENT_RUSTC_VERSION")]
1048+
#[stable(feature = "io_read_to_string", since = "1.65.0")]
10491049
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
10501050
let mut buf = String::new();
10511051
reader.read_to_string(&mut buf)?;

0 commit comments

Comments
 (0)