2017-02-07 21:05:30 +01:00
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:41:14
|
2017-05-11 13:15:10 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..vec.len() {
|
2018-01-29 05:18:11 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-11 13:15:10 +02:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::needless-range-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2017-07-10 15:29:29 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in &vec {
|
2018-05-29 10:56:58 +02:00
|
|
|
| ^^^^^^ ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:50:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..vec.len() {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in &vec {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-09-05 12:53:52 +02:00
|
|
|
error: the loop variable `j` is only used to index `STATIC`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:55:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for j in 0..4 {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in &STATIC {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-09-05 12:53:52 +02:00
|
|
|
error: the loop variable `j` is only used to index `CONST`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:59:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for j in 0..4 {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in &CONST {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^
|
2017-09-05 12:53:52 +02:00
|
|
|
|
|
|
|
error: the loop variable `i` is used to index `vec`
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:63:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..vec.len() {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-09-05 12:53:52 +02:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for (i, <item>) in vec.iter().enumerate() {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec2`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:71:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..vec.len() {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in vec2.iter().take(vec.len()) {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:75:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 5..vec.len() {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in vec.iter().skip(5) {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:79:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..MAX_LEN {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in vec.iter().take(MAX_LEN) {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:83:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 0..=MAX_LEN {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in vec.iter().take(MAX_LEN + 1) {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:87:14
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for i in 5..10 {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-10-30 21:25:34 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | for <item> in vec.iter().take(10).skip(5) {
|
2018-10-30 21:25:34 +01:00
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is only used to index `vec`.
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:91:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 5..=10 {
|
|
|
|
| ^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for <item> in vec.iter().take(10 + 1).skip(5) {
|
|
|
|
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is used to index `vec`
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:95:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 5..vec.len() {
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for (i, <item>) in vec.iter().enumerate().skip(5) {
|
|
|
|
| ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: the loop variable `i` is used to index `vec`
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:99:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 5..10 {
|
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using an iterator
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for (i, <item>) in vec.iter().enumerate().take(10).skip(5) {
|
|
|
|
| ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:103:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..0 {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::reverse-range-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (0..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:107:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..=0 {
|
|
|
|
| ^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (0...10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:111:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in MAX_LEN..0 {
|
|
|
|
| ^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (0..MAX_LEN).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:115:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 5..5 {
|
|
|
|
| ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:140:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..5 + 4 {
|
|
|
|
| ^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 4..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:144:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(3 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in ((3 - 1)..(5 + 2)).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:148:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(8 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:170:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter() {}
|
|
|
|
| ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:172:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter_mut() {}
|
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods`
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:175:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in out_vec.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:178:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in array.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&array`
|
2017-02-21 12:13:44 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:183:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in [1, 2, 3].iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:187:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in [0; 32].iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:192:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in ll.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:195:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vd.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:198:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bh.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:201:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in hm.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:204:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bt.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:207:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in hs.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:210:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bs.iter() {}
|
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:212:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter().next() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:219:5
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | vec.iter().cloned().map(|x| out.push(x)).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unused-collect` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-09-05 02:16:34 +02:00
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:363:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-memcpy` implied by `-D warnings`
|
2017-09-05 02:16:34 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:368:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[10..(src.len() + 10)].clone_from_slice(&src[..])`
|
2017-09-05 12:53:52 +02:00
|
|
|
|
2017-09-05 02:16:34 +02:00
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:373:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..])`
|
2017-09-05 12:53:52 +02:00
|
|
|
|
2017-09-05 02:16:34 +02:00
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:378:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 11..src.len() {
|
|
|
|
| ^^^^^^^^^^^^^ help: try replacing the loop by: `dst[11..src.len()].clone_from_slice(&src[(11 - 10)..(src.len() - 10)])`
|
2017-09-05 02:16:34 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:383:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..dst.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..dst.len()])`
|
2017-09-05 12:53:52 +02:00
|
|
|
|
2017-09-05 02:16:34 +02:00
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:396:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..256 {
|
|
|
|
| ^^^^^^^
|
2017-09-05 02:16:34 +02:00
|
|
|
help: try replacing the loop by
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in dst[10..256].clone_from_slice(&src[(10 - 5)..(256 - 5)])
|
|
|
|
LL | dst2[(10 + 500)..(256 + 500)].clone_from_slice(&src[10..256]) {
|
|
|
|
|
|
2017-09-05 02:16:34 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:408:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..LOOP_OFFSET {
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[(10 + LOOP_OFFSET)..(LOOP_OFFSET + LOOP_OFFSET)].clone_from_slice(&src[(10 - some_var)..(LOOP_OFFSET - some_var)])`
|
2017-09-05 02:16:34 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:421:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..src_vec.len() {
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst_vec[..src_vec.len()].clone_from_slice(&src_vec[..])`
|
2017-09-05 12:53:52 +02:00
|
|
|
|
2017-09-17 01:17:22 +02:00
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:450:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in from..from + src.len() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[0..(from + src.len() - from)])`
|
2018-10-16 06:12:59 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:454:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in from..from + 3 {
|
|
|
|
| ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[0..(from + 3 - from)])`
|
2018-10-16 06:12:59 +02:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/for_loop.rs:461:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
|
2017-09-17 01:17:22 +02:00
|
|
|
|
2019-01-02 07:42:04 +01:00
|
|
|
error: aborting due to 46 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|