X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_trait_selection%2Fsrc%2Ftraits%2Fselect%2Fmod.rs;h=4f797b182c0b37940eae01ad6fdf1df1f84a4079;hb=91afd0263269c44d57fe127f4c20748b5747113b;hp=ab617d16cc4f743318f67bec34495de81f6a39a2;hpb=0247faed2980a858e04fa57f78d585c8b066948d;p=rust.git diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index ab617d16cc4..4f797b182c0 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1341,7 +1341,7 @@ fn match_projection_obligation_against_definition_bounds( ); } }; - let bounds = EarlyBinder(tcx.item_bounds(def_id)).subst(tcx, substs); + let bounds = tcx.bound_item_bounds(def_id).subst(tcx, substs); // The bounds returned by `item_bounds` may contain duplicates after // normalization, so try to deduplicate when possible to avoid