about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-17 09:38:31 +0000
committerbors <bors@rust-lang.org>2023-04-17 09:38:31 +0000
commite49122fb1ca87a6c3e3c22abb315fc75cfe8daed (patch)
tree628b1cea7fda715a40200a5576a9bfa4362286db /compiler/rustc_middle/src
parentbdb32bd4bbcabb0d32a04a0b45e6a8ceaa5e54d6 (diff)
parent84facac97a3a13a1ea29b227d55513b58ffe7692 (diff)
downloadrust-e49122fb1ca87a6c3e3c22abb315fc75cfe8daed.tar.gz
rust-e49122fb1ca87a6c3e3c22abb315fc75cfe8daed.zip
Auto merge of #110367 - saethlin:no-truncations, r=oli-obk
Remove some suspicious cast truncations

These truncations were added a long time ago, and as best I can tell without a perf justification. And with rust-lang/rust#110410 it has become perf-neutral to not truncate anymore. We worked hard for all these bits, let's use them.
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/hir/map/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/hir/map/mod.rs b/compiler/rustc_middle/src/hir/map/mod.rs
index e551c76f8db..64aff27744f 100644
--- a/compiler/rustc_middle/src/hir/map/mod.rs
+++ b/compiler/rustc_middle/src/hir/map/mod.rs
@@ -1199,7 +1199,7 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>, _: LocalCrate) -> Svh {
         stable_hasher.finish()
     });
 
-    Svh::new(crate_hash.to_smaller_hash())
+    Svh::new(crate_hash)
 }
 
 fn upstream_crates(tcx: TyCtxt<'_>) -> Vec<(StableCrateId, Svh)> {