mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00

type_id_eq: check that the hash fully matches the type The previous logic wouldn't always detect when the hash mismatches the provenance. Fix that by adding a new helper, `read_type_id`, that reads a single type ID while fully checking it for validity and consistency. r? ``@oli-obk``