Skip to content

Commit 7ecf49f

Browse files
authored
Update mod.rs
1 parent 7ef782f commit 7ecf49f

File tree

1 file changed

+1
-1
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+1
-1
lines changed

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
21022102
#[track_caller]
21032103
#[must_use = "if you don't need a reference to the value, use VecDeque::insert instead"]
21042104
pub fn insert_mut(&mut self, index: usize, value: T) -> &mut T {
2105-
if intrinsics::unlikely(index > self.len) {
2105+
if core::intrinsics::unlikely(index > self.len) {
21062106
panic!("insertion index (is {index}) should be <= len (is {})", self.len())
21072107
};
21082108
if self.is_full() {

0 commit comments

Comments
 (0)