fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
418 B10 linesraw
1if 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}