]> git.lizzy.rs Git - rust.git/commit
Deterministic external crate suggestion.
authorDavid Wood <david@davidtw.co>
Wed, 3 Oct 2018 13:20:20 +0000 (15:20 +0200)
committerDavid Wood <david@davidtw.co>
Wed, 3 Oct 2018 13:20:20 +0000 (15:20 +0200)
commit5872d3eacd61113c8c241444b2d2403aaec2fbfd
treebfbc85b2a5627e6fa33adca42524e06d961ccbd3
parent9d408e0511aeb02ae46c692b2432886372f71c37
Deterministic external crate suggestion.

This commit ensures that the external crate suggestion is deterministic
by using a `BTreeMap` rather than a `FxHashMap`. This is particularly
useful as `std` and `core` will often contain the same items and
therefore the suggestion would previously suggest either for any given
error - in this case, the suggestion will always prefer `std` now.
src/librustc_resolve/error_reporting.rs