@@ -19,6 +19,7 @@ error: impl for `HashMap` should be generalized over different hashers
19
19
|
20
20
LL | impl<K: Hash + Eq, V> Foo<i8> for (HashMap<K, V>,) {
21
21
| ^^^^^^^^^^^^^
22
+ |
22
23
help: consider adding a type parameter
23
24
|
24
25
LL | 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
33
34
|
34
35
LL | impl Foo<i16> for HashMap<String, String> {
35
36
| ^^^^^^^^^^^^^^^^^^^^^^^
37
+ |
36
38
help: consider adding a type parameter
37
39
|
38
40
LL | 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
47
49
|
48
50
LL | impl<T: Hash + Eq> Foo<i8> for HashSet<T> {
49
51
| ^^^^^^^^^^
52
+ |
50
53
help: consider adding a type parameter
51
54
|
52
55
LL | 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
61
64
|
62
65
LL | impl Foo<i16> for HashSet<String> {
63
66
| ^^^^^^^^^^^^^^^
67
+ |
64
68
help: consider adding a type parameter
65
69
|
66
70
LL | 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
75
79
|
76
80
LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
77
81
| ^^^^^^^^^^^^^^^^^
82
+ |
78
83
help: consider adding a type parameter
79
84
|
80
85
LL | 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
85
90
|
86
91
LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
87
92
| ^^^^^^^^^^^^
93
+ |
88
94
help: consider adding a type parameter
89
95
|
90
96
LL | 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> {
98
104
...
99
105
LL | gen!(impl);
100
106
| ----------- in this macro invocation
107
+ |
101
108
help: consider adding a type parameter
102
109
|
103
110
LL | 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>)
115
122
...
116
123
LL | gen!(fn bar);
117
124
| ------------- in this macro invocation
125
+ |
118
126
help: consider adding a type parameter
119
127
|
120
128
LL | 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>)
128
136
...
129
137
LL | gen!(fn bar);
130
138
| ------------- in this macro invocation
139
+ |
131
140
help: consider adding a type parameter
132
141
|
133
142
LL | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {}
0 commit comments