From d0ca09883ee5dd6d3225bc94b8ba30455f0a32fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 6 Jun 2019 09:21:19 +0200 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/57428/ --- clippy_lints/src/utils/hir_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs index 702738b6696c..7e4f46d92ecd 100644 --- a/clippy_lints/src/utils/hir_utils.rs +++ b/clippy_lints/src/utils/hir_utils.rs @@ -237,7 +237,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> { && over(&left.bindings, &right.bindings, |l, r| self.eq_type_binding(l, r)) } else if left.parenthesized && right.parenthesized { over(left.inputs(), right.inputs(), |l, r| self.eq_ty(l, r)) - && both(&Some(&left.bindings[0].ty), &Some(&right.bindings[0].ty), |l, r| { + && both(&Some(&left.bindings[0].ty()), &Some(&right.bindings[0].ty()), |l, r| { self.eq_ty(l, r) }) } else { @@ -299,7 +299,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> { } fn eq_type_binding(&mut self, left: &TypeBinding, right: &TypeBinding) -> bool { - left.ident.name == right.ident.name && self.eq_ty(&left.ty, &right.ty) + left.ident.name == right.ident.name && self.eq_ty(&left.ty(), &right.ty()) } }