]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/author/repeat.stdout
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / src / tools / clippy / tests / ui / author / repeat.stdout
1 if let ExprKind::Repeat(value, length) = expr.kind
2     && let ExprKind::Lit(ref lit) = value.kind
3     && let LitKind::Int(1, LitIntType::Unsigned(UintTy::U8)) = lit.node
4     && let ArrayLen::Body(anon_const) = length
5     && expr1 = &cx.tcx.hir().body(anon_const.body).value
6     && let ExprKind::Lit(ref lit1) = expr1.kind
7     && let LitKind::Int(5, LitIntType::Unsuffixed) = lit1.node
8 {
9     // report your lint here
10 }