about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-05-19 22:12:43 +0000
committerGitHub <noreply@github.com>2025-05-19 22:12:43 +0000
commit66697e84b19c117b308eb1c02edcd6e6f299e30d (patch)
treeb38d56771794cab02dde6e51d2d5ff525613e829 /compiler/rustc_codegen_llvm/src
parentb87e90b28f474c64a753e65b81a973f7b1a15d52 (diff)
parent82f8b1ccd09e94a6f3cb880de0d4ca99fd7bb9aa (diff)
downloadrust-66697e84b19c117b308eb1c02edcd6e6f299e30d.tar.gz
rust-66697e84b19c117b308eb1c02edcd6e6f299e30d.zip
`needless_match`: do not pretend that `return` is not significant in an expression (#14757)
A `return` in an expression makes it divergent and cannot be removed
blindly. While this stripping might have been introduced as a way to
catch more cases, it was improperly used, and no tests exhibit a failure
when this special handling is removed.

changelog: [`needless_match`]: do not strip `return` as it might make
the `if let` or `match` divergent in some cases

Fixes rust-lang/rust-clippy#14754
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions