Skip to content

Commit e85b1dd

Browse files
authored
Remove "Known problems" section for clippy::redundant_closure (#15331)
Remove "Known problems" section for `clippy::redundant_closure` since it was fixed by [this PR](#4008) We can see this by running examples from [the issue](#1439), for ex. [this one](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=6562527b4c3f6dcebb3c43718341af98) changelog: none
2 parents 98205e6 + 55be3c2 commit e85b1dd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clippy_lints/src/eta_reduction.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ declare_clippy_lint! {
2929
/// Needlessly creating a closure adds code for no benefit
3030
/// and gives the optimizer more work.
3131
///
32-
/// ### Known problems
33-
/// If creating the closure inside the closure has a side-
34-
/// effect then moving the closure creation out will change when that side-
35-
/// effect runs.
36-
/// See [#1439](https://github.com/rust-lang/rust-clippy/issues/1439) for more details.
37-
///
3832
/// ### Example
3933
/// ```rust,ignore
4034
/// xs.map(|x| foo(x))

0 commit comments

Comments
 (0)