Rename Box::*_nonnull_raw to *_non_null_raw
This commit is contained in:
parent
55c50cd8ac
commit
1772fa2aa1
4 changed files with 18 additions and 18 deletions
|
@ -286,7 +286,7 @@ impl<T> Arc<T> {
|
|||
weak: atomic::AtomicUsize::new(1),
|
||||
data,
|
||||
};
|
||||
Arc { ptr: Box::into_nonnull_raw(x), phantom: PhantomData }
|
||||
Arc { ptr: Box::into_non_null_raw(x), phantom: PhantomData }
|
||||
}
|
||||
|
||||
/// Returns the contained value, if the `Arc` has exactly one strong reference.
|
||||
|
@ -991,7 +991,7 @@ impl<T> Weak<T> {
|
|||
pub fn new() -> Weak<T> {
|
||||
unsafe {
|
||||
Weak {
|
||||
ptr: Box::into_nonnull_raw(box ArcInner {
|
||||
ptr: Box::into_non_null_raw(box ArcInner {
|
||||
strong: atomic::AtomicUsize::new(0),
|
||||
weak: atomic::AtomicUsize::new(1),
|
||||
data: uninitialized(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue