]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/method/mod.rs
rename `Predicate` to `PredicateKind`, introduce alias
[rust.git] / src / librustc_typeck / check / method / mod.rs
index a254aecf07bab3248d08701dc126e67c9a224261..135e02d6b5fac6cadbbb9ae9a569457219911151 100644 (file)
@@ -401,7 +401,7 @@ pub fn lookup_method_in_trait(
         obligations.push(traits::Obligation::new(
             cause,
             self.param_env,
-            ty::Predicate::WellFormed(method_ty),
+            ty::PredicateKind::WellFormed(method_ty),
         ));
 
         let callee = MethodCallee { def_id, substs: trait_ref.substs, sig: fn_sig };