diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-15 10:15:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 10:15:19 -0700 |
| commit | 8e42f01f43371c3305af6897e872d51f950d571b (patch) | |
| tree | 79c0ad4f69832de5c18f2a88707c9678adb421d2 /src/rustllvm/RustWrapper.cpp | |
| parent | 2e8b61dce6b2dfd96575183cfdc9be03fdf21a53 (diff) | |
| parent | 6cc84acc60c21389107dac5f9dd70f08862519fd (diff) | |
| download | rust-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
