| error: prefer `FxHashMap` over `HashMap`, it has better performance |
| --> $DIR/default_hash_types.rs:16:41 |
| | |
| LL | let _map: HashMap<String, String> = HashMap::default(); |
| | ^^^^^^^ |
| | |
| = note: a `use rustc_data_structures::fx::FxHashMap` may be necessary |
| note: the lint level is defined here |
| --> $DIR/default_hash_types.rs:4:9 |
| | |
| LL | #![deny(rustc::default_hash_types)] |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: prefer `FxHashMap` over `HashMap`, it has better performance |
| --> $DIR/default_hash_types.rs:16:15 |
| | |
| LL | let _map: HashMap<String, String> = HashMap::default(); |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = note: a `use rustc_data_structures::fx::FxHashMap` may be necessary |
| |
| error: prefer `FxHashSet` over `HashSet`, it has better performance |
| --> $DIR/default_hash_types.rs:19:33 |
| | |
| LL | let _set: HashSet<String> = HashSet::default(); |
| | ^^^^^^^ |
| | |
| = note: a `use rustc_data_structures::fx::FxHashSet` may be necessary |
| |
| error: prefer `FxHashSet` over `HashSet`, it has better performance |
| --> $DIR/default_hash_types.rs:19:15 |
| | |
| LL | let _set: HashSet<String> = HashSet::default(); |
| | ^^^^^^^^^^^^^^^ |
| | |
| = note: a `use rustc_data_structures::fx::FxHashSet` may be necessary |
| |
| error: aborting due to 4 previous errors |
| |