Skip to content

Commit f188879

Browse files
authored
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
2 parents c4f8fd2 + fb80e6c commit f188879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/backtrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub struct Backtrace {
113113
/// The current status of a backtrace, indicating whether it was captured or
114114
/// whether it is empty for some other reason.
115115
#[non_exhaustive]
116-
#[derive(Debug)]
116+
#[derive(Debug, PartialEq, Eq)]
117117
pub enum BacktraceStatus {
118118
/// Capturing a backtrace is not supported, likely because it's not
119119
/// implemented for the current platform.

0 commit comments

Comments
 (0)