about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-10-15 10:15:19 -0700
committerGitHub <noreply@github.com>2018-10-15 10:15:19 -0700
commit8e42f01f43371c3305af6897e872d51f950d571b (patch)
tree79c0ad4f69832de5c18f2a88707c9678adb421d2 /src/rustllvm/RustWrapper.cpp
parent2e8b61dce6b2dfd96575183cfdc9be03fdf21a53 (diff)
parent6cc84acc60c21389107dac5f9dd70f08862519fd (diff)
downloadrust-8e42f01f43371c3305af6897e872d51f950d571b.tar.gz
rust-8e42f01f43371c3305af6897e872d51f950d571b.zip
Rollup merge of #55060 - jannic:patch-1, r=joshtriplett
clarify pointer add/sub function safety concerns

Ralf Jung made the same changes to the offset functions' documentation
in commit fb089156. As add/sub just call offset, the same limitation
applies here, as well.

I did not copy the whole explanation ("In particular, the resulting pointer may *not* be used to access a different allocated object [...]") because I'd consider that as being too repetitive. The documentation of add/sub already refers to the offset function, so people interested in the details can look it up, there.
But changing 'an object' to 'the same object' is a small change which improves clarity a lot.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions