1
Fork 0

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.
This commit is contained in:
bors 2023-04-17 09:38:31 +00:00
commit e49122fb1c
4 changed files with 9 additions and 33 deletions

View file

@ -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)> {