False positive for what Clippy thinks are return statements, but which aren't. #13526
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
Here's the full warning:
The project that generated these warnings is hosted at https://github.com/TYTheBeast/WynnBuilderTools-Rekindled/
Lint Name
unneeded
return
statementReproducer
I tried this code:
I saw this happen:
I expected nothing to happen.
Version
rustc 1.83.0-nightly (06bb8364a 2024-10-01)
binary: rustc
commit-hash: 06bb8364aaffefb0ce67e5f5445e66ec99c1f66e
commit-date: 2024-10-01
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: