about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query
diff options
context:
space:
mode:
authorTyson Nottingham <tgnottingham@gmail.com>2021-01-11 13:31:43 -0800
committerTyson Nottingham <tgnottingham@gmail.com>2021-01-12 11:22:58 -0800
commit8e7cbc28a65df0e979b6052db7f4f8d26fecd9d9 (patch)
treee0234d48477656f5725b78e28293299fd4f389a8 /compiler/rustc_middle/src/query
parent0962e5eba91cc873b2546d1b727dcddd33fde6a8 (diff)
downloadrust-8e7cbc28a65df0e979b6052db7f4f8d26fecd9d9.tar.gz
rust-8e7cbc28a65df0e979b6052db7f4f8d26fecd9d9.zip
Prevent potential bug resulting from changing crate_hash query name
Diffstat (limited to 'compiler/rustc_middle/src/query')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index 1e836d0a842..0818af1e810 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -1220,6 +1220,8 @@ rustc_queries! {
             eval_always
             desc { "looking up the disambiguator a crate" }
         }
+        // The macro which defines `rustc_metadata::provide_extern` depends on this query's name.
+        // Changing the name should cause a compiler error, but in case that changes, be aware.
         query crate_hash(_: CrateNum) -> Svh {
             eval_always
             desc { "looking up the hash a crate" }