]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_hir_analysis/src/constrained_generic_params.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / compiler / rustc_hir_analysis / src / constrained_generic_params.rs
index 213b89fc7843c150ebf94c6c9aa3478ca31f4ac9..b4057df7896f30fa331f932e1c838bf91a35527d 100644 (file)
@@ -187,7 +187,8 @@ pub fn setup_constraining_predicates<'tcx>(
         for j in i..predicates.len() {
             // Note that we don't have to care about binders here,
             // as the impl trait ref never contains any late-bound regions.
-            if let ty::PredicateKind::Projection(projection) = predicates[j].0.kind().skip_binder()
+            if let ty::PredicateKind::Clause(ty::Clause::Projection(projection)) =
+                predicates[j].0.kind().skip_binder()
             {
                 // Special case: watch out for some kind of sneaky attempt
                 // to project out an associated type defined by this very