Skip to content

Commit

Permalink
Update compiler/rustc_middle/src/query/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
  • Loading branch information
nikomatsakis and LeSeulArtichaut authored May 27, 2021
1 parent fdc15ef commit 9385be7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
}
Expand Down

0 comments on commit 9385be7

Please sign in to comment.