about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2021-12-23 10:02:05 +0100
committerlcnr <rust@lcnr.de>2021-12-23 11:17:03 +0100
commitd5cbae90f9e3f323f18d9234b3e55b98c52fed52 (patch)
tree06301f31716a0ac74d9d9e87f6c7854992e4373d /tests
parent879eccead7d022b538895a9b93a1237ddbefccbd (diff)
downloadrust-d5cbae90f9e3f323f18d9234b3e55b98c52fed52.tar.gz
rust-d5cbae90f9e3f323f18d9234b3e55b98c52fed52.zip
fix clippy
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/author/repeat.stdout3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/author/repeat.stdout b/tests/ui/author/repeat.stdout
index f16350e4b5e..471bbce4f41 100644
--- a/tests/ui/author/repeat.stdout
+++ b/tests/ui/author/repeat.stdout
@@ -2,7 +2,8 @@ if_chain! {
     if let ExprKind::Repeat(value, length) = expr.kind;
     if let ExprKind::Lit(ref lit) = value.kind;
     if let LitKind::Int(1, LitIntType::Unsigned(UintTy::U8)) = lit.node;
-    let expr1 = &cx.tcx.hir().body(length.body).value;
+    if let ArrayLen::Body(anon_const) = length;
+    let expr1 = &cx.tcx.hir().body(anon_const.body).value;
     if let ExprKind::Lit(ref lit1) = expr1.kind;
     if let LitKind::Int(5, LitIntType::Unsuffixed) = lit1.node;
     then {