]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #67642 - Mark-Simulacrum:relax-bounds, r=Amanieu
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 13 Feb 2020 01:52:46 +0000 (02:52 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2020 01:52:46 +0000 (02:52 +0100)
commit2a201336ed2f253cd22561477764989050acb889
tree2b9ad0ad0d224ed682b09f1af3a3f825b6f26b5e
parent92d8e82f6b571cecb1809a9aa85f8947e84b648d
parent48859db151b839518bdd9d44a2387c0f6b65d141
Rollup merge of #67642 - Mark-Simulacrum:relax-bounds, r=Amanieu

Relax bounds on HashMap/HashSet

These APIs changed from the old bound listed to the new bound (possibly empty):

K: Hash + Eq -> K
* new
* with_capacity

K: Eq + Hash, S: BuildHasher -> K, S
* with_hasher
* with_capacity_and_hasher
* hasher

K: Eq + Hash + Debug -> K: Debug
S: BuildHasher -> S
HashMap as Debug

K: Eq + Hash -> K
S: BuildHasher + Default -> S: Default
HashMap as Default

Resolves #44777.
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs
src/test/ui/const-generics/array-impls/core-traits-no-impls-length-33.stderr