summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/box_collection.stderr
blob: 40b6f9be61d590dba15e2dfa3868870a7fce4a4c (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>`
  --> $DIR/box_collection.rs:21:15
   |
LL | fn test1(foo: Box<Vec<bool>>) {}
   |               ^^^^^^^^^^^^^^
   |
   = help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation
   = note: `-D clippy::box-collection` implied by `-D warnings`

error: you seem to be trying to use `Box<String>`. Consider using just `String`
  --> $DIR/box_collection.rs:28:15
   |
LL | fn test3(foo: Box<String>) {}
   |               ^^^^^^^^^^^
   |
   = help: `String` is already on the heap, `Box<String>` makes an extra allocation

error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>`
  --> $DIR/box_collection.rs:30:15
   |
LL | fn test4(foo: Box<HashMap<String, String>>) {}
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation

error: you seem to be trying to use `Box<HashSet<..>>`. Consider using just `HashSet<..>`
  --> $DIR/box_collection.rs:32:15
   |
LL | fn test5(foo: Box<HashSet<i64>>) {}
   |               ^^^^^^^^^^^^^^^^^
   |
   = help: `HashSet<..>` is already on the heap, `Box<HashSet<..>>` makes an extra allocation

error: you seem to be trying to use `Box<VecDeque<..>>`. Consider using just `VecDeque<..>`
  --> $DIR/box_collection.rs:34:15
   |
LL | fn test6(foo: Box<VecDeque<i32>>) {}
   |               ^^^^^^^^^^^^^^^^^^
   |
   = help: `VecDeque<..>` is already on the heap, `Box<VecDeque<..>>` makes an extra allocation

error: you seem to be trying to use `Box<LinkedList<..>>`. Consider using just `LinkedList<..>`
  --> $DIR/box_collection.rs:36:15
   |
LL | fn test7(foo: Box<LinkedList<i16>>) {}
   |               ^^^^^^^^^^^^^^^^^^^^
   |
   = help: `LinkedList<..>` is already on the heap, `Box<LinkedList<..>>` makes an extra allocation

error: you seem to be trying to use `Box<BTreeMap<..>>`. Consider using just `BTreeMap<..>`
  --> $DIR/box_collection.rs:38:15
   |
LL | fn test8(foo: Box<BTreeMap<i8, String>>) {}
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `BTreeMap<..>` is already on the heap, `Box<BTreeMap<..>>` makes an extra allocation

error: you seem to be trying to use `Box<BTreeSet<..>>`. Consider using just `BTreeSet<..>`
  --> $DIR/box_collection.rs:40:15
   |
LL | fn test9(foo: Box<BTreeSet<u64>>) {}
   |               ^^^^^^^^^^^^^^^^^^
   |
   = help: `BTreeSet<..>` is already on the heap, `Box<BTreeSet<..>>` makes an extra allocation

error: you seem to be trying to use `Box<BinaryHeap<..>>`. Consider using just `BinaryHeap<..>`
  --> $DIR/box_collection.rs:42:16
   |
LL | fn test10(foo: Box<BinaryHeap<u32>>) {}
   |                ^^^^^^^^^^^^^^^^^^^^
   |
   = help: `BinaryHeap<..>` is already on the heap, `Box<BinaryHeap<..>>` makes an extra allocation

error: aborting due to 9 previous errors