Skip to content

Commit 32e8398

Browse files
committed
Formatted code using rustfmt.
1 parent ac40405 commit 32e8398

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/ptr/const_ptr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1029,11 +1029,11 @@ impl<T: ?Sized> *const T {
10291029
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10301030
#[requires(
10311031
// If count is zero, any pointer is valid including null pointer.
1032-
(count == 0) ||
1032+
(count == 0) ||
10331033
// Else if count is not zero, then ensure that adding `count` doesn't cause
10341034
// overflow and that both pointers `self` and the result are in the same
10351035
// allocation
1036-
((self.addr() as isize).checked_add(count as isize).is_some() &&
1036+
((self.addr() as isize).checked_add(count as isize).is_some() &&
10371037
kani::mem::same_allocation(self, self.wrapping_byte_add(count)))
10381038
)]
10391039
#[ensures(|&result|
@@ -1173,11 +1173,11 @@ impl<T: ?Sized> *const T {
11731173
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
11741174
#[requires(
11751175
// If count is zero, any pointer is valid including null pointer.
1176-
(count == 0) ||
1176+
(count == 0) ||
11771177
// Else if count is not zero, then ensure that subtracting `count` doesn't
11781178
// cause overflow and that both pointers `self` and the result are in the
11791179
// same allocation
1180-
((self.addr() as isize).checked_sub(count as isize).is_some() &&
1180+
((self.addr() as isize).checked_sub(count as isize).is_some() &&
11811181
kani::mem::same_allocation(self, self.wrapping_byte_sub(count)))
11821182
)]
11831183
#[ensures(|&result|

0 commit comments

Comments
 (0)