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 @@ -749,11 +749,11 @@ declare_clippy_lint! {
749
749
/// `iter_mut`.
750
750
///
751
751
/// **Why is this bad?** Arrays and `PathBuf` do not yet have an `into_iter` method which move out
752
- /// their content into an iterator. Calling `into_iter` instead just forwards to `iter` or
753
- /// `iter_mut` due to auto-referencing, of which only yield references. Furthermore, when the
754
- /// standard library actually [implements the `into_iter` method][25725] which moves the content out
755
- /// of the array, the original use of `into_iter` got inferred with the wrong type and the code will
756
- /// be broken.
752
+ /// their content into an iterator. Auto-referencing resolves the `into_iter` call to its reference
753
+ /// instead, like `<&[T; N] as IntoIterator>::into_iter`, which just iterates over item references
754
+ /// like calling `iter` would. Furthermore, when the standard library actually
755
+ /// [implements the `into_iter` method][25725] which moves the content out of the array, the
756
+ /// original use of `into_iter` got inferred with the wrong type and the code will be broken.
757
757
///
758
758
/// **Known problems:** None
759
759
///
You can’t perform that action at this time.
0 commit comments