2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:13:30
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&vec![1, 2, 3]).into_iter();
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::into-iter-on-ref` implied by `-D warnings`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:14:46
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = vec![1, 2, 3].into_boxed_slice().into_iter();
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
2018-10-20 20:03:38 +00:00
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:15:41
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = std::rc::Rc::from(&[X][..]).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:16:44
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = std::sync::Arc::from(&[X][..]).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `array`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:18:32
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&&&&&&&[1, 2, 3]).into_iter();
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
2018-10-20 20:03:38 +00:00
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `array`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:19:36
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&&&&mut &&&[1, 2, 3]).into_iter();
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
2018-10-20 20:03:38 +00:00
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `array`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:20:40
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut &mut &mut [1, 2, 3]).into_iter();
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
2018-10-20 20:03:38 +00:00
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Option`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:22:24
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&Some(4)).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `Option`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:23:28
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut Some(5)).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Result`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:24:32
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&Ok::<_, i32>(6)).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `Result`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:25:37
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut Err::<i32, _>(7)).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:26:34
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&Vec::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `Vec`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:27:38
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut Vec::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:28:44
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&BTreeMap::<i32, u64>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `BTreeMap`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:29:48
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut BTreeMap::<i32, u64>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `VecDeque`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:30:39
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&VecDeque::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `VecDeque`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:31:43
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut VecDeque::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `LinkedList`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:32:41
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&LinkedList::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `LinkedList`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:33:45
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut LinkedList::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashMap`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:34:43
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&HashMap::<i32, u64>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `HashMap`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:35:47
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&mut HashMap::<i32, u64>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter_mut`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeSet`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:37:39
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&BTreeSet::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BinaryHeap`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:38:41
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&BinaryHeap::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashSet`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:39:38
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&HashSet::<i32>::new()).into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Path`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:40:43
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = std::path::Path::new("12/34").into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `PathBuf`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:41:47
|
2018-10-20 20:03:38 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = std::path::PathBuf::from("12/34").into_iter();
|
2018-10-20 20:03:38 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
2020-09-11 14:52:25 +00:00
|
|
|
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `array`
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/into_iter_on_ref.rs:43:26
|
2020-05-25 16:22:01 +00:00
|
|
|
|
|
2023-04-20 15:19:36 +00:00
|
|
|
LL | let _ = (&[1, 2, 3]).into_iter().next();
|
2020-05-25 16:22:01 +00:00
|
|
|
| ^^^^^^^^^ help: call directly: `iter`
|
|
|
|
|
|
|
|
error: aborting due to 27 previous errors
|
2018-10-20 20:03:38 +00:00
|
|
|
|