about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVlad-Shcherbina <vlad.shcherbina@gmail.com>2018-01-17 21:40:47 +0300
committerVlad Shcherbina <vlad.shcherbina@gmail.com>2018-12-22 13:44:35 +0300
commitd2c069de1e85cf6d236d040a5be4021092bfdb57 (patch)
tree125adc98f2490880dc5dc9d5c5efc8bdea40348b
parentd3c747c752ba6255848f29826bd8d46d4a075f18 (diff)
downloadrust-d2c069de1e85cf6d236d040a5be4021092bfdb57.tar.gz
rust-d2c069de1e85cf6d236d040a5be4021092bfdb57.zip
Document map_clone known problems #498
(cherry picked from commit ada0d2c54831a904a53ff4106e0ebb6a0f06a687)
-rw-r--r--clippy_lints/src/map_clone.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/map_clone.rs b/clippy_lints/src/map_clone.rs
index 8ca1fbb2759..d45fcc7e860 100644
--- a/clippy_lints/src/map_clone.rs
+++ b/clippy_lints/src/map_clone.rs
@@ -27,7 +27,9 @@ pub struct Pass;
 ///
 /// **Why is this bad?** Readability, this can be written more concisely
 ///
-/// **Known problems:** None.
+/// **Known problems:** Sometimes `.cloned()` requires stricter trait
+/// bound than `.map(|e| e.clone())` (which works because of the coercion).
+/// See [#498](https://github.com/rust-lang-nursery/rust-clippy/issues/498).
 ///
 /// **Example:**
 ///