Skip to content

Commit 951f041

Browse files
committed
fix import
1 parent baaf864 commit 951f041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<T, A: Alloc> RawVec<T, A> {
5454
pub const fn new_in(a: A) -> Self {
5555
let cap = {
5656
#[cfg(not(bootstrap))]
57-
{ if mem::size_of::<T>() == 0 { usize::MAX } else { 0 } }
57+
{ if mem::size_of::<T>() == 0 { core::usize::MAX } else { 0 } }
5858

5959
#[cfg(bootstrap)]
6060
[0, !0][(mem::size_of::<T>() == 0) as usize]

0 commit comments

Comments
 (0)