]> git.lizzy.rs Git - rust.git/commit
manually implement `Hash` for `DefId`
authorAndre Bogus <bogusandre@gmail.com>
Wed, 8 Dec 2021 10:41:31 +0000 (11:41 +0100)
committerAndre Bogus <bogusandre@gmail.com>
Thu, 9 Dec 2021 23:40:41 +0000 (00:40 +0100)
commit635533bebb353bf6004cd9513f620980dde2d625
tree45794b68539097dea27e2e53d091b9712e358014
parentabba5edf480f8ba6be4aa8791bd343dd12efb969
manually implement `Hash` for `DefId`

This also reorders the fields to reduce the assembly operations for hashing
and changes two UI tests that depended on the former ordering because of
hashmap iteration order.
compiler/rustc_span/src/def_id.rs
src/test/ui/coherence/coherence-orphan.stderr
src/test/ui/methods/method-ambig-two-traits-cross-crate.stderr