about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query/mod.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-26 14:19:16 +1000
committerGitHub <noreply@github.com>2025-08-26 14:19:16 +1000
commite011dd47ee04cd1e62786b5a0b3bfe2d5e58ae35 (patch)
treebb813cb7db0a62e18e70f88f9563583c8fcec1e1 /compiler/rustc_middle/src/query/mod.rs
parent27415080ccb4c27269eedf01fea99654a96bfed4 (diff)
parent25afbbc9814dba4ad6f06b6d1bf14e92851ccd32 (diff)
downloadrust-e011dd47ee04cd1e62786b5a0b3bfe2d5e58ae35.tar.gz
rust-e011dd47ee04cd1e62786b5a0b3bfe2d5e58ae35.zip
Rollup merge of #144885 - zachs18:ptr_guaranteed_cmp_more, r=RalfJung
Implement some more checks in `ptr_guaranteed_cmp`.

* Pointers with different residues modulo their allocations' least common alignment are never equal.
* Pointers to the same static allocation are equal if and only if they have the same offset.
* Pointers to different non-zero-sized static allocations are unequal if both point within their allocation, and not on opposite ends.

Tracking issue for `const_raw_ptr_comparison`: <https://github.com/rust-lang/rust/issues/53020>

This should not affect `is_null`, the only usage of this intrinsic on stable.

Closes https://github.com/rust-lang/rust/issues/144584
Diffstat (limited to 'compiler/rustc_middle/src/query/mod.rs')
0 files changed, 0 insertions, 0 deletions