remove some things that do not need to be

This commit is contained in:
Matthias Krüger 2024-04-07 17:59:11 +02:00
parent df7daa815f
commit f9ca213510
7 changed files with 10 additions and 18 deletions

View file

@ -960,7 +960,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
sm.span_to_diagnostic_string(span)
}
};
let mut spans: MultiSpan = spans.clone().into();
let mut spans: MultiSpan = spans.into();
// Point at all the `continue`s and explicit `break`s in the relevant loops.
for (desc, elements) in [
("`break` exits", &finder.found_breaks),