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.64 .0" ) ]
61
+ #![ stable( feature = "backtrace" , since = "1.65 .0" ) ]
62
62
63
63
#[ cfg( test) ]
64
64
mod tests;
@@ -104,15 +104,15 @@ 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.64 .0" ) ]
107
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
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.64 .0" ) ]
115
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
116
116
#[ non_exhaustive]
117
117
#[ derive( Debug , PartialEq , Eq ) ]
118
118
pub enum BacktraceStatus {
@@ -170,7 +170,7 @@ enum BytesOrWide {
170
170
Wide ( Vec < u16 > ) ,
171
171
}
172
172
173
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
173
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
174
174
impl fmt:: Debug for Backtrace {
175
175
fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
176
176
let capture = match & self . inner {
@@ -286,7 +286,7 @@ impl Backtrace {
286
286
///
287
287
/// To forcibly capture a backtrace regardless of environment variables, use
288
288
/// the `Backtrace::force_capture` function.
289
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
289
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
290
290
#[ inline( never) ] // want to make sure there's a frame here to remove
291
291
pub fn capture ( ) -> Backtrace {
292
292
if !Backtrace :: enabled ( ) {
@@ -305,16 +305,16 @@ impl Backtrace {
305
305
/// Note that capturing a backtrace can be an expensive operation on some
306
306
/// platforms, so this should be used with caution in performance-sensitive
307
307
/// parts of code.
308
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
308
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
309
309
#[ inline( never) ] // want to make sure there's a frame here to remove
310
310
pub fn force_capture ( ) -> Backtrace {
311
311
Backtrace :: create ( Backtrace :: force_capture as usize )
312
312
}
313
313
314
314
/// Forcibly captures a disabled backtrace, regardless of environment
315
315
/// variable configuration.
316
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
317
- #[ rustc_const_stable( feature = "backtrace" , since = "1.64 .0" ) ]
316
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
317
+ #[ rustc_const_stable( feature = "backtrace" , since = "1.65 .0" ) ]
318
318
pub const fn disabled ( ) -> Backtrace {
319
319
Backtrace { inner : Inner :: Disabled }
320
320
}
@@ -358,7 +358,7 @@ impl Backtrace {
358
358
/// Returns the status of this backtrace, indicating whether this backtrace
359
359
/// request was unsupported, disabled, or a stack trace was actually
360
360
/// captured.
361
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
361
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
362
362
#[ must_use]
363
363
pub fn status ( & self ) -> BacktraceStatus {
364
364
match self . inner {
@@ -378,7 +378,7 @@ impl<'a> Backtrace {
378
378
}
379
379
}
380
380
381
- #[ stable( feature = "backtrace" , since = "1.64 .0" ) ]
381
+ #[ stable( feature = "backtrace" , since = "1.65 .0" ) ]
382
382
impl fmt:: Display for Backtrace {
383
383
fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
384
384
let capture = match & self . inner {
0 commit comments