]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/type_check/canonical.rs
Rollup merge of #104865 - pratushrai0309:bootstrap, r=jyn514
[rust.git] / compiler / rustc_borrowck / src / type_check / canonical.rs
index d0cf8622a4470e6c90f7bd54608203c913ec796a..1aad6738bba7a01b9081e14508b836bb324190d0 100644 (file)
@@ -88,11 +88,11 @@ pub(super) fn prove_trait_ref(
         category: ConstraintCategory<'tcx>,
     ) {
         self.prove_predicate(
-            ty::Binder::dummy(ty::PredicateKind::Trait(ty::TraitPredicate {
+            ty::Binder::dummy(ty::PredicateKind::Clause(ty::Clause::Trait(ty::TraitPredicate {
                 trait_ref,
                 constness: ty::BoundConstness::NotConst,
                 polarity: ty::ImplPolarity::Positive,
-            })),
+            }))),
             locations,
             category,
         );