]> git.lizzy.rs Git - rust.git/commitdiff
Fix up comment about OnDiskCache::foreign_expn_data.
authorMichael Woerister <michaelwoerister@posteo>
Wed, 21 Jul 2021 11:38:29 +0000 (13:38 +0200)
committerMichael Woerister <michaelwoerister@posteo>
Tue, 14 Sep 2021 11:56:33 +0000 (13:56 +0200)
compiler/rustc_query_impl/src/on_disk_cache.rs

index f9456a6f2cdb8575a78f1c2c839635e9a9cc0ed3..cb50c851e9a455daac7426e6dfc3b9e979597e69 100644 (file)
@@ -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>,
 }