needless_return
does not lint on async
function
#7042
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
T-async-await
Type: Issues related to async/await
Clippy produces a false negative on a
needless_return
when there is an unneededreturn
statement in async function.This is happening on both stable and nightly rust
I tried this code:
I expected to have Clippy inform me about having an unneeded
return
, with this warning.Instead, this happened:
Meta
cargo clippy -V
:clippy 0.1.52 (07e0e2ec 2021-03-24)
rustc -Vv
:The text was updated successfully, but these errors were encountered: