Add known problem for redundant_closure lint

Documenting https://github.com/rust-lang-nursery/rust-clippy/issues/1439 until it gets fixed.
This commit is contained in:
Wim 2018-07-21 18:05:02 +02:00 committed by GitHub
parent 1f65617372
commit 26eea10ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,11 @@
/// **Why is this bad?** Needlessly creating a closure adds code for no benefit
/// and gives the optimizer more work.
///
/// **Known problems:** None.
/// **Known problems:** If creating the closure inside the closure has a side-
/// effect then moving the closure creation out will change when that side-
/// effect runs.
/// See https://github.com/rust-lang-nursery/rust-clippy/issues/1439 for more
/// details.
///
/// **Example:**
/// ```rust