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