mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Revert "Merge #4233"
This reverts commita5f2b16366
, reversing changes made toc96b2180c1
.
This commit is contained in:
parent
a984587c47
commit
fd030f9450
9 changed files with 63 additions and 30 deletions
|
@ -73,6 +73,11 @@ impl<'a> InferenceContext<'a> {
|
|||
self.coerce_merge_branch(&then_ty, &else_ty)
|
||||
}
|
||||
Expr::Block { statements, tail } => self.infer_block(statements, *tail, expected),
|
||||
Expr::TryBlock { body } => {
|
||||
let _inner = self.infer_expr(*body, expected);
|
||||
// FIXME should be std::result::Result<{inner}, _>
|
||||
Ty::Unknown
|
||||
}
|
||||
Expr::Loop { body } => {
|
||||
self.infer_expr(*body, &Expectation::has_type(Ty::unit()));
|
||||
// FIXME handle break with value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue