1
Fork 0

Rustup to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*

This commit is contained in:
Oliver Schneider 2017-07-10 10:17:40 +02:00
parent fd7dda097b
commit a82cd77b2b
16 changed files with 57 additions and 59 deletions

View file

@ -158,9 +158,9 @@ fn check_cmp(cx: &LateContext, span: Span, left: &Expr, right: &Expr, op: &str)
}
}
match (&left.node, &right.node) {
(&ExprLit(ref lit), &ExprMethodCall(ref method, _, ref args)) |
(&ExprMethodCall(ref method, _, ref args), &ExprLit(ref lit)) => {
check_len_zero(cx, span, method.node, args, lit, op)
(&ExprLit(ref lit), &ExprMethodCall(ref method_path, _, ref args)) |
(&ExprMethodCall(ref method_path, _, ref args), &ExprLit(ref lit)) => {
check_len_zero(cx, span, method_path.name, args, lit, op)
},
_ => (),
}