Skip to content

Commit bc2ce4c

Browse files
Merge #11570
11570: minor: Remove misleading comments r=lnicola a=ChayimFriedman2 They're not true anymore after #11375. Co-authored-by: Chayim Refael Friedman <[email protected]>
2 parents b86baa7 + 744f0ea commit bc2ce4c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/hir_ty/src/infer/expr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ impl<'a> InferenceContext<'a> {
8484
let ty = match &body[tgt_expr] {
8585
Expr::Missing => self.err_ty(),
8686
&Expr::If { condition, then_branch, else_branch } => {
87-
// if let is desugared to match, so this is always simple if
8887
self.infer_expr(
8988
condition,
9089
&Expectation::has_type(TyKind::Scalar(Scalar::Bool).intern(Interner)),
@@ -184,7 +183,6 @@ impl<'a> InferenceContext<'a> {
184183
coerce: CoerceMany::new(self.err_ty()),
185184
label: label.map(|label| self.body[label].name.clone()),
186185
});
187-
// while let is desugared to a match loop, so this is always simple while
188186
self.infer_expr(
189187
*condition,
190188
&Expectation::has_type(TyKind::Scalar(Scalar::Bool).intern(Interner)),

0 commit comments

Comments
 (0)