about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2021-05-27 10:31:47 -0400
committerGitHub <noreply@github.com>2021-05-27 10:31:47 -0400
commit9385be7a0cc95cb354c67cdbd5229a0f47ddd296 (patch)
treefe9b43263ca82891bad0541953dcfaf967674afe /compiler/rustc_middle/src/query
parentfdc15ef823bcd46798984c143ca436c9e9ae9771 (diff)
downloadrust-9385be7a0cc95cb354c67cdbd5229a0f47ddd296.tar.gz
rust-9385be7a0cc95cb354c67cdbd5229a0f47ddd296.zip
Update compiler/rustc_middle/src/query/mod.rs
Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
Diffstat (limited to 'compiler/rustc_middle/src/query')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index 8138eeac3d6..04aa30170dc 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -222,6 +222,7 @@ rustc_queries! {
 
     /// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
     query thir_body(key: ty::WithOptConstParam<LocalDefId>) -> (&'tcx Steal<thir::Thir<'tcx>>, thir::ExprId) {
+        // Perf tests revealed that hashing THIR is inefficient (see #85729).
         no_hash
         desc { |tcx| "building THIR for `{}`", tcx.def_path_str(key.did.to_def_id()) }
     }