We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f65617 commit 26eea10Copy full SHA for 26eea10
clippy_lints/src/eta_reduction.rs
@@ -15,7 +15,11 @@ pub struct EtaPass;
15
/// **Why is this bad?** Needlessly creating a closure adds code for no benefit
16
/// and gives the optimizer more work.
17
///
18
-/// **Known problems:** None.
+/// **Known problems:** If creating the closure inside the closure has a side-
19
+/// effect then moving the closure creation out will change when that side-
20
+/// effect runs.
21
+/// See https://github.com/rust-lang-nursery/rust-clippy/issues/1439 for more
22
+/// details.
23
24
/// **Example:**
25
/// ```rust
0 commit comments