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 5e344da217
commit f338900826
9 changed files with 18 additions and 30 deletions
-1
View File
@@ -964,7 +964,6 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) {
test_type: test::TestType::DocTest,
},
testfn: test::DynTestFn(Box::new(move || {
let _ = &config;
let report_unused_externs = |uext| {
unused_externs.lock().unwrap().push(uext);
};
+1 -4
View File
@@ -990,10 +990,7 @@ fn visit_pat(&mut self, p: &'tcx Pat<'tcx>) {
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