Skip to content

Commit 4a74c33

Browse files
committed
interpret: fix TypeId pointers being considered data pointers
1 parent 2e8218a commit 4a74c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ impl TypeId {
783783

784784
// This is a provenance-stripping memcpy.
785785
for (i, chunk) in self.data.iter().copied().enumerate() {
786-
let chunk = chunk.expose_provenance().to_ne_bytes();
786+
let chunk = chunk.addr().to_ne_bytes();
787787
let start = i * chunk.len();
788788
bytes[start..(start + chunk.len())].copy_from_slice(&chunk);
789789
}

0 commit comments

Comments
 (0)