Fix dogfood test failures.

This commit is contained in:
Mazdak Farrokhzad 2019-06-24 04:00:05 +02:00
parent 6ef8b57e34
commit 4434bfac01
2 changed files with 1 additions and 3 deletions

View File

@ -50,8 +50,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IdentityConversion {
};
if let ExprKind::Call(_, ref args) = e.node {
self.try_desugar_arm.push(args[0].hir_id);
} else {
return;
}
},

View File

@ -37,7 +37,7 @@ pub fn is_potentially_mutated<'a, 'tcx>(variable: &'tcx Path, expr: &'tcx Expr,
if let Res::Local(id) = variable.res {
mutated_variables(expr, cx).map_or(true, |mutated| mutated.contains(&id))
} else {
return true;
true
}
}