1
1
error: impl for `HashMap` should be generalized over different hashers
2
- --> $DIR/implicit_hasher.rs:11 :35
2
+ --> $DIR/implicit_hasher.rs:15 :35
3
3
|
4
4
LL | impl<K: Hash + Eq, V> Foo<i8> for HashMap<K, V> {
5
5
| ^^^^^^^^^^^^^
@@ -15,7 +15,7 @@ LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default:
15
15
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
16
17
17
error: impl for `HashMap` should be generalized over different hashers
18
- --> $DIR/implicit_hasher.rs:20 :36
18
+ --> $DIR/implicit_hasher.rs:24 :36
19
19
|
20
20
LL | impl<K: Hash + Eq, V> Foo<i8> for (HashMap<K, V>,) {
21
21
| ^^^^^^^^^^^^^
@@ -29,7 +29,7 @@ LL | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Defa
29
29
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
31
error: impl for `HashMap` should be generalized over different hashers
32
- --> $DIR/implicit_hasher.rs:25 :19
32
+ --> $DIR/implicit_hasher.rs:29 :19
33
33
|
34
34
LL | impl Foo<i16> for HashMap<String, String> {
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,7 +43,7 @@ LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default:
43
43
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
44
45
45
error: impl for `HashSet` should be generalized over different hashers
46
- --> $DIR/implicit_hasher.rs:42 :32
46
+ --> $DIR/implicit_hasher.rs:46 :32
47
47
|
48
48
LL | impl<T: Hash + Eq> Foo<i8> for HashSet<T> {
49
49
| ^^^^^^^^^^
@@ -57,7 +57,7 @@ LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default:
57
57
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
58
59
59
error: impl for `HashSet` should be generalized over different hashers
60
- --> $DIR/implicit_hasher.rs:47 :19
60
+ --> $DIR/implicit_hasher.rs:51 :19
61
61
|
62
62
LL | impl Foo<i16> for HashSet<String> {
63
63
| ^^^^^^^^^^^^^^^
@@ -71,7 +71,7 @@ LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default:
71
71
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
72
73
73
error: parameter of type `HashMap` should be generalized over different hashers
74
- --> $DIR/implicit_hasher.rs:64 :23
74
+ --> $DIR/implicit_hasher.rs:68 :23
75
75
|
76
76
LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
77
77
| ^^^^^^^^^^^^^^^^^
@@ -81,7 +81,7 @@ LL | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _s
81
81
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
82
82
83
83
error: parameter of type `HashSet` should be generalized over different hashers
84
- --> $DIR/implicit_hasher.rs:64 :53
84
+ --> $DIR/implicit_hasher.rs:68 :53
85
85
|
86
86
LL | pub fn foo(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
87
87
| ^^^^^^^^^^^^
@@ -91,7 +91,7 @@ LL | pub fn foo<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set:
91
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
92
92
93
93
error: impl for `HashMap` should be generalized over different hashers
94
- --> $DIR/implicit_hasher.rs:68 :43
94
+ --> $DIR/implicit_hasher.rs:72 :43
95
95
|
96
96
LL | impl<K: Hash + Eq, V> Foo<u8> for HashMap<K, V> {
97
97
| ^^^^^^^^^^^^^
@@ -108,7 +108,7 @@ LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10,
108
108
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
109
110
110
error: parameter of type `HashMap` should be generalized over different hashers
111
- --> $DIR/implicit_hasher.rs:76 :33
111
+ --> $DIR/implicit_hasher.rs:80 :33
112
112
|
113
113
LL | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
114
114
| ^^^^^^^^^^^^^^^^^
@@ -121,7 +121,7 @@ LL | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i
121
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
122
122
123
123
error: parameter of type `HashSet` should be generalized over different hashers
124
- --> $DIR/implicit_hasher.rs:76 :63
124
+ --> $DIR/implicit_hasher.rs:80 :63
125
125
|
126
126
LL | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>) {}
127
127
| ^^^^^^^^^^^^
0 commit comments