Rollup merge of #131277 - ismailarilik:handle-potential-query-instability-lint-for-clippy, r=xFrednet
Handle `clippy` cases of `rustc::potential_query_instability` lint This PR removes `#![allow(rustc::potential_query_instability)]` line from [`src/tools/clippy/clippy_lints/src/lib.rs`](https://github.com/rust-lang/rust/blob/master/src/tools/clippy/clippy_lints/src/lib.rs#L30) and converts `FxHash{Map,Set}` types into `FxIndex{Map,Set}` to suppress lint errors. A somewhat tracking issue: https://github.com/rust-lang/rust/issues/84447
This commit is contained in:
commit
d547f2c7eb
12 changed files with 34 additions and 35 deletions
|
@ -3,6 +3,7 @@ use std::hash::{BuildHasherDefault, Hasher};
|
|||
|
||||
pub type UnhashMap<K, V> = HashMap<K, V, BuildHasherDefault<Unhasher>>;
|
||||
pub type UnhashSet<V> = HashSet<V, BuildHasherDefault<Unhasher>>;
|
||||
pub type UnindexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<Unhasher>>;
|
||||
|
||||
/// This no-op hasher expects only a single `write_u64` call. It's intended for
|
||||
/// map keys that already have hash-like quality, like `Fingerprint`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue