diff options
| author | Dinu Blanovschi <git@dnbln.dev> | 2023-11-04 21:43:18 +0100 |
|---|---|---|
| committer | Dinu Blanovschi <git@dnbln.dev> | 2023-11-04 21:43:18 +0100 |
| commit | 67cc4b0cadf1882fe174254c1dd7bfaba91c12a5 (patch) | |
| tree | cc468bf3f33f7305c13a77cb83dff642f66ba4bf /tests/ui | |
| parent | 17c7d21650124f8c9ce8f2c0db9aa581ac20d09f (diff) | |
| download | rust-67cc4b0cadf1882fe174254c1dd7bfaba91c12a5.tar.gz rust-67cc4b0cadf1882fe174254c1dd7bfaba91c12a5.zip | |
fix clippy author and failing test
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/author/blocks.stdout | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/author/blocks.stdout b/tests/ui/author/blocks.stdout index eb3e5189c82..140300a1673 100644 --- a/tests/ui/author/blocks.stdout +++ b/tests/ui/author/blocks.stdout @@ -40,10 +40,10 @@ if let ExprKind::Block(block, None) = expr.kind { // report your lint here } -if let ExprKind::Closure(CaptureBy::Value, fn_decl, body_id, _, None) = expr.kind +if let ExprKind::Closure(CaptureBy::Value { .. }, fn_decl, body_id, _, None) = expr.kind && let FnRetTy::DefaultReturn(_) = fn_decl.output && expr1 = &cx.tcx.hir().body(body_id).value - && let ExprKind::Closure(CaptureBy::Value, fn_decl1, body_id1, _, Some(Movability::Static)) = expr1.kind + && let ExprKind::Closure(CaptureBy::Value { .. }, fn_decl1, body_id1, _, Some(Movability::Static)) = expr1.kind && let FnRetTy::DefaultReturn(_) = fn_decl1.output && expr2 = &cx.tcx.hir().body(body_id1).value && let ExprKind::Block(block, None) = expr2.kind |
