Skip to content

Commit 0e04386

Browse files
committed
use core::mem::unintialized instead of uninit intrinsic
1 parent 8bed2ac commit 0e04386

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/rc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ use core::cell::Cell;
160160
use core::cmp::Ordering;
161161
use core::fmt;
162162
use core::hash::{Hasher, Hash};
163-
use core::intrinsics::{assume, abort, uninit};
163+
use core::intrinsics::{assume, abort};
164164
use core::marker;
165165
#[cfg(not(stage0))]
166166
use core::marker::Unsize;
167-
use core::mem::{self, align_of_val, size_of_val, forget};
167+
use core::mem::{self, align_of_val, size_of_val, forget, uninitialized};
168168
use core::ops::Deref;
169169
#[cfg(not(stage0))]
170170
use core::ops::CoerceUnsized;
@@ -855,7 +855,7 @@ impl<T> Weak<T> {
855855
_ptr: Shared::new(Box::into_raw(box RcBox {
856856
strong: Cell::new(0),
857857
weak: Cell::new(1),
858-
value: uninit(),
858+
value: uninitialized(),
859859
})),
860860
}
861861
}

0 commit comments

Comments
 (0)