Skip to content

Commit 77b6ef4

Browse files
committed
Fix compilation errors
1 parent d425502 commit 77b6ef4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

library/core/src/alloc/layout.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ use crate::{assert_unsafe_precondition, fmt, mem};
1313

1414
#[cfg(kani)]
1515
use crate::kani;
16+
#[cfg(kani)]
17+
use crate::cmp;
1618

1719
// Used only for contract verification.
1820
#[allow(unused_imports)]

library/core/src/num/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,6 @@ from_str_radix_size_impl! { signed i16 isize, unsigned u16 usize }
16821682
#[cfg(target_pointer_width = "32")]
16831683
from_str_radix_size_impl! { signed i32 isize, unsigned u32 usize }
16841684
#[cfg(target_pointer_width = "64")]
1685-
from_str_radix_size_impl! { i64 isize, u64 usize }
16861685
from_str_radix_size_impl! { signed i64 isize, unsigned u64 usize }
16871686

16881687
#[cfg(kani)]

library/core/src/ptr/unique.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<T: ?Sized> Unique<T> {
100100
#[inline]
101101
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
102102
#[ensures(|result| result.is_none() == ptr.is_null())]
103-
#[ensures(|result| result.is_none() || result.unwrap().as_ptr() == ptr)]x
103+
#[ensures(|result| result.is_none() || result.unwrap().as_ptr() == ptr)]
104104
pub const fn new(ptr: *mut T) -> Option<Self> {
105105
if let Some(pointer) = NonNull::new(ptr) {
106106
Some(Unique { pointer, _marker: PhantomData })

0 commit comments

Comments
 (0)