File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ use core::os;
18
18
use core:: uint;
19
19
use core:: util;
20
20
use core:: vec;
21
- use std:: oldmap:: HashMap ;
22
- use std:: oldmap;
21
+ use core:: hashmap:: linear:: LinearSet ;
23
22
24
23
pure fn not_win32 ( os : session:: os ) -> bool {
25
24
match os {
@@ -187,16 +186,14 @@ pub fn get_install_prefix_rpath(target_triple: &str) -> Path {
187
186
}
188
187
189
188
pub fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] {
190
- let set = oldmap::HashMap ();
189
+ let mut set = LinearSet::new ();
191
190
let mut minimized = ~[];
192
191
for rpaths.each |rpath| {
193
- let s = rpath.to_str();
194
- if !set.contains_key(&s) {
195
- minimized.push(/*bad*/copy *rpath);
196
- set.insert(s, ());
192
+ if set.insert(rpath.to_str()) {
193
+ minimized.push(copy *rpath);
197
194
}
198
195
}
199
- return minimized;
196
+ minimized
200
197
}
201
198
202
199
#[cfg(unix)]
You can’t perform that action at this time.
0 commit comments