Skip to content

Commit 4d931e6

Browse files
committed
Remove DynKind
1 parent 968569f commit 4d931e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn check_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, span: Span, msrv: Msrv)
8686
ty::FnPtr(..) => {
8787
return Err((span, "function pointers in const fn are unstable".into()));
8888
},
89-
ty::Dynamic(preds, _, _) => {
89+
ty::Dynamic(preds, _) => {
9090
for pred in *preds {
9191
match pred.skip_binder() {
9292
ty::ExistentialPredicate::AutoTrait(_) | ty::ExistentialPredicate::Projection(_) => {

clippy_utils/src/ty/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
349349
}
350350
false
351351
},
352-
ty::Dynamic(binder, _, _) => {
352+
ty::Dynamic(binder, _) => {
353353
for predicate in *binder {
354354
if let ty::ExistentialPredicate::Trait(ref trait_ref) = predicate.skip_binder()
355355
&& find_attr!(cx.tcx.get_all_attrs(trait_ref.def_id), AttributeKind::MustUse { .. })
@@ -673,7 +673,7 @@ pub fn ty_sig<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<ExprFnSig<'t
673673
cx.tcx.opt_parent(def_id),
674674
),
675675
ty::FnPtr(sig_tys, hdr) => Some(ExprFnSig::Sig(sig_tys.with(hdr), None)),
676-
ty::Dynamic(bounds, _, _) => {
676+
ty::Dynamic(bounds, _) => {
677677
let lang_items = cx.tcx.lang_items();
678678
match bounds.principal() {
679679
Some(bound)

0 commit comments

Comments
 (0)