about summary refs log tree commit diff
path: root/src/librustc/ich/impls_syntax.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2017-11-22 13:41:27 +0100
committerMichael Woerister <michaelwoerister@posteo>2017-12-01 13:48:19 +0100
commit409e39285d2189eb8bb656a93074473f9f186cc5 (patch)
tree10e756d650ef39b7d25b66bf0026a528faee7b67 /src/librustc/ich/impls_syntax.rs
parent315fbf7518dbcace5b92eabab746ba0a2c5531fa (diff)
downloadrust-409e39285d2189eb8bb656a93074473f9f186cc5.tar.gz
rust-409e39285d2189eb8bb656a93074473f9f186cc5.zip
incr.comp.: Properly hash and encode macro expansion information.
Diffstat (limited to 'src/librustc/ich/impls_syntax.rs')
-rw-r--r--src/librustc/ich/impls_syntax.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/librustc/ich/impls_syntax.rs b/src/librustc/ich/impls_syntax.rs
index fea4e283db1..c414349c8ff 100644
--- a/src/librustc/ich/impls_syntax.rs
+++ b/src/librustc/ich/impls_syntax.rs
@@ -347,6 +347,30 @@ impl_stable_hash_for!(enum ::syntax::ast::MetaItemKind {
     NameValue(lit)
 });
 
+impl_stable_hash_for!(struct ::syntax_pos::hygiene::ExpnInfo {
+    call_site,
+    callee
+});
+
+impl_stable_hash_for!(struct ::syntax_pos::hygiene::NameAndSpan {
+    format,
+    allow_internal_unstable,
+    allow_internal_unsafe,
+    span
+});
+
+impl_stable_hash_for!(enum ::syntax_pos::hygiene::ExpnFormat {
+    MacroAttribute(sym),
+    MacroBang(sym),
+    CompilerDesugaring(kind)
+});
+
+impl_stable_hash_for!(enum ::syntax_pos::hygiene::CompilerDesugaringKind {
+    BackArrow,
+    DotFill,
+    QuestionMark
+});
+
 impl<'gcx> HashStable<StableHashingContext<'gcx>> for FileMap {
     fn hash_stable<W: StableHasherResult>(&self,
                                           hcx: &mut StableHashingContext<'gcx>,