File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -742,11 +742,11 @@ declare_clippy_lint! {
742
742
/// `iter_mut`.
743
743
///
744
744
/// **Why is this bad?** Arrays and `PathBuf` do not yet have an `into_iter` method which move out
745
- /// their content into an iterator. Calling `into_iter` instead just forwards to `iter` or
746
- /// `iter_mut` due to auto-referencing, of which only yield references. Furthermore, when the
747
- /// standard library actually [implements the `into_iter` method][25725] which moves the content out
748
- /// of the array, the original use of `into_iter` got inferred with the wrong type and the code will
749
- /// be broken.
745
+ /// their content into an iterator. Auto-referencing resolves the `into_iter` call to its reference
746
+ /// instead, like `<&[T; N] as IntoIterator>::into_iter`, which just iterates over item references
747
+ /// like calling `iter` would. Furthermore, when the standard library actually
748
+ /// [implements the `into_iter` method][25725] which moves the content out of the array, the
749
+ /// original use of `into_iter` got inferred with the wrong type and the code will be broken.
750
750
///
751
751
/// **Known problems:** None
752
752
///
You can’t perform that action at this time.
0 commit comments