]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #38357 - arielb1:deterministic-hash, r=michaelwoerister
authorbors <bors@rust-lang.org>
Fri, 16 Dec 2016 03:56:47 +0000 (03:56 +0000)
committerbors <bors@rust-lang.org>
Fri, 16 Dec 2016 03:56:47 +0000 (03:56 +0000)
make deterministic_hash host-architecture-independent

`DefPath::deterministic_hash` used to call `std::hash::Hash`, which depends on the current architecture in several ways, which would prevent metadata written on one host architecture from being successfully read on another one.

Use a hasher we control instead.

Fixes #38177.

r? @michaelwoerister


Trivial merge