Remove Drop-caused migration-added captures

All of these were added due to insignificant Drop types being present.
This commit is contained in:
Mark Rousskov 2021-09-19 13:46:05 -04:00
parent ede86797bd
commit 1183371af1

View File

@ -990,10 +990,7 @@ pub fn can_move_expr_to_closure(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->
captures: HirIdMap::default(),
};
v.visit_expr(expr);
v.allow_closure.then(|| {
let _ = &v;
v.captures
})
v.allow_closure.then(|| v.captures)
}
/// Returns the method names and argument list of nested method call expressions that make up