Skip to content

Commit

Permalink
Auto merge of rust-lang#44003 - LukasKalbertodt:patch-1, r=nikomatsakis
Browse files Browse the repository at this point in the history
Add PartialEq/Eq impls to proc_macro::{Spacing, Delimiter}

I don't see a reason why those two types shouldn't be tested for equality. But I hardly know anything about proc macros, so I'm probably wrong :)
  • Loading branch information
bors committed Aug 22, 2017
2 parents 6722996 + 4ba242b commit 7e5578d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub enum TokenNode {
}

/// Describes how a sequence of token trees is delimited.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[unstable(feature = "proc_macro", issue = "38356")]
pub enum Delimiter {
/// `( ... )`
Expand Down Expand Up @@ -274,7 +274,7 @@ impl Term {
}

/// Whether an `Op` is either followed immediately by another `Op` or followed by whitespace.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[unstable(feature = "proc_macro", issue = "38356")]
pub enum Spacing {
/// e.g. `+` is `Alone` in `+ =`.
Expand Down

0 comments on commit 7e5578d

Please sign in to comment.