about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-03 04:08:17 +0200
committerGitHub <noreply@github.com>2019-10-03 04:08:17 +0200
commitf188879a93e51679719a42bcecf8c500604ff745 (patch)
treefefb0f4dc7b000752b43e17236d91ea4ca74e26d
parentc4f8fd2bf5b96cef5ea42d833e9caccf002cf5e9 (diff)
parentfb80e6c62ea5ae3a19b1b4076f636ced3e3b70d8 (diff)
downloadrust-f188879a93e51679719a42bcecf8c500604ff745.tar.gz
rust-f188879a93e51679719a42bcecf8c500604ff745.zip
Rollup merge of #64993 - mathstuf:backtrace-status-eq, r=withoutboats
BacktraceStatus: add Eq impl

See discussion on #53487.

---
Is adding `Copy` too ambitious? It's a "status", so I don't forsee any non-POD data that might go in there, but it would restrict future variants more than `Eq` does.

Cc: @withoutboats @abonander
-rw-r--r--src/libstd/backtrace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/backtrace.rs b/src/libstd/backtrace.rs
index 61c42a56071..9f400713a86 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.