about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-20 11:29:37 +0530
committerGitHub <noreply@github.com>2022-07-20 11:29:37 +0530
commit97c9f16a45c0ebda9facf38180549f896a81cf32 (patch)
tree0306e1c0fdfbb53af615bbc8c40191fc85e8c6fe /compiler/rustc_codegen_llvm/src/builder.rs
parentf426146460c5446bb41ac0b677bbfe5b6ff502ba (diff)
parentb0a81904ce58cd226bc5015b2d9ef97671880fbd (diff)
downloadrust-97c9f16a45c0ebda9facf38180549f896a81cf32.tar.gz
rust-97c9f16a45c0ebda9facf38180549f896a81cf32.zip
Rollup merge of #98784 - compiler-errors:forgot-to-return-binding, r=estebank
Suggest returning local on "expected `ty`, found `()`" due to expr-less block

Putting this up for _initial_ review. Notably, this doesn't consider if the value has possibly been moved, or whether the type is `Copy`. It also provides a structured suggestion if there's one "preferred" binding that matches the type (i.e. one binding in the block or its parent), otherwise it just points them out if there's fewer than 4 of them.

Fixes #98177

r? `@estebank`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions