Skip to content

Commit de6f080

Browse files
committed
---
yaml --- r: 63279 b: refs/heads/snap-stage3 c: a198aad h: refs/heads/master i: 63277: 4981539 63275: 5b3701e 63271: d623075 63263: 009fdbd v: v3
1 parent e61c81a commit de6f080

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4e950e970291dc25ce627fba649308775311a082
4+
refs/heads/snap-stage3: a198aad8f3c60f7fdbfe127855e2e76bad1c0587
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/hashmap.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
9494

9595
#[inline(always)]
9696
fn next_bucket(&self, idx: uint, len_buckets: uint) -> uint {
97-
let n = (idx + 1) % len_buckets;
98-
debug!("next_bucket(%?, %?) = %?", idx, len_buckets, n);
99-
n
97+
(idx + 1) % len_buckets
10098
}
10199

102100
#[inline(always)]
@@ -215,16 +213,12 @@ impl<K:Hash + Eq,V> HashMap<K, V> {
215213
match self.bucket_for_key_with_hash(hash, &k) {
216214
TableFull => { fail!("Internal logic error"); }
217215
FoundHole(idx) => {
218-
debug!("insert fresh (%?->%?) at idx %?, hash %?",
219-
k, v, idx, hash);
220216
self.buckets[idx] = Some(Bucket{hash: hash, key: k,
221217
value: v});
222218
self.size += 1;
223219
None
224220
}
225221
FoundEntry(idx) => {
226-
debug!("insert overwrite (%?->%?) at idx %?, hash %?",
227-
k, v, idx, hash);
228222
match self.buckets[idx] {
229223
None => { fail!("insert_internal: Internal logic error") }
230224
Some(ref mut b) => {

0 commit comments

Comments
 (0)