X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_mir_transform%2Fsrc%2Ffunction_item_references.rs;h=b708d780b70050d648557d04f34bf82a1338d60b;hb=aa7b5b32e3463fc21468073ca3a75e2c3617b179;hp=469566694a3ef6b366d807056f5ceca8192705ce;hpb=9b57a2f55a76fa1e3d000932e0a708adb587990c;p=rust.git diff --git a/compiler/rustc_mir_transform/src/function_item_references.rs b/compiler/rustc_mir_transform/src/function_item_references.rs index 469566694a3..b708d780b70 100644 --- a/compiler/rustc_mir_transform/src/function_item_references.rs +++ b/compiler/rustc_mir_transform/src/function_item_references.rs @@ -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> { - 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 {