1 error: impl for `HashMap` should be generalized over different hashers
2 --> $DIR/implicit_hasher.rs:11:35
4 11 | impl<K: Hash + Eq, V> Foo<i8> for HashMap<K, V> {
7 = note: `-D implicit-hasher` implied by `-D warnings`
8 help: consider adding a type parameter
10 11 | impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<i8> for HashMap<K, V, S> {
12 help: ...and use generic constructor
14 17 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
17 error: impl for `HashMap` should be generalized over different hashers
18 --> $DIR/implicit_hasher.rs:20:36
20 20 | impl<K: Hash + Eq, V> Foo<i8> for (HashMap<K, V>,) {
23 help: consider adding a type parameter
25 20 | impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<i8> for (HashMap<K, V, S>,) {
27 help: ...and use generic constructor
29 22 | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Default::default()),))
32 error: impl for `HashMap` should be generalized over different hashers
33 --> $DIR/implicit_hasher.rs:25:19
35 25 | impl Foo<i16> for HashMap<String, String> {
36 | ^^^^^^^^^^^^^^^^^^^^^^^
38 help: consider adding a type parameter
40 25 | impl<S: ::std::hash::BuildHasher + Default> Foo<i16> for HashMap<String, String, S> {
42 help: ...and use generic constructor
44 27 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
47 error: impl for `HashSet` should be generalized over different hashers
48 --> $DIR/implicit_hasher.rs:43:32
50 43 | impl<T: Hash + Eq> Foo<i8> for HashSet<T> {
53 help: consider adding a type parameter
55 43 | impl<T: Hash + Eq, S: ::std::hash::BuildHasher + Default> Foo<i8> for HashSet<T, S> {
57 help: ...and use generic constructor
59 45 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default()))
62 error: impl for `HashSet` should be generalized over different hashers
63 --> $DIR/implicit_hasher.rs:48:19
65 48 | impl Foo<i16> for HashSet<String> {
68 help: consider adding a type parameter
70 48 | impl<S: ::std::hash::BuildHasher + Default> Foo<i16> for HashSet<String, S> {
72 help: ...and use generic constructor
74 50 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default()))
77 error: parameter of type `HashMap` should be generalized over different hashers
78 --> $DIR/implicit_hasher.rs:65:23
80 65 | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
83 help: consider adding a type parameter
85 65 | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {
88 error: parameter of type `HashSet` should be generalized over different hashers
89 --> $DIR/implicit_hasher.rs:65:53
91 65 | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
94 help: consider adding a type parameter
96 65 | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {
99 error: impl for `HashMap` should be generalized over different hashers
100 --> $DIR/implicit_hasher.rs:70:43
102 70 | impl<K: Hash + Eq, V> Foo<u8> for HashMap<K, V> {
106 | ----------- in this macro invocation
108 help: consider adding a type parameter
110 70 | impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<u8> for HashMap<K, V, S> {
112 help: ...and use generic constructor
114 72 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
117 error: parameter of type `HashMap` should be generalized over different hashers
118 --> $DIR/implicit_hasher.rs:78:33
120 78 | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
124 | ------------- in this macro invocation
126 help: consider adding a type parameter
128 78 | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {
131 error: parameter of type `HashSet` should be generalized over different hashers
132 --> $DIR/implicit_hasher.rs:78:63
134 78 | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
138 | ------------- in this macro invocation
140 help: consider adding a type parameter
142 78 | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {