From d67cf45d2222fdde16d935dead18a8be4b080060 Mon Sep 17 00:00:00 2001 From: Piotr Czarnecki Date: Sat, 5 Mar 2016 22:18:51 +0100 Subject: [PATCH] Turn 2 assertions into debug assertions --- src/libstd/collections/hash/map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 86d7aef3d58e..6f0449586185 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -394,7 +394,7 @@ fn search_hashed(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) => {