about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-05 01:53:31 +0200
committerGitHub <noreply@github.com>2022-04-05 01:53:31 +0200
commit3bf33b9060065b69f22c50d0ec924eaf51da830a (patch)
treeb65be5cb64ea858cc7fc1a100cc024660b1d11cc /compiler/rustc_codegen_gcc
parenta5c81695a95e2a1a8e2ea4310bf670a9c1734387 (diff)
parent0252fc9619805e59a32e8cf9a13591df69a56a5b (diff)
downloadrust-3bf33b9060065b69f22c50d0ec924eaf51da830a.tar.gz
rust-3bf33b9060065b69f22c50d0ec924eaf51da830a.zip
Rollup merge of #95588 - RalfJung:strict-provenance, r=scottmcm
explicitly distinguish pointer::addr and pointer::expose_addr

``@bgeron`` pointed out that the current docs promise that `ptr.addr()` and `ptr as usize` are equivalent. I don't think that is a promise we want to make. (Conceptually, `ptr as usize` might 'escape' the provenance to enable future `usize as ptr` casts, but `ptr.addr()` dertainly does not do that.)

So I propose we word the docs a bit more carefully here. ``@Gankra`` what do you think?
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions