Skip to content

Commit 4202060

Browse files
committed
Workaround unused error
1 parent cb2e19c commit 4202060

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/alloc/src/raw_vec.rs

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ impl<T, A: Allocator> RawVec<T, A> {
108108
// to round up a request of less than 8 bytes to at least 8 bytes.
109109
// - 4 if elements are moderate-sized (<= 1 KiB).
110110
// - 1 otherwise, to avoid wasting too much space for very short Vecs.
111+
// FIXME: there's one place that uses it, but then some other
112+
// build fails due to being unused
113+
#[allow(unused)]
111114
pub(crate) const MIN_NON_ZERO_CAP: usize = if mem::size_of::<T>() == 1 {
112115
8
113116
} else if mem::size_of::<T>() <= 1024 {

0 commit comments

Comments
 (0)