Auto merge of #4724 - pornel:sortpaths, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 23 Jan 2018 22:10:46 +0000 (22:10 +0000)
committerbors <bors@rust-lang.org>
Tue, 23 Jan 2018 22:10:46 +0000 (22:10 +0000)
Sort native library paths for deterministic builds

Fixes #3800 by using a `BTreeSet`, which guarantees a deterministic iteration order.

Since the order was previously arbitrary, a sorted order is just as good. The list is so small, that any performance difference between `BTreeSet` and `HashSet` is negligible.

1  2 
src/cargo/ops/cargo_rustc/compilation.rs