Skip to content

Commit c7578b4

Browse files
authored
Rollup merge of rust-lang#100418 - tbodt:stabilize-backtrace, r=dtolnay
Add stability attributes to BacktraceStatus variants Fixes rust-lang#100399
2 parents 8237efc + 121fab0 commit c7578b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/backtrace.rs

+3
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,15 @@ pub struct Backtrace {
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")]
121122
Unsupported,
122123
/// Capturing a backtrace has been disabled through either the
123124
/// `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` environment variables.
125+
#[stable(feature = "backtrace", since = "1.65.0")]
124126
Disabled,
125127
/// A backtrace has been captured and the `Backtrace` should print
126128
/// reasonable information when rendered.
129+
#[stable(feature = "backtrace", since = "1.65.0")]
127130
Captured,
128131
}
129132

0 commit comments

Comments
 (0)