about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2021-07-21 13:38:29 +0200
committerMichael Woerister <michaelwoerister@posteo>2021-09-14 13:56:33 +0200
commit021c0520e3ec4ddecac425f99db5749942785e65 (patch)
tree929914a466ee75056b656572823920531f826c3b /compiler/rustc_query_impl/src
parent2b60338ee92fbae7e9414dd1bd6661ccd8a7b9da (diff)
downloadrust-021c0520e3ec4ddecac425f99db5749942785e65.tar.gz
rust-021c0520e3ec4ddecac425f99db5749942785e65.zip
Fix up comment about OnDiskCache::foreign_expn_data.
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/on_disk_cache.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/on_disk_cache.rs b/compiler/rustc_query_impl/src/on_disk_cache.rs
index f9456a6f2cd..cb50c851e9a 100644
--- a/compiler/rustc_query_impl/src/on_disk_cache.rs
+++ b/compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -86,8 +86,10 @@ pub struct OnDiskCache<'sess> {
     expn_data: UnhashMap<ExpnHash, AbsoluteBytePos>,
     // Additional information used when decoding hygiene data.
     hygiene_context: HygieneDecodeContext,
-    // FIXME(mw): Update this comment:
-    // Likewise for ExpnId.
+    // Maps `ExpnHash`es to their raw value from the *previous*
+    // compilation session. This is used as an initial 'guess' when
+    // we try to map an `ExpnHash` to its value in the current
+    // compilation session.
     foreign_expn_data: UnhashMap<ExpnHash, u32>,
 }