1
- error: impl for `HashMap` should be generarized over different hashers
1
+ error: impl for `HashMap` should be generalized over different hashers
2
2
--> $DIR/implicit_hasher.rs:11:35
3
3
|
4
4
11 | impl<K: Hash + Eq, V> Foo<i8> for HashMap<K, V> {
@@ -14,7 +14,7 @@ help: ...and use generic constructor
14
14
17 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
15
15
| ^^^^^^^^^^^^^^^^^^
16
16
17
- error: impl for `HashMap` should be generarized over different hashers
17
+ error: impl for `HashMap` should be generalized over different hashers
18
18
--> $DIR/implicit_hasher.rs:20:36
19
19
|
20
20
20 | impl<K: Hash + Eq, V> Foo<i8> for (HashMap<K, V>,) {
@@ -29,7 +29,7 @@ help: ...and use generic constructor
29
29
22 | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Default::default()),))
30
30
| ^^^^^^^^^^^^^^^^^^
31
31
32
- error: impl for `HashMap` should be generarized over different hashers
32
+ error: impl for `HashMap` should be generalized over different hashers
33
33
--> $DIR/implicit_hasher.rs:25:19
34
34
|
35
35
25 | impl Foo<i16> for HashMap<String, String> {
@@ -44,7 +44,7 @@ help: ...and use generic constructor
44
44
27 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
45
45
| ^^^^^^^^^^^^^^^^^^
46
46
47
- error: impl for `HashSet` should be generarized over different hashers
47
+ error: impl for `HashSet` should be generalized over different hashers
48
48
--> $DIR/implicit_hasher.rs:43:32
49
49
|
50
50
43 | impl<T: Hash + Eq> Foo<i8> for HashSet<T> {
@@ -59,7 +59,7 @@ help: ...and use generic constructor
59
59
45 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default()))
60
60
| ^^^^^^^^^^^^^^^^^^
61
61
62
- error: impl for `HashSet` should be generarized over different hashers
62
+ error: impl for `HashSet` should be generalized over different hashers
63
63
--> $DIR/implicit_hasher.rs:48:19
64
64
|
65
65
48 | impl Foo<i16> for HashSet<String> {
@@ -74,7 +74,7 @@ help: ...and use generic constructor
74
74
50 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default()))
75
75
| ^^^^^^^^^^^^^^^^^^
76
76
77
- error: parameter of type `HashMap` should be generarized over different hashers
77
+ error: parameter of type `HashMap` should be generalized over different hashers
78
78
--> $DIR/implicit_hasher.rs:65:23
79
79
|
80
80
65 | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
@@ -85,7 +85,7 @@ help: consider adding a type parameter
85
85
65 | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {
86
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
87
88
- error: parameter of type `HashSet` should be generarized over different hashers
88
+ error: parameter of type `HashSet` should be generalized over different hashers
89
89
--> $DIR/implicit_hasher.rs:65:53
90
90
|
91
91
65 | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
@@ -96,7 +96,7 @@ help: consider adding a type parameter
96
96
65 | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {
97
97
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
98
99
- error: impl for `HashMap` should be generarized over different hashers
99
+ error: impl for `HashMap` should be generalized over different hashers
100
100
--> $DIR/implicit_hasher.rs:70:43
101
101
|
102
102
70 | impl<K: Hash + Eq, V> Foo<u8> for HashMap<K, V> {
@@ -114,7 +114,7 @@ help: ...and use generic constructor
114
114
72 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default()))
115
115
| ^^^^^^^^^^^^^^^^^^
116
116
117
- error: parameter of type `HashMap` should be generarized over different hashers
117
+ error: parameter of type `HashMap` should be generalized over different hashers
118
118
--> $DIR/implicit_hasher.rs:78:33
119
119
|
120
120
78 | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
@@ -128,7 +128,7 @@ help: consider adding a type parameter
128
128
78 | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {
129
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
130
131
- error: parameter of type `HashSet` should be generarized over different hashers
131
+ error: parameter of type `HashSet` should be generalized over different hashers
132
132
--> $DIR/implicit_hasher.rs:78:63
133
133
|
134
134
78 | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {
0 commit comments