1
Fork 0

Rustup to *1.10.0-nightly (9c6904ca1 2016-05-18)*

This commit is contained in:
mcarton 2016-05-19 23:14:34 +02:00
parent 973ae82d72
commit 2a5416d662
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8
17 changed files with 93 additions and 79 deletions

View file

@ -31,7 +31,7 @@ impl LateLintPass for OverflowCheckConditional {
let Expr_::ExprPath(_,ref path1) = ident1.node,
let Expr_::ExprPath(_, ref path2) = ident2.node,
let Expr_::ExprPath(_, ref path3) = second.node,
(&path1.segments[0]).identifier == (&path3.segments[0]).identifier || (&path2.segments[0]).identifier == (&path3.segments[0]).identifier,
&path1.segments[0] == &path3.segments[0] || &path2.segments[0] == &path3.segments[0],
cx.tcx.expr_ty(ident1).is_integral(),
cx.tcx.expr_ty(ident2).is_integral()
], {
@ -53,7 +53,7 @@ impl LateLintPass for OverflowCheckConditional {
let Expr_::ExprPath(_,ref path1) = ident1.node,
let Expr_::ExprPath(_, ref path2) = ident2.node,
let Expr_::ExprPath(_, ref path3) = first.node,
(&path1.segments[0]).identifier == (&path3.segments[0]).identifier || (&path2.segments[0]).identifier == (&path3.segments[0]).identifier,
&path1.segments[0] == &path3.segments[0] || &path2.segments[0] == &path3.segments[0],
cx.tcx.expr_ty(ident1).is_integral(),
cx.tcx.expr_ty(ident2).is_integral()
], {