Remove overloaded_span argument from new
, where it is usually redundant with the main span
This commit is contained in:
parent
a7a40ddc79
commit
1d93b35855
6 changed files with 11 additions and 22 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue