]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/astconv.rs
rename `Predicate` to `PredicateKind`, introduce alias
[rust.git] / src / librustc_typeck / astconv.rs
index 6529d784ad45293af55465bf511f16e42cb6015e..a697ae7cb877cfadf23dc6f3cb7d474670abc84a 100644 (file)
@@ -1597,7 +1597,7 @@ fn conv_object_ty_poly_trait_ref(
                     obligation.predicate
                 );
                 match obligation.predicate {
-                    ty::Predicate::Trait(pred, _) => {
+                    ty::PredicateKind::Trait(pred, _) => {
                         associated_types.entry(span).or_default().extend(
                             tcx.associated_items(pred.def_id())
                                 .in_definition_order()
@@ -1605,7 +1605,7 @@ fn conv_object_ty_poly_trait_ref(
                                 .map(|item| item.def_id),
                         );
                     }
-                    ty::Predicate::Projection(pred) => {
+                    ty::PredicateKind::Projection(pred) => {
                         // A `Self` within the original bound will be substituted with a
                         // `trait_object_dummy_self`, so check for that.
                         let references_self =