Merge #2340
2340: Fix test mark placement r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d0a9ed50da
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,6 @@ where
|
|||
None => self.collect_expr_opt(condition.expr()),
|
||||
// if let -- desugar to match
|
||||
Some(pat) => {
|
||||
tested_by!(infer_resolve_while_let);
|
||||
let pat = self.collect_pat(pat);
|
||||
let match_expr = self.collect_expr_opt(condition.expr());
|
||||
let placeholder_pat = self.missing_pat();
|
||||
|
@ -192,6 +191,7 @@ where
|
|||
None => self.collect_expr_opt(condition.expr()),
|
||||
// if let -- desugar to match
|
||||
Some(pat) => {
|
||||
tested_by!(infer_resolve_while_let);
|
||||
let pat = self.collect_pat(pat);
|
||||
let match_expr = self.collect_expr_opt(condition.expr());
|
||||
let placeholder_pat = self.missing_pat();
|
||||
|
|
|
@ -384,7 +384,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn infer_resolve_while_let() {
|
||||
fn while_let_desugaring() {
|
||||
covers!(infer_resolve_while_let);
|
||||
do_check_local_name(
|
||||
r#"
|
||||
|
|
Loading…
Reference in a new issue