Skip to content

Commit

Permalink
add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Dec 19, 2019
1 parent 951f041 commit 2535435
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc/raw_vec.rs
Expand Up @@ -52,6 +52,7 @@ impl<T, A: Alloc> RawVec<T, A> {
/// Like `new`, but parameterized over the choice of allocator for
/// the returned `RawVec`.
pub const fn new_in(a: A) -> Self {
// FIXME(mark-i-m): remove bootstrapping cfgs these after a cycle
let cap = {
#[cfg(not(bootstrap))]
{ if mem::size_of::<T>() == 0 { core::usize::MAX } else { 0 } }
Expand Down

0 comments on commit 2535435

Please sign in to comment.