Rename {NonZero,Shared,Unique}::new to new_unchecked

This commit is contained in:
Simon Sapin 2017-06-29 01:03:35 +02:00
parent e9af03a222
commit 0a08ad0443
20 changed files with 47 additions and 47 deletions

View file

@ -893,7 +893,7 @@ impl<T> VecDeque<T> {
self.head = drain_tail;
Drain {
deque: unsafe { Shared::new(self as *mut _) },
deque: unsafe { Shared::new_unchecked(self as *mut _) },
after_tail: drain_head,
after_head: head,
iter: Iter {