Add support for allocators in Rc
and Arc
This commit is contained in:
parent
a52f8f688b
commit
215cf36d64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user