rustc 1.83.0-nightly
clippy wrongly report needless_return
#13479
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
When using
rustc 1.83.0-nightly
clippy wrongly reportneedless_return
. After changed to the stable version it became normal.Reproducer
I tried this code:
I expected to see this happen: Do not report
needless_return
because I even haven't used thereturn
keywords.Instead, this happened: It reported
needless_return
and suggested me to changerun().await;
torun().run().await;
. There is definately something wrong here.(Cannot provide the whole code and output because is a private project)
Version
rustc 1.83.0-nightly (7608018cb 2024-09-29)
binary: rustc
commit-hash: 7608018cb...
commit-date: 2024-09-29
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0
Additional Labels
No response
The text was updated successfully, but these errors were encountered: