Skip to content

Commit 6aacbb8

Browse files
committed
Runs rust format on the file
1 parent 1d0fb75 commit 6aacbb8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

library/core/src/ptr/const_ptr.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ mod verify {
20702070
check_const_offset_from_tuple_4_arr
20712071
);
20722072

2073-
// Proof for contact of byte_offset_from to verify unit type
2073+
// Proof for contact of byte_offset_from to verify unit type
20742074
#[kani::proof_for_contract(<*const ()>::byte_offset_from)]
20752075
pub fn check_const_byte_offset_from_unit() {
20762076
let val: () = ();
@@ -2081,7 +2081,7 @@ mod verify {
20812081
}
20822082
}
20832083

2084-
// generate proofs for contracts for byte_offset_from to verify int and composite
2084+
// generate proofs for contracts for byte_offset_from to verify int and composite
20852085
// types
20862086
// - `$type`: pointee type
20872087
// - `$proof_name1`: name of the harness for single element
@@ -2222,7 +2222,8 @@ mod verify {
22222222
const gen_size: usize = mem::size_of::<$type>();
22232223
let mut generator1 = PointerGenerator::<{ gen_size * ARRAY_LEN }>::new();
22242224
let mut generator2 = PointerGenerator::<{ gen_size * ARRAY_LEN }>::new();
2225-
let ptr1: *const [$type] = generator1.any_in_bounds().ptr as *const [$type; SLICE_LEN];
2225+
let ptr1: *const [$type] =
2226+
generator1.any_in_bounds().ptr as *const [$type; SLICE_LEN];
22262227
let ptr2: *const [$type] = if kani::any() {
22272228
generator1.any_alloc_status().ptr as *const [$type; SLICE_LEN]
22282229
} else {
@@ -2235,7 +2236,7 @@ mod verify {
22352236
}
22362237
};
22372238
}
2238-
2239+
22392240
generate_const_byte_offset_from_slice_harness!(u8, check_const_byte_offset_from_u8_slice);
22402241
generate_const_byte_offset_from_slice_harness!(u16, check_const_byte_offset_from_u16_slice);
22412242
generate_const_byte_offset_from_slice_harness!(u32, check_const_byte_offset_from_u32_slice);
@@ -2248,5 +2249,4 @@ mod verify {
22482249
generate_const_byte_offset_from_slice_harness!(i64, check_const_byte_offset_from_i64_slice);
22492250
generate_const_byte_offset_from_slice_harness!(i128, check_const_byte_offset_from_i128_slice);
22502251
generate_const_byte_offset_from_slice_harness!(isize, check_const_byte_offset_from_isize_slice);
2251-
22522252
}

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ pub mod verify {
23892389
}
23902390
}
23912391

2392-
// generate proofs for contracts for byte_offset_from to verify int and composite
2392+
// generate proofs for contracts for byte_offset_from to verify int and composite
23932393
// types
23942394
// - `$type`: pointee type
23952395
// - `$proof_name1`: name of the harness for single element
@@ -2543,7 +2543,7 @@ pub mod verify {
25432543
}
25442544
};
25452545
}
2546-
2546+
25472547
generate_mut_byte_offset_from_slice_harness!(u8, check_mut_byte_offset_from_u8_slice);
25482548
generate_mut_byte_offset_from_slice_harness!(u16, check_mut_byte_offset_from_u16_slice);
25492549
generate_mut_byte_offset_from_slice_harness!(u32, check_mut_byte_offset_from_u32_slice);

0 commit comments

Comments
 (0)