Skip to content

Commit f193eff

Browse files
committed
fix missing subst in clippy utils
1 parent fc942ee commit f193eff

File tree

1 file changed

+2
-2
lines changed
  • src/tools/clippy/clippy_utils/src

1 file changed

+2
-2
lines changed

src/tools/clippy/clippy_utils/src/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ pub fn ty_sig<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<ExprFnSig<'t
647647
Some(ExprFnSig::Closure(decl, subs.as_closure().sig()))
648648
},
649649
ty::FnDef(id, subs) => Some(ExprFnSig::Sig(cx.tcx.bound_fn_sig(id).subst(cx.tcx, subs), Some(id))),
650-
ty::Alias(ty::Opaque, ty::AliasTy { def_id, .. }) => {
651-
sig_from_bounds(cx, ty, cx.tcx.item_bounds(def_id).subst_identity(), cx.tcx.opt_parent(def_id))
650+
ty::Alias(ty::Opaque, ty::AliasTy { def_id, substs, .. }) => {
651+
sig_from_bounds(cx, ty, cx.tcx.item_bounds(def_id).subst(cx.tcx, substs), 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)