update to the rust-PR that unblocks clippy

This commit is contained in:
Oliver Schneider
2016-12-07 13:13:40 +01:00
parent 4a05fbba3e
commit 778ce4dfd3
66 changed files with 217 additions and 217 deletions

View File

@@ -29,9 +29,9 @@ impl LintPass for OverflowCheckConditional {
}
}
impl LateLintPass for OverflowCheckConditional {
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for OverflowCheckConditional {
// a + b < a, a > a + b, a < a - b, a - b > a
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
if_let_chain! {[
let Expr_::ExprBinary(ref op, ref first, ref second) = expr.node,
let Expr_::ExprBinary(ref op2, ref ident1, ref ident2) = first.node,