diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-23 02:51:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 02:51:46 +0100 |
| commit | 5d90e89c36468350b9636614b0f9dbf64a4aef80 (patch) | |
| tree | 8cf0503de639110d321cfc9a71e998be99afda90 /compiler/rustc_codegen_llvm/src | |
| parent | 8e51bd4315bad8456c6cabbfc338be97c17f3700 (diff) | |
| parent | fc6c19e2dcbb3039a380755699669d317a6a3fb2 (diff) | |
| download | rust-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
