]> git.proxmox.com Git - cargo.git/commit
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)
commit231660af3e6902a85a940932d83401eacd9f1741
tree67237756cd9fe8dd13b322a734c191ca4cb6e99f
parente5f6718a8cc009c1a122bc962e7fe78a4d564bbb
parentc31ad2bc397e20ad5fe538f93d6cce00edad0c6e
Auto merge of #4724 - pornel:sortpaths, r=alexcrichton

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.
src/cargo/ops/cargo_rustc/compilation.rs