Skip to content

Commit a084d79

Browse files
committed
change item_bounds query to return EarlyBinder; remove bound_item_bounds query
1 parent 5dac275 commit a084d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ pub fn ty_sig<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<ExprFnSig<'t
648648
},
649649
ty::FnDef(id, subs) => Some(ExprFnSig::Sig(cx.tcx.bound_fn_sig(id).subst(cx.tcx, subs), Some(id))),
650650
ty::Alias(ty::Opaque, ty::AliasTy { def_id, .. }) => {
651-
sig_from_bounds(cx, ty, cx.tcx.bound_item_bounds(def_id).subst_identity(), cx.tcx.opt_parent(def_id))
651+
sig_from_bounds(cx, ty, cx.tcx.item_bounds(def_id).subst_identity(), cx.tcx.opt_parent(def_id))
652652
},
653653
ty::FnPtr(sig) => Some(ExprFnSig::Sig(sig, None)),
654654
ty::Dynamic(bounds, _, _) => {

0 commit comments

Comments
 (0)