Skip to content

Commit f79928c

Browse files
[create-pull-request] automated change
1 parent 7c1cbac commit f79928c

File tree

1 file changed

+1
-3
lines changed
  • verifast-proofs/alloc/raw_vec/mod.rs/verified

1 file changed

+1
-3
lines changed

verifast-proofs/alloc/raw_vec/mod.rs/verified/raw_vec.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ impl RawVecInner<Global> {
465465
}
466466

467467
// Tiny Vecs are dumb. Skip to:
468-
// - 8 if the element size is 1, because any heap allocators is likely
468+
// - 8 if the element size is 1, because any heap allocator is likely
469469
// to round up a request of less than 8 bytes to at least 8 bytes.
470470
// - 4 if elements are moderate-sized (<= 1 KiB).
471471
// - 1 otherwise, to avoid wasting too much space for very short Vecs.
@@ -2015,8 +2015,6 @@ ens thread_token(t) &*& *alloc |-> ?alloc1 &*& Allocator(t, alloc1, alloc_id) &*
20152015
@*/
20162016
//@ safety_proof { assume(false); }
20172017
{
2018-
alloc_guard(new_layout.size())?;
2019-
20202018
let memory = if let Some((ptr, old_layout)) = current_memory {
20212019
// debug_assert_eq!(old_layout.align(), new_layout.align());
20222020
if cfg!(debug_assertions) { //~allow_dead_code // FIXME: The source location associated

0 commit comments

Comments
 (0)