error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:11:35 | 11 | impl Foo for HashMap { | ^^^^^^^^^^^^^ | = note: `-D implicit-hasher` implied by `-D warnings` help: consider adding a type parameter | 11 | impl Foo for HashMap { | help: ...and use generic constructor | 17 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:20:36 | 20 | impl Foo for (HashMap,) { | ^^^^^^^^^^^^^ | help: consider adding a type parameter | 20 | impl Foo for (HashMap,) { | help: ...and use generic constructor | 22 | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Default::default()),)) | error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:25:19 | 25 | impl Foo for HashMap { | ^^^^^^^^^^^^^^^^^^^^^^^ | help: consider adding a type parameter | 25 | impl Foo for HashMap { | help: ...and use generic constructor | 27 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | error: impl for `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:43:32 | 43 | impl Foo for HashSet { | ^^^^^^^^^^ | help: consider adding a type parameter | 43 | impl Foo for HashSet { | help: ...and use generic constructor | 45 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) | error: impl for `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:48:19 | 48 | impl Foo for HashSet { | ^^^^^^^^^^^^^^^ | help: consider adding a type parameter | 48 | impl Foo for HashSet { | help: ...and use generic constructor | 50 | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) | error: parameter of type `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:65:23 | 65 | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) { | ^^^^^^^^^^^^^^^^^ | help: consider adding a type parameter | 65 | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) { | error: parameter of type `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:65:53 | 65 | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) { | ^^^^^^^^^^^^ | help: consider adding a type parameter | 65 | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) { | error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:70:43 | 70 | impl Foo for HashMap { | ^^^^^^^^^^^^^ ... 83 | gen!(impl); | ----------- in this macro invocation | help: consider adding a type parameter | 70 | impl Foo for HashMap { | help: ...and use generic constructor | 72 | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | error: parameter of type `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:78:33 | 78 | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) { | ^^^^^^^^^^^^^^^^^ ... 84 | gen!(fn bar); | ------------- in this macro invocation | help: consider adding a type parameter | 78 | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) { | error: parameter of type `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:78:63 | 78 | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) { | ^^^^^^^^^^^^ ... 84 | gen!(fn bar); | ------------- in this macro invocation | help: consider adding a type parameter | 78 | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) { |