File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,11 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
476
476
impl < T : ?Sized > * const T {
477
477
/// Returns `true` if the pointer is null.
478
478
///
479
+ /// Note that unsized types have many possible null pointers, as only the
480
+ /// raw data pointer is considered, not their length, vtable, etc.
481
+ /// Therefore, two pointers that are null may still not compare equal to
482
+ /// each other.
483
+ ///
479
484
/// # Examples
480
485
///
481
486
/// Basic usage:
@@ -1109,6 +1114,11 @@ impl<T: ?Sized> *const T {
1109
1114
impl < T : ?Sized > * mut T {
1110
1115
/// Returns `true` if the pointer is null.
1111
1116
///
1117
+ /// Note that unsized types have many possible null pointers, as only the
1118
+ /// raw data pointer is considered, not their length, vtable, etc.
1119
+ /// Therefore, two pointers that are null may still not compare equal to
1120
+ /// each other.
1121
+ ///
1112
1122
/// # Examples
1113
1123
///
1114
1124
/// Basic usage:
You can’t perform that action at this time.
0 commit comments