Skip to content

Commit 5aa4d25

Browse files
committed
note to future self
1 parent 5d4e71a commit 5aa4d25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ptr/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
//! some memory happens to exist at that address and gets deallocated. This corresponds to writing
2727
//! your own allocator: allocating zero-sized objects is not very hard. The canonical way to
2828
//! obtain a pointer that is valid for zero-sized accesses is [`NonNull::dangling`].
29+
//FIXME: mention `ptr::invalid` above, once it is stable.
2930
//! * All accesses performed by functions in this module are *non-atomic* in the sense
3031
//! of [atomic operations] used to synchronize between threads. This means it is
3132
//! undefined behavior to perform two concurrent accesses to the same location from different

0 commit comments

Comments
 (0)