Revert "Add another assert"

This reverts commit 21d2a6c986.
This commit is contained in:
Alex Crichton 2018-10-05 09:15:39 -07:00
parent 60c846046e
commit 8d81c03b65

View file

@ -19,7 +19,6 @@
use core::cmp::Ordering;
use core::fmt;
use core::isize;
use core::iter::{repeat, FromIterator, FusedIterator};
use core::mem;
use core::ops::Bound::{Excluded, Included, Unbounded};
@ -211,9 +210,6 @@ impl<T> VecDeque<T> {
/// If so, this function never panics.
#[inline]
unsafe fn copy_slice(&mut self, src: &[T]) {
/// This is guaranteed by `RawVec`.
debug_assert!(self.capacity() <= isize::MAX as usize);
let expected_new_len = self.len() + src.len();
debug_assert!(self.capacity() >= expected_new_len);