Skip to content

Commit 12ab323

Browse files
authored
Rollup merge of rust-lang#85670 - m-ou-se:array-intoiter-1, r=scottmcm
Remove arrays/IntoIterator message from Iterator trait. Arrays implement IntoIterator since 1.53. cc rust-lang#84513
2 parents 4b0014e + 8d954fa commit 12ab323

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

library/core/src/iter/traits/iterator.rs

-5
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
7979
_Self = "std::string::String",
8080
label = "`{Self}` is not an iterator; try calling `.chars()` or `.bytes()`"
8181
),
82-
on(
83-
_Self = "[]",
84-
label = "arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`",
85-
note = "see <https://github.com/rust-lang/rust/pull/65819> for more details"
86-
),
8782
on(
8883
_Self = "{integral}",
8984
note = "if you want to iterate between `start` until a value `end`, use the exclusive range \

0 commit comments

Comments
 (0)