about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-05-23 10:36:57 +0200
committerGitHub <noreply@github.com>2024-05-23 10:36:57 +0200
commit425ed6a181e07abde8d6a722179a953639b34aaf (patch)
tree39306091a1ab573aacaa5ea0d7c349b305f10dee
parent39a653f632a4d5a2d3da54496b221e66923625ce (diff)
downloadrust-425ed6a181e07abde8d6a722179a953639b34aaf.tar.gz
rust-425ed6a181e07abde8d6a722179a953639b34aaf.zip
Update crates/hir-ty/src/infer/expr.rs
-rw-r--r--src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs b/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
index bccad751fc2..4c12786362f 100644
--- a/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
+++ b/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
@@ -933,6 +933,7 @@ impl InferenceContext<'_> {
         let prev_ret_coercion =
             mem::replace(&mut self.return_coercion, Some(CoerceMany::new(ret_ty.clone())));
 
+        // FIXME: We should handle async blocks like we handle closures
         let expected = &Expectation::has_type(ret_ty);
         let (_, inner_ty) = self.with_breakable_ctx(BreakableKind::Border, None, None, |this| {
             let ty = this.infer_block(tgt_expr, *id, statements, *tail, None, expected);