Skip to content

Commit 7e5578d

Browse files
committed
Auto merge of #44003 - LukasKalbertodt:patch-1, r=nikomatsakis
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 :)
2 parents 6722996 + 4ba242b commit 7e5578d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libproc_macro/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub enum TokenNode {
241241
}
242242

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

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

0 commit comments

Comments
 (0)