Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc: Avoid HashStable for DefIndex queries
I'm not 100% familiar with this trait and this location, but it looks like there's a default implementation of `DepNodeParams` for anything that implements `HashStable`, but types like `DefId` which have precalculated hashes bypass this default implementation for a speedier one. This commit applies what I believe is the same optimization to `DefIndex`, looking up the local hash for it rather than going through the full `HashStable` rigamarole cc rust-lang#44575
- Loading branch information