1
Fork 0

Look at move place's type when suggesting mutable reborrow

This commit is contained in:
Michael Goulet 2022-09-05 05:00:26 +00:00
parent a2cdcb3fea
commit 7e226e6d3f
5 changed files with 56 additions and 6 deletions

View file

@ -401,7 +401,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
};
if let Some(use_spans) = use_spans {
self.explain_captures(
&mut err, span, span, use_spans, move_place, None, "", "", "", false, true,
&mut err, span, span, use_spans, move_place, "", "", "", false, true,
);
}
err