]> git.lizzy.rs Git - rust.git/blob - tests/ui/fxhash.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / fxhash.stderr
1 error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
2   --> $DIR/fxhash.rs:16:24
3    |
4 LL | use std::collections::{HashMap, HashSet};
5    |                        ^^^^^^^ help: use: `FxHashMap`
6    |
7    = note: `-D clippy::default-hash-types` implied by `-D warnings`
8
9 error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
10   --> $DIR/fxhash.rs:16:33
11    |
12 LL | use std::collections::{HashMap, HashSet};
13    |                                 ^^^^^^^ help: use: `FxHashSet`
14
15 error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
16   --> $DIR/fxhash.rs:19:15
17    |
18 LL |     let _map: HashMap<String, String> = HashMap::default();
19    |               ^^^^^^^ help: use: `FxHashMap`
20
21 error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
22   --> $DIR/fxhash.rs:19:41
23    |
24 LL |     let _map: HashMap<String, String> = HashMap::default();
25    |                                         ^^^^^^^ help: use: `FxHashMap`
26
27 error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
28   --> $DIR/fxhash.rs:20:15
29    |
30 LL |     let _set: HashSet<String> = HashSet::default();
31    |               ^^^^^^^ help: use: `FxHashSet`
32
33 error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
34   --> $DIR/fxhash.rs:20:33
35    |
36 LL |     let _set: HashSet<String> = HashSet::default();
37    |                                 ^^^^^^^ help: use: `FxHashSet`
38
39 error: aborting due to 6 previous errors
40