Remove overloaded_span argument from new, where it is usually redundant with the main span

This commit is contained in:
Oli Scherer
2022-11-08 15:49:29 +00:00
parent a7a40ddc79
commit 1d93b35855
6 changed files with 11 additions and 22 deletions

View File

@@ -714,7 +714,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
obligation.cause.body_id,
span,
base_ty,
span,
);
if let Some(steps) = autoderef.find_map(|(ty, steps)| {
// Re-add the `&`