We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc15ef commit 9385be7Copy full SHA for 9385be7
compiler/rustc_middle/src/query/mod.rs
@@ -222,6 +222,7 @@ 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
}
0 commit comments