]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/wfcheck.rs
introduce PredicateAtom
[rust.git] / src / librustc_typeck / check / wfcheck.rs
index dabae6cbc41377a3fdf75e55101086b8c8da6dd8..50d9a1ebd2c249d6671862e9af6a37cfc726e959 100644 (file)
@@ -429,7 +429,7 @@ fn check_type_defn<'tcx, F>(
                 fcx.register_predicate(traits::Obligation::new(
                     cause,
                     fcx.param_env,
-                    ty::PredicateKind::ConstEvaluatable(
+                    ty::PredicateAtom::ConstEvaluatable(
                         ty::WithOptConstParam::unknown(discr_def_id.to_def_id()),
                         discr_substs,
                     )