Skip to content

Commit 64bf786

Browse files
committed
mention the maybe-dangling crate
1 parent c5a4988 commit 64bf786

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/0000-maybe-dangling.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ The author cannot think of prior art in other languages; the issue arises becaus
247247
Inside Rust, we do have precedent for wrapper types altering language semantics; most prominently, there are `UnsafeCell` and `MaybeUninit`.
248248
Notice that `UnsafeCell` acts "behind references" while `MaybeDangling`, like `MaybeUninit`, acts "around references": `MaybeDangling<&T>` vs `&UnsafeCell<T>`.
249249

250+
There is a [crate](https://docs.rs/maybe-dangling) offering these semantics on stable Rust via `MaybeUninit`.
251+
(This is not "prior" art, it was published after this RFC came out. "Related work" would be more apt. Alas, the RFC template forces this structure on us.)
252+
250253
# Unresolved questions
251254
[unresolved-questions]: #unresolved-questions
252255

0 commit comments

Comments
 (0)