Skip to content

Commit 5068871

Browse files
committed
---
yaml --- r: 44444 b: refs/heads/master c: 26697c3 h: refs/heads/master v: v3
1 parent 4b3c257 commit 5068871

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9324f497b28ae4d98ef443e747390d1f0ccee1de
2+
refs/heads/master: 26697c371db2816bcaa32a050b5d32bce7294ca0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/libstd/workcache.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use serialize::{Encoder, Encodable, Decoder, Decodable};
1616
use sort;
1717

1818
use core::cmp;
19-
use core::dvec;
2019
use core::either::{Either, Left, Right};
2120
use core::io;
2221
use core::option;
@@ -141,13 +140,12 @@ type WorkMap = LinearMap<WorkKey, ~str>;
141140

142141
pub impl<S: Encoder> WorkMap: Encodable<S> {
143142
fn encode(&self, s: &S) {
144-
let d = dvec::DVec();
143+
let mut d = ~[];
145144
for self.each |&(k, v)| {
146145
d.push((copy *k, copy *v))
147146
}
148-
let mut v = d.get();
149-
sort::tim_sort(v);
150-
v.encode(s)
147+
sort::tim_sort(d);
148+
d.encode(s)
151149
}
152150
}
153151

0 commit comments

Comments
 (0)