about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-15 05:11:37 +0200
committerGitHub <noreply@github.com>2024-10-15 05:11:37 +0200
commit09103f2617d75eba31c050303e51c622de578472 (patch)
tree966c582c4ded8293ec2754751eb69413e5f9f766 /compiler/rustc_codegen_llvm/src
parentbb2f9706044a3dec6c686850189a7121c539e865 (diff)
parentc128b4c4334fc0ed67c242eaf60a369df6bea054 (diff)
downloadrust-09103f2617d75eba31c050303e51c622de578472.tar.gz
rust-09103f2617d75eba31c050303e51c622de578472.zip
Rollup merge of #131339 - HeroicKatora:set_ptr_value-documentation, r=Mark-Simulacrum
Expand set_ptr_value / with_metadata_of docs

In preparation of a potential FCP, intends to clean up and expand the documentation of this operation.

Rewrite these blobs to explicitly mention the case of a sized operand. The previous made that seem wrong instead of emphasizing it is nothing but a simple cast. Instead, the explanation now emphasizes that the address portion of the argument, together with its provenance, is discarded which previously had to be inferred by the reader. Then an example demonstrates a simple line of incorrect usage based on this idea of provenance.

Tracking issue: https://github.com/rust-lang/rust/issues/75091
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions