mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
18fa4342fc
Optimize `impl Hash for ObligationCauseData` by not hashing `ObligationCauseCode` variant fields
Split out from #90913 since it's a [clear performance win](https://perf.rust-lang.org/compare.html?start=ad442399756573dccacb314b6bf8079964bcc72a&end=223f5e877fe93b5f437c2d703f883797913cd2b7) and should be easier to review.
It speeds up hashing for `Obligation` [deduplication](
|
||
---|---|---|
.. | ||
benches | ||
src | ||
Cargo.toml | ||
README.md |
For more information about how rustc works, see the rustc dev guide.