Skip to content

Commit 977f57e

Browse files
authored
Rollup merge of rust-lang#82626 - lcnr:encode_with_shorthandb, r=estebank
update array missing `IntoIterator` msg fixes rust-lang#82602 r? ```@estebank``` do you know whether we can use the expr span in `rustc_on_unimplemented`? The label isn't too great rn
2 parents 16a5234 + e55f9d2 commit 977f57e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/iter/traits/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
8181
),
8282
on(
8383
_Self = "[]",
84-
label = "borrow the array with `&` or call `.iter()` on it to iterate over it",
85-
note = "arrays are not iterators, but slices like the following are: `&[1, 2, 3]`"
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"
8686
),
8787
on(
8888
_Self = "{integral}",

0 commit comments

Comments
 (0)