diff options
| author | Alex Macleod <alex@macleod.io> | 2025-04-28 17:12:16 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2025-05-04 15:26:37 +0000 |
| commit | b768fbe4bccbfd4c4ecbd4726805facb6769eb4f (patch) | |
| tree | b0a1e7ef5ea2bcbd78cc17c70e76a3e7b36867ee /tests/ui/author/loop.stdout | |
| parent | ea13461967fb97098c5a9f1566e8826dd32f5495 (diff) | |
| download | rust-b768fbe4bccbfd4c4ecbd4726805facb6769eb4f.tar.gz rust-b768fbe4bccbfd4c4ecbd4726805facb6769eb4f.zip | |
Replace str path utils with new `PathLookup` type
Diffstat (limited to 'tests/ui/author/loop.stdout')
| -rw-r--r-- | tests/ui/author/loop.stdout | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/ui/author/loop.stdout b/tests/ui/author/loop.stdout index c94eb171f52..79794cec926 100644 --- a/tests/ui/author/loop.stdout +++ b/tests/ui/author/loop.stdout @@ -14,8 +14,6 @@ if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, .. }) = higher::Fo && block.stmts.len() == 1 && let StmtKind::Let(local) = block.stmts[0].kind && let Some(init) = local.init - && let ExprKind::Path(ref qpath1) = init.kind - && match_qpath(qpath1, &["y"]) && let PatKind::Binding(BindingMode::NONE, _, name1, None) = local.pat.kind && name1.as_str() == "z" && block.expr.is_none() @@ -64,8 +62,6 @@ if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, .. }) = higher::Fo // report your lint here } if let Some(higher::While { condition: condition, body: body }) = higher::While::hir(expr) - && let ExprKind::Path(ref qpath) = condition.kind - && match_qpath(qpath, &["a"]) && let ExprKind::Block(block, None) = body.kind && block.stmts.len() == 1 && let StmtKind::Semi(e) = block.stmts[0].kind @@ -77,10 +73,8 @@ if let Some(higher::While { condition: condition, body: body }) = higher::While: } if let Some(higher::WhileLet { let_pat: let_pat, let_expr: let_expr, if_then: if_then }) = higher::WhileLet::hir(expr) && let PatKind::Expr(lit_expr) = let_pat.kind - && let PatExprKind::Lit{ref lit, negated } = lit_expr.kind + && let PatExprKind::Lit { ref lit, negated } = lit_expr.kind && let LitKind::Bool(true) = lit.node - && let ExprKind::Path(ref qpath) = let_expr.kind - && match_qpath(qpath, &["a"]) && let ExprKind::Block(block, None) = if_then.kind && block.stmts.len() == 1 && let StmtKind::Semi(e) = block.stmts[0].kind |
