Fix dogfood test failures.
This commit is contained in:
parent
6ef8b57e34
commit
4434bfac01
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user