about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPiotr Czarnecki <pioczarn@gmail.com>2016-03-05 22:18:51 +0100
committerPiotr Czarnecki <pioczarn@gmail.com>2016-03-05 22:22:38 +0100
commitd67cf45d2222fdde16d935dead18a8be4b080060 (patch)
tree54cf44b78b1ca5816c6901fdb4943a56bb978f8d /src/libstd
parent0adcd641149bd32cb3d6d7ea8a8140322e500ae1 (diff)
downloadrust-d67cf45d2222fdde16d935dead18a8be4b080060.tar.gz
rust-d67cf45d2222fdde16d935dead18a8be4b080060.zip
Turn 2 assertions into debug assertions
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 86d7aef3d58..6f044958618 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -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);
     }
 }
 
@@ -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) => {