]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/default_hash_types.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui-fulldeps / internal-lints / default_hash_types.stderr
1 error: prefer `FxHashMap` over `HashMap`, it has better performance
2   --> $DIR/default_hash_types.rs:16:41
3    |
4 LL |     let _map: HashMap<String, String> = HashMap::default();
5    |                                         ^^^^^^^
6    |
7    = note: a `use rustc_data_structures::fx::FxHashMap` may be necessary
8 note: the lint level is defined here
9   --> $DIR/default_hash_types.rs:4:9
10    |
11 LL | #![deny(rustc::default_hash_types)]
12    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: prefer `FxHashMap` over `HashMap`, it has better performance
15   --> $DIR/default_hash_types.rs:16:15
16    |
17 LL |     let _map: HashMap<String, String> = HashMap::default();
18    |               ^^^^^^^^^^^^^^^^^^^^^^^
19    |
20    = note: a `use rustc_data_structures::fx::FxHashMap` may be necessary
21
22 error: prefer `FxHashSet` over `HashSet`, it has better performance
23   --> $DIR/default_hash_types.rs:19:33
24    |
25 LL |     let _set: HashSet<String> = HashSet::default();
26    |                                 ^^^^^^^
27    |
28    = note: a `use rustc_data_structures::fx::FxHashSet` may be necessary
29
30 error: prefer `FxHashSet` over `HashSet`, it has better performance
31   --> $DIR/default_hash_types.rs:19:15
32    |
33 LL |     let _set: HashSet<String> = HashSet::default();
34    |               ^^^^^^^^^^^^^^^
35    |
36    = note: a `use rustc_data_structures::fx::FxHashSet` may be necessary
37
38 error: aborting due to 4 previous errors
39