]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/internal-lints/default_hash_types.stderr
rustdoc: remove unused CSS `#results > table`
[rust.git] / src / test / 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: the lint level is defined here
8   --> $DIR/default_hash_types.rs:4:9
9    |
10 LL | #![deny(rustc::default_hash_types)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
12    = note: a `use rustc_data_structures::fx::FxHashMap` may be necessary
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