about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-07-22 00:54:30 +0800
committerGitHub <noreply@github.com>2025-07-22 00:54:30 +0800
commit9e9399fcf885e2d15cbb2157459802f365428aaa (patch)
tree237866eb5d8f33fb7e4202a8f91f0ca4d43c921a /compiler/rustc_span
parent0fd009ffe459bd121629c893446525eff6f1c8fe (diff)
parent3f9be406a6fd879a99a0eba33cc196fa2cb3957b (diff)
downloadrust-9e9399fcf885e2d15cbb2157459802f365428aaa.tar.gz
rust-9e9399fcf885e2d15cbb2157459802f365428aaa.zip
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 https://github.com/rust-lang/rust/pull/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````
Diffstat (limited to 'compiler/rustc_span')
0 files changed, 0 insertions, 0 deletions