fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
7.5 KiB109 linesraw
1warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
2  --> $DIR/into-iter-on-arrays-lint.rs:9:11
3   |
4LL |     small.into_iter();
5   |           ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
6   |
7   = note: `#[warn(array_into_iter)]` on by default
8   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
10
11warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
12  --> $DIR/into-iter-on-arrays-lint.rs:12:12
13   |
14LL |     [1, 2].into_iter();
15   |            ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
16   |
17   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
19
20warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
21  --> $DIR/into-iter-on-arrays-lint.rs:15:9
22   |
23LL |     big.into_iter();
24   |         ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
25   |
26   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
28
29warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
30  --> $DIR/into-iter-on-arrays-lint.rs:18:15
31   |
32LL |     [0u8; 33].into_iter();
33   |               ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
34   |
35   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
36   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
37
38warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
39  --> $DIR/into-iter-on-arrays-lint.rs:22:21
40   |
41LL |     Box::new(small).into_iter();
42   |                     ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
43   |
44   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
45   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
46
47warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
48  --> $DIR/into-iter-on-arrays-lint.rs:25:22
49   |
50LL |     Box::new([1, 2]).into_iter();
51   |                      ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
52   |
53   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
54   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
55
56warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
57  --> $DIR/into-iter-on-arrays-lint.rs:28:19
58   |
59LL |     Box::new(big).into_iter();
60   |                   ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
61   |
62   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
63   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
64
65warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
66  --> $DIR/into-iter-on-arrays-lint.rs:31:25
67   |
68LL |     Box::new([0u8; 33]).into_iter();
69   |                         ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
70   |
71   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
73
74warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
75  --> $DIR/into-iter-on-arrays-lint.rs:35:31
76   |
77LL |     Box::new(Box::new(small)).into_iter();
78   |                               ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
79   |
80   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
81   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
82
83warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
84  --> $DIR/into-iter-on-arrays-lint.rs:38:32
85   |
86LL |     Box::new(Box::new([1, 2])).into_iter();
87   |                                ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
88   |
89   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
90   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
91
92warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
93  --> $DIR/into-iter-on-arrays-lint.rs:41:29
94   |
95LL |     Box::new(Box::new(big)).into_iter();
96   |                             ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
97   |
98   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
100
101warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
102  --> $DIR/into-iter-on-arrays-lint.rs:44:35
103   |
104LL |     Box::new(Box::new([0u8; 33])).into_iter();
105   |                                   ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
106   |
107   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
108   = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
109