Rustup to rustc 1.25.0-nightly (a0dcecff9 2018-01-24)
This commit is contained in:
parent
383cc9e545
commit
5437050013
@ -296,7 +296,7 @@ impl EarlyLintPass for MiscEarly {
|
||||
}
|
||||
match expr.node {
|
||||
ExprKind::Call(ref paren, _) => if let ExprKind::Paren(ref closure) = paren.node {
|
||||
if let ExprKind::Closure(_, ref decl, ref block, _) = closure.node {
|
||||
if let ExprKind::Closure(_, _, ref decl, ref block, _) = closure.node {
|
||||
span_lint_and_then(
|
||||
cx,
|
||||
REDUNDANT_CLOSURE_CALL,
|
||||
@ -327,7 +327,7 @@ impl EarlyLintPass for MiscEarly {
|
||||
if_chain! {
|
||||
if let StmtKind::Local(ref local) = w[0].node;
|
||||
if let Option::Some(ref t) = local.init;
|
||||
if let ExprKind::Closure(_, _, _, _) = t.node;
|
||||
if let ExprKind::Closure(_, _, _, _, _) = t.node;
|
||||
if let PatKind::Ident(_, sp_ident, _) = local.pat.node;
|
||||
if let StmtKind::Semi(ref second) = w[1].node;
|
||||
if let ExprKind::Assign(_, ref call) = second.node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user