diff options
| author | bors <bors@rust-lang.org> | 2019-05-03 17:58:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-03 17:58:36 +0000 |
| commit | 19316b4cb5b115acde36f57bf8f702e8c58a8762 (patch) | |
| tree | 06e6b5da626e574972e7c443672aaffd1d869627 | |
| parent | 8b906f94f38ba07c88e4d19bcc210e655ea4690c (diff) | |
| parent | ff244b6c43163385a3c94a0a27ce7fefa1d1f4c4 (diff) | |
| download | rust-19316b4cb5b115acde36f57bf8f702e8c58a8762.tar.gz rust-19316b4cb5b115acde36f57bf8f702e8c58a8762.zip | |
Auto merge of #4059 - rustic-games:into_iter_on_array/doc-fix, 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
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 4f8d29a88d6..2cf73433b05 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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 /// @@ -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" |
