]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_transform/src/function_item_references.rs
Rollup merge of #105283 - compiler-errors:ty-var-in-hir-wfcheck, r=nagisa
[rust.git] / compiler / rustc_mir_transform / src / function_item_references.rs
index 469566694a3ef6b366d807056f5ceca8192705ce..b708d780b70050d648557d04f34bf82a1338d60b 100644 (file)
@@ -110,7 +110,7 @@ fn check_bound_args(
 
     /// If the given predicate is the trait `fmt::Pointer`, returns the bound parameter type.
     fn is_pointer_trait(&self, bound: &PredicateKind<'tcx>) -> Option<Ty<'tcx>> {
-        if let ty::PredicateKind::Trait(predicate) = bound {
+        if let ty::PredicateKind::Clause(ty::Clause::Trait(predicate)) = bound {
             if self.tcx.is_diagnostic_item(sym::Pointer, predicate.def_id()) {
                 Some(predicate.trait_ref.self_ty())
             } else {