Skip to content

Commit

Permalink
Rollup merge of rust-lang#64993 - mathstuf:backtrace-status-eq, r=wit…
Browse files Browse the repository at this point in the history
…houtboats

BacktraceStatus: add Eq impl

See discussion on rust-lang#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
  • Loading branch information
Centril authored Oct 3, 2019
2 parents c4f8fd2 + fb80e6c commit f188879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f188879

Please sign in to comment.