Lines Matching refs:allocate
178 // Don't allocate here because `Drop` will not deallocate when `capacity` is 0.
193 AllocInit::Uninitialized => alloc.allocate(layout),
213 // Don't allocate here because `Drop` will not deallocate when `capacity` is 0.
221 AllocInit::Uninitialized => alloc.allocate(layout),
296 /// If `len` exceeds `self.capacity()`, this may fail to actually allocate
359 /// If `len` exceeds `self.capacity()`, this may fail to actually allocate
524 alloc.allocate(new_layout)
551 // * We don't ever allocate `> isize::MAX` byte-size objects.
552 // * We don't overflow `usize::MAX` and actually allocate too little.
554 // On 64-bit we just need to check for overflow since trying to allocate