We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baaf864 commit 951f041Copy full SHA for 951f041
src/liballoc/raw_vec.rs
@@ -54,7 +54,7 @@ impl<T, A: Alloc> RawVec<T, A> {
54
pub const fn new_in(a: A) -> Self {
55
let cap = {
56
#[cfg(not(bootstrap))]
57
- { if mem::size_of::<T>() == 0 { usize::MAX } else { 0 } }
+ { if mem::size_of::<T>() == 0 { core::usize::MAX } else { 0 } }
58
59
#[cfg(bootstrap)]
60
[0, !0][(mem::size_of::<T>() == 0) as usize]
0 commit comments