zombie_processes: false positive with returns inside closures #14677
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
The
zombie_processes
lint emits a warning for early returns inside closures that don't affect the lifetime of the child process itself.Lint Name
zombie_processes
Reproducer
I tried this code:
playground
I saw this happen:
I expected to see this happen:
No warnings; the "early return" referenced by the lint is not an early return from the function where
child
exists.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: