Skip to content

Commit d67cf45

Browse files
committed
Turn 2 assertions into debug assertions
1 parent 0adcd64 commit d67cf45

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+2
-2
lines changed

src/libstd/collections/hash/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ fn search_hashed<K, V, M, F>(table: M,
394394
}
395395

396396
probe = full.next();
397-
assert!(probe.index() as isize != ib + size + 1);
397+
debug_assert!(probe.index() as isize != ib + size + 1);
398398
}
399399
}
400400

@@ -447,7 +447,7 @@ fn robin_hood<'a, K: 'a, V: 'a>(bucket: FullBucketMut<'a, K, V>,
447447

448448
loop {
449449
let probe = bucket.next();
450-
assert!(probe.index() != idx_end);
450+
debug_assert!(probe.index() != idx_end);
451451

452452
let full_bucket = match probe.peek() {
453453
Empty(bucket) => {

0 commit comments

Comments
 (0)