about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-11-02 03:08:56 +0800
committerGitHub <noreply@github.com>2024-11-02 03:08:56 +0800
commit305ca05cbe1015f7841427a5c014b435ce7319ce (patch)
tree0149da9b970c62c31e5c73b28e9816ff2ed04e16 /compiler/rustc_codegen_llvm/src/context.rs
parent81c6943f1a64345124a99485cc2af1a3cb192c35 (diff)
parentc38865502eae3cdd930669d68295b30276903d37 (diff)
downloadrust-305ca05cbe1015f7841427a5c014b435ce7319ce.tar.gz
rust-305ca05cbe1015f7841427a5c014b435ce7319ce.zip
Rollup merge of #132459 - RalfJung:byte_sub_ptr, r=scottmcm
feat(byte_sub_ptr): unstably add ptr::byte_sub_ptr

This is an API that naturally should exist as a combination of byte_offset_from and sub_ptr
both existing (they showed up at similar times so this union was never made). Adding these
is a logical (and perhaps final) precondition of stabilizing ptr_sub_ptr (https://github.com/rust-lang/rust/issues/95892).

Original PR by ``@Gankra`` (https://github.com/rust-lang/rust/pull/121919), I am just reviving it. The 2nd commit (with a small docs tweak) is by me.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions