about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-09 21:34:12 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-17 22:37:10 +0100
commitefcb695f4c38f653d8f0adb70f94aa29328be679 (patch)
tree1699802ebabf1f2d26a3fe7fe9244d4382a54404 /src/libsyntax_pos
parent1dd5133dce33fed1cffea9bc6fb6ee4f37dc7053 (diff)
downloadrust-efcb695f4c38f653d8f0adb70f94aa29328be679.tar.gz
rust-efcb695f4c38f653d8f0adb70f94aa29328be679.zip
Further HashStable_Generic derives.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/hygiene.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs
index 2a48f8e44aa..daabd0569dc 100644
--- a/src/libsyntax_pos/hygiene.rs
+++ b/src/libsyntax_pos/hygiene.rs
@@ -30,6 +30,7 @@ use crate::{Span, DUMMY_SP};
 use crate::edition::Edition;
 use crate::symbol::{kw, sym, Symbol};
 
+use rustc_macros::HashStable_Generic;
 use rustc_serialize::{Encodable, Decodable, Encoder, Decoder};
 use rustc_data_structures::fx::FxHashMap;
 use rustc_data_structures::sync::Lrc;
@@ -707,7 +708,8 @@ impl ExpnKind {
 }
 
 /// The kind of macro invocation or definition.
-#[derive(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
+#[derive(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable,
+         Hash, Debug, HashStable_Generic)]
 pub enum MacroKind {
     /// A bang macro `foo!()`.
     Bang,