about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-25 19:51:14 +0200
committerGitHub <noreply@github.com>2023-10-25 19:51:14 +0200
commit585a1222649a5ed2b2eb1b328bee05f6a30cd11d (patch)
treedc5b45abddb178e85d87babd7d6310e29b389ca3 /compiler/rustc_codegen_llvm/src/errors.rs
parenta1ab16792b2c425abbdee84956f503aa97c07f43 (diff)
parent23341434bdfdecf882b886146e6a25a9a15f09d9 (diff)
downloadrust-585a1222649a5ed2b2eb1b328bee05f6a30cd11d.tar.gz
rust-585a1222649a5ed2b2eb1b328bee05f6a30cd11d.zip
Rollup merge of #117152 - compiler-errors:no-ret-coercion, r=chenyukang
Fix unwrap suggestion for async fn

Use `body_fn_sig` to get the expected return type of the function instead of `ret_coercion` in `FnCtxt`. This avoids accessing the `ret_coercion` when it's already mutably borrowed (e.g. when checking `return` expressions).

Fixes #117144

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