Add support for allocators in Rc and Arc

This commit is contained in:
Cyborus04 2023-06-30 11:39:34 -04:00
parent a52f8f688b
commit 215cf36d64
No known key found for this signature in database

View File

@ -1493,7 +1493,7 @@ pub fn as_ptr(this: &Self) -> *const T {
/// basically like transmuting references of different types. See
/// [`mem::transmute`][transmute] for more information on what
/// restrictions apply in this case.
///
///
/// The raw pointer must point to a block of memory allocated by `alloc`
///
/// The user of `from_raw` has to make sure a specific value of `T` is only