about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-14 06:39:44 +0000
committerbors <bors@rust-lang.org>2023-06-14 06:39:44 +0000
commitb9b453748d5ee0c0c5f53f52d749dff1a8cd38da (patch)
treeb63d8217fc3d2ab49e5f78f8d9bcfebd01775647 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent1b7fb403117ff52c51f172a1572fc3db636293c0 (diff)
parentd255e7a53fb62e77cdfa7ce1459fc5a06072e21a (diff)
downloadrust-b9b453748d5ee0c0c5f53f52d749dff1a8cd38da.tar.gz
rust-b9b453748d5ee0c0c5f53f52d749dff1a8cd38da.zip
Auto merge of #10945 - Centri3:no_effect, r=llogiq
[`no_effect`]: Suggest adding `return` if applicable

Closes #10941

Unfortunately doesn't catch anything complex as `no_effect` already wouldn't, but I'm fine with that (it catches `ControlFlow` at least :D)

changelog: [`no_effect`]: Suggest adding `return` if statement has same type as function's return type and is the last statement in a block
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions