Skip to content

Commit 6e4e3e8

Browse files
committed
Adjust backtrace stabilization version to CURRENT_RUSTC_VERSION
1 parent e576a9b commit 6e4e3e8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

library/std/src/backtrace.rs

+13-13
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 = "1.65.0")]
61+
#![stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
107+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
115+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
121+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
125+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
126126
Disabled,
127127
/// A backtrace has been captured and the `Backtrace` should print
128128
/// reasonable information when rendered.
129-
#[stable(feature = "backtrace", since = "1.65.0")]
129+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
130130
Captured,
131131
}
132132

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

176-
#[stable(feature = "backtrace", since = "1.65.0")]
176+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
292+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
311+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
320-
#[rustc_const_stable(feature = "backtrace", since = "1.65.0")]
319+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
320+
#[rustc_const_stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
364+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
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 = "1.65.0")]
384+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
385385
impl fmt::Display for Backtrace {
386386
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
387387
let capture = match &self.inner {

0 commit comments

Comments
 (0)