Skip to content

Commit 908b65a

Browse files
committed
---
yaml --- r: 42927 b: refs/heads/try c: 4fd9264 h: refs/heads/master i: 42925: a97b2c1 42923: 67b2033 42919: ffa3f4b 42911: 077e450 v: v3
1 parent 896c65c commit 908b65a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 119c78073b6a0ab62b90d05d12eac58af2a5cfb4
5+
refs/heads/try: 4fd9264875c0e0ee450316e8fbf15977d8978a74
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libcargo/cargo.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ pub fn cmd_sources(c: &Cargo) {
16871687
match action {
16881688
~"clear" => {
16891689
for c.sources.each_key_ref |&k| {
1690-
c.sources.remove(k);
1690+
c.sources.remove(&k);
16911691
}
16921692

16931693
info(~"cleared sources");
@@ -1734,7 +1734,7 @@ pub fn cmd_sources(c: &Cargo) {
17341734
}
17351735

17361736
if c.sources.contains_key_ref(&name) {
1737-
c.sources.remove(name);
1737+
c.sources.remove(&name);
17381738
info(fmt!("removed source: %s", name));
17391739
} else {
17401740
error(fmt!("no such source: %s", name));
@@ -1825,7 +1825,7 @@ pub fn cmd_sources(c: &Cargo) {
18251825

18261826
match c.sources.find(name) {
18271827
Some(source) => {
1828-
c.sources.remove(name);
1828+
c.sources.remove(&name);
18291829
c.sources.insert(newn, source);
18301830
info(fmt!("renamed source: %s to %s", name, newn));
18311831
}

branches/try/src/librustc/middle/trans/_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ pub fn compile_guard(bcx: block,
11981198
}
11991199
TrByRef | TrByImplicitRef => {}
12001200
}
1201-
bcx.fcx.lllocals.remove(binding_info.id);
1201+
bcx.fcx.lllocals.remove(&binding_info.id);
12021202
}
12031203
return bcx;
12041204
}

branches/try/src/librustc/middle/typeck/infer/region_inference.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ pub impl RegionVarBindings {
712712
assert self.var_spans.len() == *vid + 1;
713713
self.var_spans.pop();
714714
}
715-
AddConstraint(constraint) => {
715+
AddConstraint(ref constraint) => {
716716
self.constraints.remove(constraint);
717717
}
718718
AddCombination(map, ref regions) => {
719-
map.remove((*regions));
719+
map.remove(regions);
720720
}
721721
}
722722
}

branches/try/src/libstd/oldmap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ pub mod chained {
299299
option::unwrap(move opt_v)
300300
}
301301

302-
fn remove(k: K) -> bool {
303-
match self.search_tbl(&k, k.hash_keyed(0,0) as uint) {
302+
fn remove(k: &K) -> bool {
303+
match self.search_tbl(k, k.hash_keyed(0,0) as uint) {
304304
NotFound => false,
305305
FoundFirst(idx, entry) => {
306306
self.count -= 1u;
@@ -578,7 +578,7 @@ mod tests {
578578
debug!("removing evens");
579579
i = 0u;
580580
while i < num_to_insert {
581-
let v = hm.remove(i);
581+
let v = hm.remove(&i);
582582
assert v;
583583
i += 2u;
584584
}

branches/try/src/test/bench/core-map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn old_int_benchmarks(rng: @rand::Rng, num_keys: uint, results: &mut Results) {
6464

6565
do timed(&mut results.delete_ints) {
6666
for uint::range(0, num_keys) |i| {
67-
assert map.remove(i);
67+
assert map.remove(&i);
6868
}
6969
}
7070
}
@@ -103,7 +103,7 @@ fn old_str_benchmarks(rng: @rand::Rng, num_keys: uint, results: &mut Results) {
103103
}
104104
do timed(&mut results.delete_strings) {
105105
for uint::range(0, num_keys) |i| {
106-
assert map.remove(uint::to_str(i, 10));
106+
assert map.remove(&uint::to_str(i, 10));
107107
}
108108
}
109109
}

branches/try/src/test/bench/shootout-mandelbrot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn writer(path: ~str, pport: pipes::Port<Line>, size: uint)
138138
debug!("WS %u", prev);
139139
cout.write(lines.get(prev));
140140
done += 1_u;
141-
lines.remove(prev);
141+
lines.remove(&prev);
142142
prev += 1_u;
143143
}
144144
else {

0 commit comments

Comments
 (0)