Auto merge of #100591 - est31:stabilization_placeholder, r=Mark-Simul… · rust-lang/rust@eaadb89 (original) (raw)
`@@ -58,7 +58,7 @@
`
58
58
`` //! RUST_LIB_BACKTRACE
or RUST_BACKTRACE
at runtime might not actually change
``
59
59
`//! how backtraces are captured.
`
60
60
``
61
``
`-
#![stable(feature = "backtrace", since = "1.65.0")]
`
``
61
`+
#![stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
62
62
``
63
63
`#[cfg(test)]
`
64
64
`mod tests;
`
`@@ -104,29 +104,29 @@ use crate::vec::Vec;
`
104
104
`` /// previous point in time. In some instances the Backtrace
type may
``
105
105
`/// internally be empty due to configuration. For more information see
`
106
106
`` /// Backtrace::capture
.
``
107
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
107
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
108
108
`#[must_use]
`
109
109
`pub struct Backtrace {
`
110
110
`inner: Inner,
`
111
111
`}
`
112
112
``
113
113
`/// The current status of a backtrace, indicating whether it was captured or
`
114
114
`/// whether it is empty for some other reason.
`
115
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
115
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
116
116
`#[non_exhaustive]
`
117
117
`#[derive(Debug, PartialEq, Eq)]
`
118
118
`pub enum BacktraceStatus {
`
119
119
`/// Capturing a backtrace is not supported, likely because it's not
`
120
120
`/// implemented for the current platform.
`
121
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
121
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
122
122
`Unsupported,
`
123
123
`/// Capturing a backtrace has been disabled through either the
`
124
124
`` /// RUST_LIB_BACKTRACE
or RUST_BACKTRACE
environment variables.
``
125
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
125
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
126
126
`Disabled,
`
127
127
`` /// A backtrace has been captured and the Backtrace
should print
``
128
128
`/// reasonable information when rendered.
`
129
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
129
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
130
130
`Captured,
`
131
131
`}
`
132
132
``
`@@ -173,7 +173,7 @@ enum BytesOrWide {
`
173
173
`Wide(Vec),
`
174
174
`}
`
175
175
``
176
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
176
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
177
177
`impl fmt::Debug for Backtrace {
`
178
178
`fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
`
179
179
`let capture = match &self.inner {
`
`@@ -289,7 +289,7 @@ impl Backtrace {
`
289
289
`///
`
290
290
`/// To forcibly capture a backtrace regardless of environment variables, use
`
291
291
`` /// the Backtrace::force_capture
function.
``
292
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
292
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
293
293
`#[inline(never)] // want to make sure there's a frame here to remove
`
294
294
`pub fn capture() -> Backtrace {
`
295
295
`if !Backtrace::enabled() {
`
`@@ -308,16 +308,16 @@ impl Backtrace {
`
308
308
`/// Note that capturing a backtrace can be an expensive operation on some
`
309
309
`/// platforms, so this should be used with caution in performance-sensitive
`
310
310
`/// parts of code.
`
311
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
311
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
312
312
`#[inline(never)] // want to make sure there's a frame here to remove
`
313
313
`pub fn force_capture() -> Backtrace {
`
314
314
`Backtrace::create(Backtrace::force_capture as usize)
`
315
315
`}
`
316
316
``
317
317
`/// Forcibly captures a disabled backtrace, regardless of environment
`
318
318
`/// 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")]
`
321
321
`pub const fn disabled() -> Backtrace {
`
322
322
`Backtrace { inner: Inner::Disabled }
`
323
323
`}
`
`@@ -361,7 +361,7 @@ impl Backtrace {
`
361
361
`/// Returns the status of this backtrace, indicating whether this backtrace
`
362
362
`/// request was unsupported, disabled, or a stack trace was actually
`
363
363
`/// captured.
`
364
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
364
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
365
365
`#[must_use]
`
366
366
`pub fn status(&self) -> BacktraceStatus {
`
367
367
`match self.inner {
`
`@@ -381,7 +381,7 @@ impl<'a> Backtrace {
`
381
381
`}
`
382
382
`}
`
383
383
``
384
``
`-
#[stable(feature = "backtrace", since = "1.65.0")]
`
``
384
`+
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
`
385
385
`impl fmt::Display for Backtrace {
`
386
386
`fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
`
387
387
`let capture = match &self.inner {
`