mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 08:17:59 +00:00
const-eval: fix and re-enable pointer fragment support The pointer fragment support from https://github.com/rust-lang/rust/pull/144081 got disabled due to https://github.com/rust-lang/rust/issues/146291. This brings it back. To fix the issue, the per-byte provenance fragment tracking tracks *both* the provenance and raw address of the full pointer, so we can ensure that only fragments that are truly part of the same pointer are being merged. r? `@oli-obk` Cc `@theemathas` Fixes https://github.com/rust-lang/const-eval/issues/72 again. Also fixes https://github.com/rust-lang/rust/issues/147959. `@traviscross` I assume this won't need another t-lang FCP since it already got FCP'd in rust-lang/rust#144081?
For more information about how rustc works, see the rustc dev guide.