Skip to content

Commit 83230c2

Browse files
committed
---
yaml --- r: 52461 b: refs/heads/dist-snap c: ee0a8c6 h: refs/heads/master i: 52459: da5d1ae v: v3
1 parent e754d2b commit 83230c2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 203fcbd0f360fdae9db551bf63e14fe152150cc9
10+
refs/heads/dist-snap: ee0a8c68ababf403ddf9c61252fb298a90714b9b
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libcore/hashmap.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ pub mod linear {
369369
}
370370
}
371371

372-
pure fn find_ref(&self, k: &K) -> Option<&self/V> {
372+
pure fn find(&self, k: &K) -> Option<&self/V> {
373373
match self.bucket_for_key(self.buckets, k) {
374374
FoundEntry(idx) => {
375375
match self.buckets[idx] {
@@ -389,8 +389,8 @@ pub mod linear {
389389
}
390390
}
391391

392-
pure fn get_ref(&self, k: &K) -> &self/V {
393-
match self.find_ref(k) {
392+
pure fn get(&self, k: &K) -> &self/V {
393+
match self.find(k) {
394394
Some(v) => v,
395395
None => fail fmt!("No entry found for key: %?", k),
396396
}
@@ -428,7 +428,7 @@ pub mod linear {
428428
if self.len() != other.len() { return false; }
429429

430430
for self.each |key, value| {
431-
match other.find_ref(key) {
431+
match other.find(key) {
432432
None => return false,
433433
Some(v) => if value != v { return false },
434434
}
@@ -593,11 +593,11 @@ pub mod test {
593593
}
594594

595595
#[test]
596-
pub fn find_ref() {
596+
pub fn find() {
597597
let mut m = ~LinearMap();
598-
assert m.find_ref(&1).is_none();
598+
assert m.find(&1).is_none();
599599
m.insert(1, 2);
600-
match m.find_ref(&1) {
600+
match m.find(&1) {
601601
None => fail,
602602
Some(v) => assert *v == 2
603603
}

branches/dist-snap/src/libstd/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ pub impl Decoder: serialize::Decoder {
911911
// FIXME(#3148) This hint should not be necessary.
912912
let obj: &self/~Object = obj;
913913

914-
match obj.find_ref(&name.to_owned()) {
914+
match obj.find(&name.to_owned()) {
915915
None => fail fmt!("no such field: %s", name),
916916
Some(json) => {
917917
self.stack.push(json);
@@ -969,7 +969,7 @@ impl Json : Eq {
969969
if d0.len() == d1.len() {
970970
let mut equal = true;
971971
for d0.each |k, v0| {
972-
match d1.find_ref(k) {
972+
match d1.find(k) {
973973
Some(v1) if v0 == v1 => { },
974974
_ => { equal = false; break }
975975
}

branches/dist-snap/src/libstd/workcache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl @Mut<Prep> : TPrep {
297297
name: &str, val: &str) -> bool {
298298
do self.borrow_imm |p| {
299299
let k = kind.to_owned();
300-
let f = (*p.ctxt.freshness.get_ref(&k))(name, val);
300+
let f = (*p.ctxt.freshness.get(&k))(name, val);
301301
do p.ctxt.logger.borrow_imm |lg| {
302302
if f {
303303
lg.info(fmt!("%s %s:%s is fresh",

0 commit comments

Comments
 (0)