Skip to content

Commit 9385be7

Browse files
Update compiler/rustc_middle/src/query/mod.rs
Co-authored-by: Léo Lanteri Thauvin <[email protected]>
1 parent fdc15ef commit 9385be7

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ rustc_queries! {
222222

223223
/// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
224224
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).
225226
no_hash
226227
desc { |tcx| "building THIR for `{}`", tcx.def_path_str(key.did.to_def_id()) }
227228
}

0 commit comments

Comments
 (0)