about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorAndreas Molzer <andreas.molzer@gmx.de>2024-10-06 21:32:04 +0200
committerAndreas Molzer <andreas.molzer@gmx.de>2024-10-06 21:42:13 +0200
commit2bd0d070ed7733a827ef46d3e4a2430a7a5aaed3 (patch)
tree7a774e686e966c9bbbd8c144f1eca1df655f5f85 /compiler/rustc_codegen_llvm/src/errors.rs
parentf7c8928f035370be33463bb7f1cd1aeca2c5f898 (diff)
downloadrust-2bd0d070ed7733a827ef46d3e4a2430a7a5aaed3.tar.gz
rust-2bd0d070ed7733a827ef46d3e4a2430a7a5aaed3.zip
Expand set_ptr_value / with_metadata_of docs
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions