Rollup merge of #104156 - oli-obk:autoderef, r=estebank
Cleanups in autoderef impl Just something I noticed. Turns out the `overloaded_span` is not actually used separately from the main span, so I merged them.
This commit is contained in:
commit
a709cc1f32
7 changed files with 8 additions and 35 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