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

@ -1708,8 +1708,7 @@ fn receiver_is_valid<'tcx>(
return true;
}
let mut autoderef =
Autoderef::new(infcx, wfcx.param_env, wfcx.body_id, span, receiver_ty, span);
let mut autoderef = Autoderef::new(infcx, wfcx.param_env, wfcx.body_id, span, receiver_ty);
// The `arbitrary_self_types` feature allows raw pointer receivers like `self: *const Self`.
if arbitrary_self_types_enabled {