mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Remove Drop-caused migration-added captures
All of these were added due to insignificant Drop types being present.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user