Skip to content

Commit

Permalink
librustc/back/rpath.rs: oldmap -> LinearSet
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Feb 9, 2013
1 parent d30fdbb commit 4e6994d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/librustc/back/rpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use core::os;
use core::uint;
use core::util;
use core::vec;
use std::oldmap::HashMap;
use std::oldmap;
use core::hashmap::linear::LinearSet;

pure fn not_win32(os: session::os) -> bool {
match os {
Expand Down Expand Up @@ -187,16 +186,14 @@ pub fn get_install_prefix_rpath(target_triple: &str) -> Path {
}
pub fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] {
let set = oldmap::HashMap();
let mut set = LinearSet::new();
let mut minimized = ~[];
for rpaths.each |rpath| {
let s = rpath.to_str();
if !set.contains_key(&s) {
minimized.push(/*bad*/copy *rpath);
set.insert(s, ());
if set.insert(rpath.to_str()) {
minimized.push(copy *rpath);
}
}
return minimized;
minimized
}
#[cfg(unix)]
Expand Down

5 comments on commit 4e6994d

@bors
Copy link
Contributor

@bors bors commented on 4e6994d Feb 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4e6994d Feb 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging thestinger/rust/oldmap = 4e6994d into auto

@bors
Copy link
Contributor

@bors bors commented on 4e6994d Feb 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thestinger/rust/oldmap = 4e6994d merged ok, testing candidate = d6442e9

@bors
Copy link
Contributor

@bors bors commented on 4e6994d Feb 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4e6994d Feb 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = d6442e9

Please sign in to comment.