]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/methods/mod.rs
rename `Predicate` to `PredicateKind`, introduce alias
[rust.git] / src / tools / clippy / clippy_lints / src / methods / mod.rs
index 626427c15ecf52b2e47c7c3f77ccada601afbc7b..79c21d9bc0a6424e16d10d0ddcf927db1e1e4158 100644 (file)
@@ -18,7 +18,7 @@
 use rustc_middle::hir::map::Map;
 use rustc_middle::lint::in_external_macro;
 use rustc_middle::ty::subst::GenericArgKind;
-use rustc_middle::ty::{self, Predicate, Ty};
+use rustc_middle::ty::{self, Ty};
 use rustc_session::{declare_lint_pass, declare_tool_lint};
 use rustc_span::source_map::Span;
 use rustc_span::symbol::{sym, SymbolStr};
@@ -1497,7 +1497,7 @@ fn check_impl_item(&mut self, cx: &LateContext<'a, 'tcx>, impl_item: &'tcx hir::
                 // one of the associated types must be Self
                 for predicate in cx.tcx.predicates_of(def_id).predicates {
                     match predicate {
-                        (Predicate::Projection(poly_projection_predicate), _) => {
+                        (ty::PredicateKind::Projection(poly_projection_predicate), _) => {
                             let binder = poly_projection_predicate.ty();
                             let associated_type = binder.skip_binder();