about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-23 02:51:46 +0100
committerGitHub <noreply@github.com>2021-02-23 02:51:46 +0100
commit5d90e89c36468350b9636614b0f9dbf64a4aef80 (patch)
tree8cf0503de639110d321cfc9a71e998be99afda90 /compiler/rustc_codegen_llvm/src
parent8e51bd4315bad8456c6cabbfc338be97c17f3700 (diff)
parentfc6c19e2dcbb3039a380755699669d317a6a3fb2 (diff)
downloadrust-5d90e89c36468350b9636614b0f9dbf64a4aef80.tar.gz
rust-5d90e89c36468350b9636614b0f9dbf64a4aef80.zip
Rollup merge of #81769 - estebank:tail-expr-as-potential-return, r=lcnr
Suggest `return`ing tail expressions that match return type

Some newcomers are confused by the behavior of tail expressions,
interpreting that "leaving out the `;` makes it the return value".
To help them go in the right direction, suggest using `return` instead
when applicable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions