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-10 17:40:43 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-22 19:58:36 +0100
commitbf7c9ba7ced9a2c092192d5d10a78ab858f9faf6 (patch)
tree2fdc31cb06f1f385212dcc23c86efa035a46220f /src/libsyntax_pos
parent640797fdd700ab30addcd3497621422989f9826f (diff)
downloadrust-bf7c9ba7ced9a2c092192d5d10a78ab858f9faf6.tar.gz
rust-bf7c9ba7ced9a2c092192d5d10a78ab858f9faf6.zip
Derive HashStable_Generic for ExpnData.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/hygiene.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs
index eb420454f03..cd3c9e308ab 100644
--- a/src/libsyntax_pos/hygiene.rs
+++ b/src/libsyntax_pos/hygiene.rs
@@ -616,12 +616,13 @@ impl Span {
 
 /// A subset of properties from both macro definition and macro call available through global data.
 /// Avoid using this if you have access to the original definition or call structures.
-#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
+#[derive(Clone, Debug, RustcEncodable, RustcDecodable, HashStable_Generic)]
 pub struct ExpnData {
     // --- The part unique to each expansion.
     /// The kind of this expansion - macro or compiler desugaring.
     pub kind: ExpnKind,
     /// The expansion that produced this expansion.
+    #[stable_hasher(ignore)]
     pub parent: ExpnId,
     /// The location of the actual macro invocation or syntax sugar , e.g.
     /// `let x = foo!();` or `if let Some(y) = x {}`