Skip to content

Commit

Permalink
Revert "Add another assert"
Browse files Browse the repository at this point in the history
This reverts commit 21d2a6c.
  • Loading branch information
alexcrichton committed Oct 5, 2018
1 parent 60c8460 commit 8d81c03
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/liballoc/collections/vec_deque.rs
Expand Up @@ -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};
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 8d81c03

Please sign in to comment.