You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size of TypeId changed in rust-lang/rust@9e5573a, and the unittest type_id_hasher no longer builds:
cannot transmute between types of different sizes, or dependently-sized types
|
638 | assert_eq!(hasher.finish(), unsafe { core::mem::transmute::<TypeId, u64>(type_id) });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `TypeId` (128 bits)
= note: target type: `u64` (64 bits)
It seems to me that the commit doesn't affect the behavior of the anymap crate, it only affects the unittest. Could you please confirm that that is the case?
The text was updated successfully, but these errors were encountered:
hlopko
changed the title
https://github.com/rust-lang/rust/commit/9e5573a0d275c71dce59b715d981c6880d30703a breaks the type_id_hasher unittest
Recent change in core::any::TypeId breaks the type_id_hasher unittest
Aug 18, 2023
Howdy,
The size of TypeId changed in rust-lang/rust@9e5573a, and the unittest
type_id_hasher
no longer builds:It seems to me that the commit doesn't affect the behavior of the anymap crate, it only affects the unittest. Could you please confirm that that is the case?
The text was updated successfully, but these errors were encountered: