diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-02-09 19:38:40 -0600 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2021-02-10 11:58:20 +0100 |
| commit | 7e1c1c154166d9eaa4184eab166b540e17ff26f3 (patch) | |
| tree | 30ced549ac28136b1b5d69628dc838d084add0d4 | |
| parent | da65d8166fe50a817a49d542460986234e94dc6d (diff) | |
Fix qpath_res call
| -rw-r--r-- | clippy_lints/src/use_self.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/use_self.rs b/clippy_lints/src/use_self.rs index 3dfec190541..cdaa08be86b 100644 --- a/clippy_lints/src/use_self.rs +++ b/clippy_lints/src/use_self.rs @@ -1,4 +1,4 @@ -use crate::utils::{in_macro, meets_msrv, qpath_res, snippet_opt, span_lint_and_sugg}; +use crate::utils::{in_macro, meets_msrv, snippet_opt, span_lint_and_sugg}; use if_chain::if_chain; use rustc_errors::Applicability; @@ -300,7 +300,7 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf { } = fun { if expr_ty_matches(cx, expr, self_ty) { - let res = qpath_res(cx, qpath, fun.hir_id); + let res = cx.qpath_res(qpath, fun.hir_id); if let def::Res::Def(DefKind::Ctor(ctor_of, _), ..) = res { match ctor_of { |
