Skip to content

Commit

Permalink
Rollup merge of #85670 - m-ou-se:array-intoiter-1, r=scottmcm
Browse files Browse the repository at this point in the history
Remove arrays/IntoIterator message from Iterator trait.

Arrays implement IntoIterator since 1.53.

cc #84513
  • Loading branch information
Dylan-DPC authored May 26, 2021
2 parents 4b0014e + 8d954fa commit 12ab323
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
_Self = "std::string::String",
label = "`{Self}` is not an iterator; try calling `.chars()` or `.bytes()`"
),
on(
_Self = "[]",
label = "arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`",
note = "see <https://github.com/rust-lang/rust/pull/65819> for more details"
),
on(
_Self = "{integral}",
note = "if you want to iterate between `start` until a value `end`, use the exclusive range \
Expand Down

0 comments on commit 12ab323

Please sign in to comment.