about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-05-25 15:48:14 +0200
committerMara Bos <m-ou.se@m-ou.se>2021-05-25 15:48:14 +0200
commit8d954fa589bf4608d4aa56e56b223f0134b16955 (patch)
tree557faac497b25c3972194be3deb1a5bcbf2746ab
parentcdbe2888979bb8797b05f0d58a6f6e60753983d2 (diff)
downloadrust-8d954fa589bf4608d4aa56e56b223f0134b16955.tar.gz
rust-8d954fa589bf4608d4aa56e56b223f0134b16955.zip
Remove arrays/IntoIterator message from Iterator trait.
-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`"