X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir_typeck%2Fsrc%2Fautoderef.rs;h=41b52a4c4a9fcb2901c2f26a1562e65faae1a7b3;hb=a673364c543986789cfbb844c925063519fb872a;hp=748237a7593a52f5dc7447542fdcedc1c36f0a02;hpb=1d93b358553f1942214e6800bb3fc68a521abe90;p=rust.git diff --git a/compiler/rustc_hir_typeck/src/autoderef.rs b/compiler/rustc_hir_typeck/src/autoderef.rs index 748237a7593..41b52a4c4a9 100644 --- a/compiler/rustc_hir_typeck/src/autoderef.rs +++ b/compiler/rustc_hir_typeck/src/autoderef.rs @@ -44,11 +44,7 @@ pub fn adjust_steps_as_infer_ok( |InferOk { value: method, obligations: o }| { obligations.extend(o); if let ty::Ref(region, _, mutbl) = *method.sig.output().kind() { - Some(OverloadedDeref { - region, - mutbl, - span: autoderef.overloaded_span(), - }) + Some(OverloadedDeref { region, mutbl, span: autoderef.span() }) } else { None }