From fb80e6c62ea5ae3a19b1b4076f636ced3e3b70d8 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 2 Oct 2019 08:17:28 -0400 Subject: [PATCH] BacktraceStatus: add Eq impl See discussion on #53487. --- src/libstd/backtrace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/backtrace.rs b/src/libstd/backtrace.rs index 61c42a56071e6..9f400713a86d4 100644 --- a/src/libstd/backtrace.rs +++ b/src/libstd/backtrace.rs @@ -113,7 +113,7 @@ pub struct Backtrace { /// The current status of a backtrace, indicating whether it was captured or /// whether it is empty for some other reason. #[non_exhaustive] -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq)] pub enum BacktraceStatus { /// Capturing a backtrace is not supported, likely because it's not /// implemented for the current platform.