]> git.lizzy.rs Git - rust.git/commit
Derive HashStable for Allocation
authorAndreas Molzer <andreas.molzer@gmx.de>
Sat, 17 Aug 2019 17:49:51 +0000 (19:49 +0200)
committerAndreas Molzer <andreas.molzer@gmx.de>
Sat, 17 Aug 2019 17:58:15 +0000 (19:58 +0200)
commit2228b3f08631b5e9b32e6b6c82e758fe4bcbbd60
tree8209c518d8cd231be57cad0ab84a43f58db1e3c3
parent9b9eecf964235f781806ce3e026c1522eb35e013
Derive HashStable for Allocation

Requires a manual implementation for Relocations since dereferencing to
SortedMap is not always implemented but that one is far more trivial.
Added fields could otherwise be silently forgotten since private fields
make destructing outside the module possible only with `..` pattern
which would then also be applicable to newly added public fields.
src/librustc/ich/impls_ty.rs
src/librustc/mir/interpret/allocation.rs