File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ impl<'a> InferenceContext<'a> {
84
84
let ty = match & body[ tgt_expr] {
85
85
Expr :: Missing => self . err_ty ( ) ,
86
86
& Expr :: If { condition, then_branch, else_branch } => {
87
- // if let is desugared to match, so this is always simple if
88
87
self . infer_expr (
89
88
condition,
90
89
& Expectation :: has_type ( TyKind :: Scalar ( Scalar :: Bool ) . intern ( Interner ) ) ,
@@ -184,7 +183,6 @@ impl<'a> InferenceContext<'a> {
184
183
coerce : CoerceMany :: new ( self . err_ty ( ) ) ,
185
184
label : label. map ( |label| self . body [ label] . name . clone ( ) ) ,
186
185
} ) ;
187
- // while let is desugared to a match loop, so this is always simple while
188
186
self . infer_expr (
189
187
* condition,
190
188
& Expectation :: has_type ( TyKind :: Scalar ( Scalar :: Bool ) . intern ( Interner ) ) ,
You can’t perform that action at this time.
0 commit comments