diff options
| author | Zachary S <zasample18+github@gmail.com> | 2025-07-28 16:13:07 -0500 |
|---|---|---|
| committer | Zachary S <zasample18+github@gmail.com> | 2025-08-23 12:09:07 -0500 |
| commit | 10fde9eafe95650eca9452e960a891ec3ee35565 (patch) | |
| tree | 7c875168702c5710896e7d8978817f507e798f64 /compiler/rustc_codegen_llvm/src | |
| parent | 07b7dc90ee4df5815dbb91ef8e98cb93571230f5 (diff) | |
| download | rust-10fde9eafe95650eca9452e960a891ec3ee35565.tar.gz rust-10fde9eafe95650eca9452e960a891ec3ee35565.zip | |
Implement some more checks for `ptr_guaranteed_cmp` in consteval:
Pointers with different residues modulo their least common allocation alignment are never equal. Pointers to the same static allocation are equal if and only if they have the same offset. Strictly in-bounds (in-bounds and not one-past-the-end) pointers to different static allocations are always unequal. A pointer cannot be equal to an integer if `ptr-int` cannot be null. Also adds more tests for `ptr_guaranteed_cmp`. Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
