point out unblamed constraints from Copy/Sized bounds in region errors

This commit is contained in:
dianne 2024-12-20 21:14:16 -08:00
parent 2c5815b285
commit 1b2281a493
5 changed files with 31 additions and 1 deletions

View file

@ -554,6 +554,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
}
self.add_placeholder_from_predicate_note(&mut diag, &path);
self.add_sized_or_copy_bound_info(&mut diag, category, &path);
self.buffer_error(diag);
}