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 @@ fn visit_pat(&mut self, p: &'tcx Pat<'tcx>) {
captures: HirIdMap::default(), captures: HirIdMap::default(),
}; };
v.visit_expr(expr); v.visit_expr(expr);
v.allow_closure.then(|| { v.allow_closure.then(|| v.captures)
let _ = &v;
v.captures
})
} }
/// Returns the method names and argument list of nested method call expressions that make up /// Returns the method names and argument list of nested method call expressions that make up