You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let drop_location_span = drop_location_span(self.tcx,&closure_hir_id);
532
+
533
+
diagnostics_builder.span_label(drop_location_span,format!("in Rust 2018, `{}` would be dropped here, but in Rust 2021, only {} would be dropped here alongside the closure",
534
+
self.tcx.hir().name(*var_hir_id),
535
+
captured_names,
536
+
));
537
+
}
523
538
}
524
539
diagnostics_builder.note("for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html>");
525
540
let closure_body_span = self.tcx.hir().span(body_id.hir_id);
0 commit comments