]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_infer/infer/combine.rs
introduce PredicateAtom
[rust.git] / src / librustc_infer / infer / combine.rs
index c63464e5baec9e3b1a71409ad0402cc1a710684e..5b4d91de3ca92afd3edb38cdb141fbd49338786a 100644 (file)
@@ -308,7 +308,7 @@ pub fn instantiate(
             self.obligations.push(Obligation::new(
                 self.trace.cause.clone(),
                 self.param_env,
-                ty::PredicateKind::WellFormed(b_ty.into()).to_predicate(self.infcx.tcx),
+                ty::PredicateAtom::WellFormed(b_ty.into()).to_predicate(self.infcx.tcx),
             ));
         }
 
@@ -400,9 +400,9 @@ pub fn add_const_equate_obligation(
         b: &'tcx ty::Const<'tcx>,
     ) {
         let predicate = if a_is_expected {
-            ty::PredicateKind::ConstEquate(a, b)
+            ty::PredicateAtom::ConstEquate(a, b)
         } else {
-            ty::PredicateKind::ConstEquate(b, a)
+            ty::PredicateAtom::ConstEquate(b, a)
         };
         self.obligations.push(Obligation::new(
             self.trace.cause.clone(),