rustup to rustc 1.15.0-dev (3b248a184 2016-12-05)
This commit is contained in:
@@ -67,7 +67,7 @@ impl LintPass for AssignOps {
|
||||
}
|
||||
|
||||
impl LateLintPass for AssignOps {
|
||||
fn check_expr(&mut self, cx: &LateContext, expr: &hir::Expr) {
|
||||
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr) {
|
||||
match expr.node {
|
||||
hir::ExprAssignOp(op, ref lhs, ref rhs) => {
|
||||
span_lint_and_then(cx, ASSIGN_OPS, expr.span, "assign operation detected", |db| {
|
||||
|
||||
Reference in New Issue
Block a user