about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-05-26 13:32:09 +0200
committerGitHub <noreply@github.com>2021-05-26 13:32:09 +0200
commit12ab323d0ec860bb93c4f9da7a61ee0dde016f8c (patch)
tree6132be60f6571ca075a85fcbe74e8e7c3b3a4121
parent4b0014e3bb586a3aa73a2f5d2de2f1f5bef51778 (diff)
parent8d954fa589bf4608d4aa56e56b223f0134b16955 (diff)
downloadrust-12ab323d0ec860bb93c4f9da7a61ee0dde016f8c.tar.gz
rust-12ab323d0ec860bb93c4f9da7a61ee0dde016f8c.zip
Rollup merge of #85670 - m-ou-se:array-intoiter-1, r=scottmcm
Remove arrays/IntoIterator message from Iterator trait.

Arrays implement IntoIterator since 1.53.

cc https://github.com/rust-lang/rust/issues/84513
-rw-r--r--library/core/src/iter/traits/iterator.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index e6ed34d3f05..1eef0f9064c 100644
--- a/library/core/src/iter/traits/iterator.rs
+++ b/library/core/src/iter/traits/iterator.rs
@@ -80,11 +80,6 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
         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 \
               syntax `start..end` or the inclusive range syntax `start..=end`"