diff options
| author | kennytm <kennytm@gmail.com> | 2018-07-22 22:10:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-22 22:10:13 +0800 |
| commit | 519651accaa8352747dd1019b4396bdd77d31ac7 (patch) | |
| tree | 0c2e949abb6e1311eeccb781bd8d63efdcc96946 /src/rustllvm/RustWrapper.cpp | |
| parent | 82cdbf1d3ac67b4d1abf37ce748465a6ed97888c (diff) | |
| parent | ce756321ba888c7701cb81febd1de2bd98f87724 (diff) | |
| download | rust-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
