Commit d70dba4
authored
Rollup merge of #144187 - RalfJung:type-id-base-addr, r=oli-obk
fix handling of base address for TypeId allocations
This fixes the problems discovered by ````@theemathas```` in rust-lang/rust#142789:
- const-eval would sometimes consider TypeId pointers to be null
- the type ID is different in Miri than in regular executions
Both boil down to the same issue: the TypeId "allocation" has a guaranteed 0 base address, but const-eval assumes it was non-zero (like normal allocations) and Miri randomized it (like normal allocations).
r? ````@oli-obk````File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments