Fix another strange suggestion span

This commit is contained in:
Michael Goulet 2023-06-22 21:32:39 +00:00
parent 3a3f4a2144
commit a74db1abb3
4 changed files with 4 additions and 4 deletions

View file

@ -1121,7 +1121,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
err.eager_subdiagnostic(
&self.infcx.tcx.sess.parse_sess.span_diagnostic,
CaptureReasonSuggest::FreshReborrow {
span: fn_call_span.shrink_to_lo(),
span: move_span.shrink_to_hi(),
});
}
if let Some(clone_trait) = tcx.lang_items().clone_trait()