summaryrefslogtreecommitdiffstats
path: root/src/test/ui-fulldeps/internal-lints/default_hash_types.stderr
blob: 3cb13082f2501bd9034fe1673bc356d5e3b90bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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