We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5280e4 commit f9f9923Copy full SHA for f9f9923
src/liballoc/raw_vec.rs
@@ -65,7 +65,7 @@ impl<T, A: Alloc> RawVec<T, A> {
65
RawVec {
66
ptr: Unique::empty(),
67
// FIXME(mark-i-m): use `cap` when ifs are allowed in const
68
- cap: [0, !0][(mem::size_of::<T>() != 0) as usize],
+ cap: [0, !0][(mem::size_of::<T>() == 0) as usize],
69
a,
70
}
71
0 commit comments