diff options
author | Aleksey Kladov <[email protected]> | 2019-11-21 14:09:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-21 14:09:38 +0000 |
commit | a1346bba5c457d1aa0a35f44231bed8b494b7d60 (patch) | |
tree | df4a7fa3980ee68b6234019701c36711bf02b601 /crates/ra_hir_def/src/body/lower.rs | |
parent | 952405cb4180993af0f5c939d5276dbdf2a19152 (diff) |
Fix test mark placement
Diffstat (limited to 'crates/ra_hir_def/src/body/lower.rs')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 77f091288..d8e911aa5 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -154,7 +154,6 @@ where | |||
154 | None => self.collect_expr_opt(condition.expr()), | 154 | None => self.collect_expr_opt(condition.expr()), |
155 | // if let -- desugar to match | 155 | // if let -- desugar to match |
156 | Some(pat) => { | 156 | Some(pat) => { |
157 | tested_by!(infer_resolve_while_let); | ||
158 | let pat = self.collect_pat(pat); | 157 | let pat = self.collect_pat(pat); |
159 | let match_expr = self.collect_expr_opt(condition.expr()); | 158 | let match_expr = self.collect_expr_opt(condition.expr()); |
160 | let placeholder_pat = self.missing_pat(); | 159 | let placeholder_pat = self.missing_pat(); |
@@ -192,6 +191,7 @@ where | |||
192 | None => self.collect_expr_opt(condition.expr()), | 191 | None => self.collect_expr_opt(condition.expr()), |
193 | // if let -- desugar to match | 192 | // if let -- desugar to match |
194 | Some(pat) => { | 193 | Some(pat) => { |
194 | tested_by!(infer_resolve_while_let); | ||
195 | let pat = self.collect_pat(pat); | 195 | let pat = self.collect_pat(pat); |
196 | let match_expr = self.collect_expr_opt(condition.expr()); | 196 | let match_expr = self.collect_expr_opt(condition.expr()); |
197 | let placeholder_pat = self.missing_pat(); | 197 | let placeholder_pat = self.missing_pat(); |