Auto merge of #108312 - michaelwoerister:hash-set-not-hash-stable, r=eholk
Do not implement HashStable for HashSet (MCP 533) This PR removes all occurrences of `HashSet` in query results, replacing it either with `FxIndexSet` or with `UnordSet`, and then removes the `HashStable` implementation of `HashSet`. This is part of implementing [MCP 533](https://github.com/rust-lang/compiler-team/issues/533), that is, removing the `HashStable` implementations of all collection types with unstable iteration order. The changes are mostly mechanical. The only place where additional sorting is happening is in Miri's override implementation of the `exported_symbols` query.
This commit is contained in:
commit
5331d05334
@ -155,14 +155,10 @@ fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
let imports_string = if used_imports.len() == 1 {
|
let mut imports = used_imports.items().map(ToString::to_string).into_sorted_stable_ord(false);
|
||||||
used_imports.iter().next().unwrap().to_string()
|
let imports_string = if imports.len() == 1 {
|
||||||
|
imports.pop().unwrap()
|
||||||
} else {
|
} else {
|
||||||
let mut imports = used_imports
|
|
||||||
.iter()
|
|
||||||
.map(ToString::to_string)
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
imports.sort();
|
|
||||||
if braced_glob {
|
if braced_glob {
|
||||||
imports.join(", ")
|
imports.join(", ")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user