Skip to content

Commit

Permalink
Turn 2 assertions into debug assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed Mar 5, 2016
1 parent 0adcd64 commit d67cf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/collections/hash/map.rs
Expand Up @@ -394,7 +394,7 @@ fn search_hashed<K, V, M, F>(table: M,
}

probe = full.next();
assert!(probe.index() as isize != ib + size + 1);
debug_assert!(probe.index() as isize != ib + size + 1);
}
}

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

loop {
let probe = bucket.next();
assert!(probe.index() != idx_end);
debug_assert!(probe.index() != idx_end);

let full_bucket = match probe.peek() {
Empty(bucket) => {
Expand Down

0 comments on commit d67cf45

Please sign in to comment.