1
1
error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>`
2
- --> $DIR/box_collection.rs:16 :15
2
+ --> $DIR/box_collection.rs:21 :15
3
3
|
4
4
LL | fn test1(foo: Box<Vec<bool>>) {}
5
5
| ^^^^^^^^^^^^^^
@@ -8,63 +8,63 @@ LL | fn test1(foo: Box<Vec<bool>>) {}
8
8
= help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation
9
9
10
10
error: you seem to be trying to use `Box<String>`. Consider using just `String`
11
- --> $DIR/box_collection.rs:23 :15
11
+ --> $DIR/box_collection.rs:28 :15
12
12
|
13
13
LL | fn test3(foo: Box<String>) {}
14
14
| ^^^^^^^^^^^
15
15
|
16
16
= help: `String` is already on the heap, `Box<String>` makes an extra allocation
17
17
18
18
error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>`
19
- --> $DIR/box_collection.rs:25 :15
19
+ --> $DIR/box_collection.rs:30 :15
20
20
|
21
21
LL | fn test4(foo: Box<HashMap<String, String>>) {}
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
23
|
24
24
= help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation
25
25
26
26
error: you seem to be trying to use `Box<HashSet<..>>`. Consider using just `HashSet<..>`
27
- --> $DIR/box_collection.rs:27 :15
27
+ --> $DIR/box_collection.rs:32 :15
28
28
|
29
29
LL | fn test5(foo: Box<HashSet<i64>>) {}
30
30
| ^^^^^^^^^^^^^^^^^
31
31
|
32
32
= help: `HashSet<..>` is already on the heap, `Box<HashSet<..>>` makes an extra allocation
33
33
34
34
error: you seem to be trying to use `Box<VecDeque<..>>`. Consider using just `VecDeque<..>`
35
- --> $DIR/box_collection.rs:29 :15
35
+ --> $DIR/box_collection.rs:34 :15
36
36
|
37
37
LL | fn test6(foo: Box<VecDeque<i32>>) {}
38
38
| ^^^^^^^^^^^^^^^^^^
39
39
|
40
40
= help: `VecDeque<..>` is already on the heap, `Box<VecDeque<..>>` makes an extra allocation
41
41
42
42
error: you seem to be trying to use `Box<LinkedList<..>>`. Consider using just `LinkedList<..>`
43
- --> $DIR/box_collection.rs:31 :15
43
+ --> $DIR/box_collection.rs:36 :15
44
44
|
45
45
LL | fn test7(foo: Box<LinkedList<i16>>) {}
46
46
| ^^^^^^^^^^^^^^^^^^^^
47
47
|
48
48
= help: `LinkedList<..>` is already on the heap, `Box<LinkedList<..>>` makes an extra allocation
49
49
50
50
error: you seem to be trying to use `Box<BTreeMap<..>>`. Consider using just `BTreeMap<..>`
51
- --> $DIR/box_collection.rs:33 :15
51
+ --> $DIR/box_collection.rs:38 :15
52
52
|
53
53
LL | fn test8(foo: Box<BTreeMap<i8, String>>) {}
54
54
| ^^^^^^^^^^^^^^^^^^^^^^^^^
55
55
|
56
56
= help: `BTreeMap<..>` is already on the heap, `Box<BTreeMap<..>>` makes an extra allocation
57
57
58
58
error: you seem to be trying to use `Box<BTreeSet<..>>`. Consider using just `BTreeSet<..>`
59
- --> $DIR/box_collection.rs:35 :15
59
+ --> $DIR/box_collection.rs:40 :15
60
60
|
61
61
LL | fn test9(foo: Box<BTreeSet<u64>>) {}
62
62
| ^^^^^^^^^^^^^^^^^^
63
63
|
64
64
= help: `BTreeSet<..>` is already on the heap, `Box<BTreeSet<..>>` makes an extra allocation
65
65
66
66
error: you seem to be trying to use `Box<BinaryHeap<..>>`. Consider using just `BinaryHeap<..>`
67
- --> $DIR/box_collection.rs:37 :16
67
+ --> $DIR/box_collection.rs:42 :16
68
68
|
69
69
LL | fn test10(foo: Box<BinaryHeap<u32>>) {}
70
70
| ^^^^^^^^^^^^^^^^^^^^
0 commit comments