]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/method/mod.rs
introduce PredicateAtom
[rust.git] / src / librustc_typeck / check / method / mod.rs
index 64dce3e1738e38115fd37a66536d3acc37a24fdc..c9a4df0317abcd2eb9b95a12247da93e045d239f 100644 (file)
@@ -399,7 +399,7 @@ pub fn lookup_method_in_trait(
         obligations.push(traits::Obligation::new(
             cause,
             self.param_env,
-            ty::PredicateKind::WellFormed(method_ty.into()).to_predicate(tcx),
+            ty::PredicateAtom::WellFormed(method_ty.into()).to_predicate(tcx),
         ));
 
         let callee = MethodCallee { def_id, substs: trait_ref.substs, sig: fn_sig };