fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>` 2 --> $DIR/box_collection.rs:21:15 3 | 4LL | fn test1(foo: Box<Vec<bool>>) {} 5 | ^^^^^^^^^^^^^^ 6 | 7 = help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation 8 = note: `-D clippy::box-collection` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::box_collection)]` 10 11error: you seem to be trying to use `Box<String>`. Consider using just `String` 12 --> $DIR/box_collection.rs:29:15 13 | 14LL | fn test3(foo: Box<String>) {} 15 | ^^^^^^^^^^^ 16 | 17 = help: `String` is already on the heap, `Box<String>` makes an extra allocation 18 19error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>` 20 --> $DIR/box_collection.rs:32:15 21 | 22LL | fn test4(foo: Box<HashMap<String, String>>) {} 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation 26 27error: you seem to be trying to use `Box<HashSet<..>>`. Consider using just `HashSet<..>` 28 --> $DIR/box_collection.rs:35:15 29 | 30LL | fn test5(foo: Box<HashSet<i64>>) {} 31 | ^^^^^^^^^^^^^^^^^ 32 | 33 = help: `HashSet<..>` is already on the heap, `Box<HashSet<..>>` makes an extra allocation 34 35error: you seem to be trying to use `Box<VecDeque<..>>`. Consider using just `VecDeque<..>` 36 --> $DIR/box_collection.rs:38:15 37 | 38LL | fn test6(foo: Box<VecDeque<i32>>) {} 39 | ^^^^^^^^^^^^^^^^^^ 40 | 41 = help: `VecDeque<..>` is already on the heap, `Box<VecDeque<..>>` makes an extra allocation 42 43error: you seem to be trying to use `Box<LinkedList<..>>`. Consider using just `LinkedList<..>` 44 --> $DIR/box_collection.rs:41:15 45 | 46LL | fn test7(foo: Box<LinkedList<i16>>) {} 47 | ^^^^^^^^^^^^^^^^^^^^ 48 | 49 = help: `LinkedList<..>` is already on the heap, `Box<LinkedList<..>>` makes an extra allocation 50 51error: you seem to be trying to use `Box<BTreeMap<..>>`. Consider using just `BTreeMap<..>` 52 --> $DIR/box_collection.rs:44:15 53 | 54LL | fn test8(foo: Box<BTreeMap<i8, String>>) {} 55 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 56 | 57 = help: `BTreeMap<..>` is already on the heap, `Box<BTreeMap<..>>` makes an extra allocation 58 59error: you seem to be trying to use `Box<BTreeSet<..>>`. Consider using just `BTreeSet<..>` 60 --> $DIR/box_collection.rs:47:15 61 | 62LL | fn test9(foo: Box<BTreeSet<u64>>) {} 63 | ^^^^^^^^^^^^^^^^^^ 64 | 65 = help: `BTreeSet<..>` is already on the heap, `Box<BTreeSet<..>>` makes an extra allocation 66 67error: you seem to be trying to use `Box<BinaryHeap<..>>`. Consider using just `BinaryHeap<..>` 68 --> $DIR/box_collection.rs:50:16 69 | 70LL | fn test10(foo: Box<BinaryHeap<u32>>) {} 71 | ^^^^^^^^^^^^^^^^^^^^ 72 | 73 = help: `BinaryHeap<..>` is already on the heap, `Box<BinaryHeap<..>>` makes an extra allocation 74 75error: aborting due to 9 previous errors 76