about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorDinu Blanovschi <git@dnbln.dev>2023-11-04 21:43:18 +0100
committerDinu Blanovschi <git@dnbln.dev>2023-11-04 21:43:18 +0100
commit67cc4b0cadf1882fe174254c1dd7bfaba91c12a5 (patch)
treecc468bf3f33f7305c13a77cb83dff642f66ba4bf /tests/ui
parent17c7d21650124f8c9ce8f2c0db9aa581ac20d09f (diff)
downloadrust-67cc4b0cadf1882fe174254c1dd7bfaba91c12a5.tar.gz
rust-67cc4b0cadf1882fe174254c1dd7bfaba91c12a5.zip
fix clippy author and failing test
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/author/blocks.stdout4
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