about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2025-01-03 18:02:33 +0100
committerMartin Nordholts <martin.nordholts@codetale.se>2025-02-15 17:27:55 +0100
commit697737a8b18b685270f197ccdd1211e8a010b98b (patch)
tree898847f9c092427efb89281978a7b427f6c95666 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentd16da3b8b2be9f1da5a2e9d2b31c499a21d2d7a1 (diff)
downloadrust-697737a8b18b685270f197ccdd1211e8a010b98b.tar.gz
rust-697737a8b18b685270f197ccdd1211e8a010b98b.zip
core: Make `Debug` impl of raw pointers print metadata if present
Make Rust pointers less magic by including metadata information in their
`Debug` output.

This does not break Rust stability guarantees because `Debug` output is
explicitly exempted from stability:
https://doc.rust-lang.org/std/fmt/trait.Debug.html#stability

Co-authored-by: Lukas <26522220+lukas-code@users.noreply.github.com>
Co-authored-by: Josh Stone <cuviper@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions