We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea78d1e + 9385be7 commit d854c3cCopy full SHA for d854c3c
compiler/rustc_middle/src/query/mod.rs
@@ -222,6 +222,8 @@ rustc_queries! {
222
223
/// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
224
query thir_body(key: ty::WithOptConstParam<LocalDefId>) -> (&'tcx Steal<thir::Thir<'tcx>>, thir::ExprId) {
225
+ // Perf tests revealed that hashing THIR is inefficient (see #85729).
226
+ no_hash
227
desc { |tcx| "building THIR for `{}`", tcx.def_path_str(key.did.to_def_id()) }
228
}
229
0 commit comments