mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
43577d58f9
Fix async functions handling for `needless_pass_by_ref_mut` lint Fixes https://github.com/rust-lang/rust-clippy/issues/11179. The problem with async is that "internals" are actually inside a closure from the `ExprUseVisitor` point of view, meaning we need to actually run the check on the closures' body as well. changelog: none r? `@llogiq`