Skip to content

Commit 1412634

Browse files
committed
Kill more zombies
1 parent 1865ded commit 1412634

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

crates/ra_hir_def/src/expr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ pub enum Expr {
101101
Try {
102102
expr: ExprId,
103103
},
104-
TryBlock {
105-
body: ExprId,
106-
},
107104
Cast {
108105
expr: ExprId,
109106
type_ref: TypeRef,
@@ -239,7 +236,6 @@ impl Expr {
239236
f(*expr);
240237
}
241238
}
242-
Expr::TryBlock { body } => f(*body),
243239
Expr::Loop { body } => f(*body),
244240
Expr::While { condition, body } => {
245241
f(*condition);

crates/ra_hir_ty/src/infer/expr.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ impl<'a> InferenceContext<'a> {
7373
self.coerce_merge_branch(&then_ty, &else_ty)
7474
}
7575
Expr::Block { statements, tail } => self.infer_block(statements, *tail, expected),
76-
Expr::TryBlock { body } => {
77-
let _inner = self.infer_expr(*body, expected);
78-
// FIXME should be std::result::Result<{inner}, _>
79-
Ty::Unknown
80-
}
8176
Expr::Loop { body } => {
8277
self.infer_expr(*body, &Expectation::has_type(Ty::unit()));
8378
// FIXME handle break with value

0 commit comments

Comments
 (0)