From 8d954fa589bf4608d4aa56e56b223f0134b16955 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 25 May 2021 15:48:14 +0200 Subject: [PATCH] Remove arrays/IntoIterator message from Iterator trait. --- library/core/src/iter/traits/iterator.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index e6ed34d3f052b..1eef0f9064c90 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -79,11 +79,6 @@ fn _assert_is_object_safe(_: &dyn Iterator) {} _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 for more details" - ), on( _Self = "{integral}", note = "if you want to iterate between `start` until a value `end`, use the exclusive range \