Skip to content

Commit b28a368

Browse files
remove redundant import
1 parent d8aa566 commit b28a368

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

library/alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
// tidy-alphabetical-start
9595
#![cfg_attr(kani, feature(kani))]
9696
#![cfg_attr(kani, feature(proc_macro_hygiene))]
97-
#![cfg_attr(kani, feature(stmt_expr_attributes))]
9897
#![feature(alloc_layout_extra)]
9998
#![feature(allocator_api)]
10099
#![feature(array_into_iter_constructors)]

library/alloc/src/slice.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ use core::borrow::{Borrow, BorrowMut};
1414
use core::cmp::Ordering::{self, Less};
1515
#[cfg(kani)]
1616
use core::kani;
17-
#[cfg(kani)]
18-
use core::kani;
1917
#[cfg(not(no_global_oom_handling))]
2018
use core::mem::MaybeUninit;
2119
#[cfg(kani)]
@@ -541,7 +539,7 @@ impl<T> [T] {
541539
unsafe {*len_ptr <= T::MAX_SLICE_LEN} &&
542540
unsafe {*len_ptr <= capacity} &&
543541
m.leading_zeros() > n.leading_zeros() &&
544-
unsafe {*len_ptr == sef.len() * (1usize << (m.leading_zeros() - n.leading_zeros() - 1))}
542+
unsafe {*len_ptr == self.len() * (1usize << (m.leading_zeros() - n.leading_zeros() - 1))}
545543
))]
546544
#[cfg_attr(kani, kani::loop_modifies(&m, buf_ptr, len_ptr))]
547545
while m > 0 {

0 commit comments

Comments
 (0)