From 121fab0396c0637ac7b16a50fa78ae3d470aae16 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Thu, 11 Aug 2022 11:00:07 -0700 Subject: [PATCH] Add stability attributes to BacktraceStatus variants Fixes #100399 --- library/std/src/backtrace.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/std/src/backtrace.rs b/library/std/src/backtrace.rs index b91db03a3d553..5cf6ec8178928 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, }