about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-11 22:53:10 +0200
committerGitHub <noreply@github.com>2022-08-11 22:53:10 +0200
commitc7578b4e65df9ede839fe94063e09961b82e6ade (patch)
treec90db3ddda1c65dc26527c7d60fc06f6f94040d2
parent8237efc52d909c482092fbf60356cfca59bf8ea0 (diff)
parent121fab0396c0637ac7b16a50fa78ae3d470aae16 (diff)
downloadrust-c7578b4e65df9ede839fe94063e09961b82e6ade.tar.gz
rust-c7578b4e65df9ede839fe94063e09961b82e6ade.zip
Rollup merge of #100418 - tbodt:stabilize-backtrace, r=dtolnay
Add stability attributes to BacktraceStatus variants

Fixes #100399
-rw-r--r--library/std/src/backtrace.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/backtrace.rs b/library/std/src/backtrace.rs
index b91db03a3d5..5cf6ec81789 100644
--- a/library/std/src/backtrace.rs
+++ b/library/std/src/backtrace.rs
@@ -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,
 }