fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: you seem to be trying to move all elements into a new `BinaryHeap` 2 --> $DIR/drain_collect.rs:7:5 3 | 4LL | b.drain().collect() 5 | ^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 6 | 7note: the lint level is defined here 8 --> $DIR/drain_collect.rs:1:9 9 | 10LL | #![deny(clippy::drain_collect)] 11 | ^^^^^^^^^^^^^^^^^^^^^ 12 13error: you seem to be trying to move all elements into a new `HashMap` 14 --> $DIR/drain_collect.rs:15:5 15 | 16LL | b.drain().collect() 17 | ^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 18 19error: you seem to be trying to move all elements into a new `HashSet` 20 --> $DIR/drain_collect.rs:23:5 21 | 22LL | b.drain().collect() 23 | ^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 24 25error: you seem to be trying to move all elements into a new `Vec` 26 --> $DIR/drain_collect.rs:31:5 27 | 28LL | b.drain(..).collect() 29 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 30 31error: you seem to be trying to move all elements into a new `Vec` 32 --> $DIR/drain_collect.rs:39:5 33 | 34LL | b.drain(..).collect() 35 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 36 37error: you seem to be trying to move all elements into a new `Vec` 38 --> $DIR/drain_collect.rs:43:5 39 | 40LL | b.drain(0..).collect() 41 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 42 43error: you seem to be trying to move all elements into a new `Vec` 44 --> $DIR/drain_collect.rs:47:5 45 | 46LL | b.drain(..b.len()).collect() 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 48 49error: you seem to be trying to move all elements into a new `Vec` 50 --> $DIR/drain_collect.rs:51:5 51 | 52LL | b.drain(0..b.len()).collect() 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 54 55error: you seem to be trying to move all elements into a new `Vec` 56 --> $DIR/drain_collect.rs:56:5 57 | 58LL | b.drain(..).collect() 59 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(&mut b)` 60 61error: you seem to be trying to move all elements into a new `String` 62 --> $DIR/drain_collect.rs:64:5 63 | 64LL | b.drain(..).collect() 65 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(b)` 66 67error: aborting due to 10 previous errors 68