Fix fallout
This commit is contained in:
parent
5de367f793
commit
d9e69a70df
19 changed files with 42 additions and 42 deletions
|
@ -38,7 +38,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for OverflowCheckConditional {
|
|||
let Expr_::ExprPath(QPath::Resolved(_, ref path1)) = ident1.node,
|
||||
let Expr_::ExprPath(QPath::Resolved(_, ref path2)) = ident2.node,
|
||||
let Expr_::ExprPath(QPath::Resolved(_, ref path3)) = second.node,
|
||||
&path1.segments[0] == &path3.segments[0] || &path2.segments[0] == &path3.segments[0],
|
||||
path1.segments[0] == path3.segments[0] || path2.segments[0] == path3.segments[0],
|
||||
cx.tables.expr_ty(ident1).is_integral(),
|
||||
cx.tables.expr_ty(ident2).is_integral()
|
||||
], {
|
||||
|
@ -62,7 +62,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for OverflowCheckConditional {
|
|||
let Expr_::ExprPath(QPath::Resolved(_, ref path1)) = ident1.node,
|
||||
let Expr_::ExprPath(QPath::Resolved(_, ref path2)) = ident2.node,
|
||||
let Expr_::ExprPath(QPath::Resolved(_, ref path3)) = first.node,
|
||||
&path1.segments[0] == &path3.segments[0] || &path2.segments[0] == &path3.segments[0],
|
||||
path1.segments[0] == path3.segments[0] || path2.segments[0] == path3.segments[0],
|
||||
cx.tables.expr_ty(ident1).is_integral(),
|
||||
cx.tables.expr_ty(ident2).is_integral()
|
||||
], {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue