Skip to content

Commit

Permalink
Rollup merge of rust-lang#100418 - tbodt:stabilize-backtrace, r=dtolnay
Browse files Browse the repository at this point in the history
Add stability attributes to BacktraceStatus variants

Fixes rust-lang#100399
  • Loading branch information
matthiaskrgr authored Aug 11, 2022
2 parents 8237efc + 121fab0 commit c7578b4
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 c7578b4

Please sign in to comment.