Skip to content

Commit

Permalink
Auto merge of rust-lang#4059 - rustic-games:into_iter_on_array/doc-fi…
Browse files Browse the repository at this point in the history
…x, r=flip1995

Fix link in into_iter_on_array documentation

The non-inline variant wasn't being rendered correctly.

see: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
  • Loading branch information
bors committed May 3, 2019
2 parents 8b906f9 + ff244b6 commit 19316b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,9 @@ declare_clippy_lint! {
/// their content into an iterator. Auto-referencing resolves the `into_iter` call to its reference
/// instead, like `<&[T; N] as IntoIterator>::into_iter`, which just iterates over item references
/// like calling `iter` would. Furthermore, when the standard library actually
/// [implements the `into_iter` method][25725] which moves the content out of the array, the
/// original use of `into_iter` got inferred with the wrong type and the code will be broken.
/// [implements the `into_iter` method](https://github.com/rust-lang/rust/issues/25725) which moves
/// the content out of the array, the original use of `into_iter` got inferred with the wrong type
/// and the code will be broken.
///
/// **Known problems:** None
///
Expand All @@ -791,8 +792,6 @@ declare_clippy_lint! {
/// ```rust
/// let _ = [1, 2, 3].into_iter().map(|x| *x).collect::<Vec<u32>>();
/// ```
///
/// [25725]: https://github.com/rust-lang/rust/issues/25725
pub INTO_ITER_ON_ARRAY,
correctness,
"using `.into_iter()` on an array"
Expand Down

0 comments on commit 19316b4

Please sign in to comment.