1
Fork 0

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

View file

@ -40,10 +40,7 @@ where
info!("fully_perform({:?})", self);
}
scrape_region_constraints(infcx, || {
let _ = &self;
(self.closure)(infcx)
})
scrape_region_constraints(infcx, || (self.closure)(infcx))
}
}

View file

@ -394,7 +394,6 @@ fn report_conflicting_impls(
// now because the struct_lint methods don't return back the DiagnosticBuilder
// that's passed in.
let decorate = |err: LintDiagnosticBuilder<'_>| {
let _ = &overlap;
let msg = format!(
"conflicting implementations of trait `{}`{}{}",
overlap.trait_desc,

View file

@ -105,7 +105,6 @@ impl ChildrenExt for Children {
// FIXME: should postpone string formatting until we decide to actually emit.
with_no_trimmed_paths(|| {
let _ = &overlap;
OverlapError {
with_impl: possible_sibling,
trait_desc: trait_ref.print_only_trait_path().to_string(),