@@ -19,6 +19,7 @@ error: impl for `HashMap` should be generalized over different hashers
1919   |
2020LL | impl<K: Hash + Eq, V> Foo<i8> for (HashMap<K, V>,) {
2121   |                                    ^^^^^^^^^^^^^
22+    |
2223help: consider adding a type parameter
2324   |
2425LL | impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<i8> for (HashMap<K, V, S>,) {
@@ -33,6 +34,7 @@ error: impl for `HashMap` should be generalized over different hashers
3334   |
3435LL | impl Foo<i16> for HashMap<String, String> {
3536   |                   ^^^^^^^^^^^^^^^^^^^^^^^
37+    |
3638help: consider adding a type parameter
3739   |
3840LL | impl<S: ::std::hash::BuildHasher + Default> Foo<i16> for HashMap<String, String, S> {
@@ -47,6 +49,7 @@ error: impl for `HashSet` should be generalized over different hashers
4749   |
4850LL | impl<T: Hash + Eq> Foo<i8> for HashSet<T> {
4951   |                                ^^^^^^^^^^
52+    |
5053help: consider adding a type parameter
5154   |
5255LL | impl<T: Hash + Eq, S: ::std::hash::BuildHasher + Default> Foo<i8> for HashSet<T, S> {
@@ -61,6 +64,7 @@ error: impl for `HashSet` should be generalized over different hashers
6164   |
6265LL | impl Foo<i16> for HashSet<String> {
6366   |                   ^^^^^^^^^^^^^^^
67+    |
6468help: consider adding a type parameter
6569   |
6670LL | impl<S: ::std::hash::BuildHasher + Default> Foo<i16> for HashSet<String, S> {
@@ -75,6 +79,7 @@ error: parameter of type `HashMap` should be generalized over different hashers
7579   |
7680LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
7781   |                       ^^^^^^^^^^^^^^^^^
82+    |
7883help: consider adding a type parameter
7984   |
8085LL | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {}
@@ -85,6 +90,7 @@ error: parameter of type `HashSet` should be generalized over different hashers
8590   |
8691LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
8792   |                                                     ^^^^^^^^^^^^
93+    |
8894help: consider adding a type parameter
8995   |
9096LL | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {}
@@ -98,6 +104,7 @@ LL |         impl<K: Hash + Eq, V> Foo<u8> for HashMap<K, V> {
98104...
99105LL | gen!(impl);
100106   | ----------- in this macro invocation
107+    |
101108help: consider adding a type parameter
102109   |
103110LL |         impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<u8> for HashMap<K, V, S> {
@@ -115,6 +122,7 @@ LL |         pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>)
115122...
116123LL | gen!(fn bar);
117124   | ------------- in this macro invocation
125+    |
118126help: consider adding a type parameter
119127   |
120128LL |         pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {}
@@ -128,6 +136,7 @@ LL |         pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>)
128136...
129137LL | gen!(fn bar);
130138   | ------------- in this macro invocation
139+    |
131140help: consider adding a type parameter
132141   |
133142LL |         pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {}
0 commit comments