diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-08-20 23:20:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-20 23:20:34 +0200 |
| commit | 4ba242b7e0197f91c131c7ba7c160e7318aced04 (patch) | |
| tree | f9307f55f5268c8c7544f5d8bc7e80e02aadf8ab /src/libproc_macro/lib.rs | |
| parent | c1111dfcac63e86b26942f6096ed2cb43d888a2e (diff) | |
| download | rust-4ba242b7e0197f91c131c7ba7c160e7318aced04.tar.gz rust-4ba242b7e0197f91c131c7ba7c160e7318aced04.zip | |
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.
Diffstat (limited to 'src/libproc_macro/lib.rs')
| -rw-r--r-- | src/libproc_macro/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index 6a71e67676a..92386d6d060 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -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 { /// `( ... )` @@ -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 `+ =`. |
