Remove overloaded_span argument from new, where it is usually redundant with the main span
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user