about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-05-28 15:42:03 +0000
committerGitHub <noreply@github.com>2025-05-28 15:42:03 +0000
commit3a1159ed9f8d6939b15a028313daf93d0d83964f (patch)
treec3c989a142b58419c8241eb9502c6a6231f3c082 /compiler/rustc_codegen_gcc
parent291b8fd3beeb65beba848958412c6e3eb7eaa525 (diff)
parentc364717b15dc7db94ea1f986c2388726b4cc34c3 (diff)
downloadrust-3a1159ed9f8d6939b15a028313daf93d0d83964f.tar.gz
rust-3a1159ed9f8d6939b15a028313daf93d0d83964f.zip
`needless_return`: look inside `else if` parts as well (#14798)
`if` expressions don't necessarily contain a block in the `else` part in
the presence of an `else if`. The `else` part, if present, must be
handled as a regular expression, not necessarily as a block expression.

Found while applying Clippy to triagebot and looking at the result. This
also found an issue in Clippy itself.

changelog: [`needless_return`]: look inside `else if` parts as well
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions