Skip to content

Commit 121fab0

Browse files
committed
Add stability attributes to BacktraceStatus variants
Fixes #100399
1 parent aeb5067 commit 121fab0

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)