about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-22 22:10:13 +0800
committerGitHub <noreply@github.com>2018-07-22 22:10:13 +0800
commit519651accaa8352747dd1019b4396bdd77d31ac7 (patch)
tree0c2e949abb6e1311eeccb781bd8d63efdcc96946 /src/rustllvm/RustWrapper.cpp
parent82cdbf1d3ac67b4d1abf37ce748465a6ed97888c (diff)
parentce756321ba888c7701cb81febd1de2bd98f87724 (diff)
downloadrust-519651accaa8352747dd1019b4396bdd77d31ac7.tar.gz
rust-519651accaa8352747dd1019b4396bdd77d31ac7.zip
Rollup merge of #52508 - joshtriplett:dangling-not-sentinel, r=Mark-Simulacrum
Document that Unique::empty() and NonNull::dangling() aren't sentinel values

The documentation of Unique::empty() and NonNull::dangling() could
potentially suggest that they work as sentinel values indicating a
not-yet-initialized pointer. However, they both declare a non-null
pointer equal to the alignment of the type, which could potentially
reference a valid value of that type (specifically, the first such valid
value in memory). Explicitly document that the return value of these
functions does not work as a sentinel value.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions