diff --git a/games/punchy/files/patch-rust-1.72 b/games/punchy/files/patch-rust-1.72 new file mode 100644 index 000000000000..04f0300b8241 --- /dev/null +++ b/games/punchy/files/patch-rust-1.72 @@ -0,0 +1,30 @@ +https://github.com/denoland/rusty_v8/commit/270f46aa5f2f + +--- cargo-crates/v8-0.47.1/src/isolate.rs.orig 1970-01-01 00:00:00 UTC ++++ cargo-crates/v8-0.47.1/src/isolate.rs +@@ -1193,6 +1193,8 @@ impl Hasher for TypeIdHasher { + + #[inline] + fn write_u64(&mut self, value: u64) { ++ // The internal hash function of TypeId only takes the bottom 64-bits, even on versions ++ // of Rust that use a 128-bit TypeId. + let prev_state = self.state.replace(value); + debug_assert_eq!(prev_state, None); + } +@@ -1219,8 +1221,14 @@ const _: () = { + } + + const _: () = { +- assert!(size_of::() == size_of::()); +- assert!(align_of::() == align_of::()); ++ assert!( ++ size_of::() == size_of::() ++ || size_of::() == size_of::() ++ ); ++ assert!( ++ align_of::() == align_of::() ++ || align_of::() == align_of::() ++ ); + }; + + pub(crate) struct RawSlot {