Skip to content

Commit

Permalink
Add stability attributes to BacktraceStatus variants
Browse files Browse the repository at this point in the history
Fixes #100399
  • Loading branch information
tbodt committed Aug 11, 2022
1 parent aeb5067 commit 121fab0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,15 @@ pub struct Backtrace {
pub enum BacktraceStatus {
/// Capturing a backtrace is not supported, likely because it's not
/// implemented for the current platform.
#[stable(feature = "backtrace", since = "1.65.0")]
Unsupported,
/// Capturing a backtrace has been disabled through either the
/// `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` environment variables.
#[stable(feature = "backtrace", since = "1.65.0")]
Disabled,
/// A backtrace has been captured and the `Backtrace` should print
/// reasonable information when rendered.
#[stable(feature = "backtrace", since = "1.65.0")]
Captured,
}

Expand Down

0 comments on commit 121fab0

Please sign in to comment.