]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/author/repeat.stdout
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[rust.git] / src / tools / clippy / tests / ui / author / repeat.stdout
1 if_chain! {
2     if let ExprKind::Repeat(value, length) = expr.kind;
3     if let ExprKind::Lit(ref lit) = value.kind;
4     if let LitKind::Int(1, LitIntType::Unsigned(UintTy::U8)) = lit.node;
5     if let ArrayLen::Body(anon_const) = length;
6     let expr1 = &cx.tcx.hir().body(anon_const.body).value;
7     if let ExprKind::Lit(ref lit1) = expr1.kind;
8     if let LitKind::Int(5, LitIntType::Unsuffixed) = lit1.node;
9     then {
10         // report your lint here
11     }
12 }