Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Dec 19, 2019
1 parent baaf864 commit 951f041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/raw_vec.rs
Expand Up @@ -54,7 +54,7 @@ impl<T, A: Alloc> RawVec<T, A> {
pub const fn new_in(a: A) -> Self {
let cap = {
#[cfg(not(bootstrap))]
{ if mem::size_of::<T>() == 0 { usize::MAX } else { 0 } }
{ if mem::size_of::<T>() == 0 { core::usize::MAX } else { 0 } }

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

0 comments on commit 951f041

Please sign in to comment.