@@ -90,7 +90,7 @@ pub fn contains_ty_adt_constructor_opaque<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'
90
90
return false ;
91
91
}
92
92
93
- for bound in cx. tcx . bound_explicit_item_bounds ( def_id) . transpose_iter ( ) {
93
+ for bound in cx. tcx . explicit_item_bounds ( def_id) . transpose_iter ( ) {
94
94
let ( predicate, _span) = bound. map_bound ( |b| * b) . subst_identity ( ) ;
95
95
match predicate. kind ( ) . skip_binder ( ) {
96
96
// For `impl Trait<U>`, it will register a predicate of `T: Trait<U>`, so we go through
@@ -268,7 +268,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
268
268
} ,
269
269
ty:: Tuple ( substs) => substs. iter ( ) . any ( |ty| is_must_use_ty ( cx, ty) ) ,
270
270
ty:: Alias ( ty:: Opaque , ty:: AliasTy { def_id, .. } ) => {
271
- for ( predicate, _) in cx. tcx . bound_explicit_item_bounds ( * def_id) . skip_binder ( ) {
271
+ for ( predicate, _) in cx. tcx . explicit_item_bounds ( def_id) . skip_binder ( ) {
272
272
if let ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( trait_predicate) ) = predicate. kind ( ) . skip_binder ( ) {
273
273
if cx. tcx . has_attr ( trait_predicate. trait_ref . def_id , sym:: must_use) {
274
274
return true ;
@@ -744,7 +744,7 @@ fn sig_for_projection<'tcx>(cx: &LateContext<'tcx>, ty: AliasTy<'tcx>) -> Option
744
744
745
745
for ( pred, _) in cx
746
746
. tcx
747
- . bound_explicit_item_bounds ( ty. def_id )
747
+ . explicit_item_bounds ( ty. def_id )
748
748
. subst_iter_copied ( cx. tcx , ty. substs )
749
749
{
750
750
match pred. kind ( ) . skip_binder ( ) {
0 commit comments