]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/select/mod.rs
Add bound_explicit_item_bounds and bound_item_bounds
[rust.git] / compiler / rustc_trait_selection / src / traits / select / mod.rs
index ab617d16cc4f743318f67bec34495de81f6a39a2..4f797b182c0b37940eae01ad6fdf1df1f84a4079 100644 (file)
@@ -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