We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e527ba commit 30ef177Copy full SHA for 30ef177
clippy_lints/src/utils/mod.rs
@@ -1449,8 +1449,8 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
1449
false
1450
},
1451
ty::Dynamic(binder, _) => {
1452
- for predicate in binder.skip_binder().iter() {
1453
- if let ty::ExistentialPredicate::Trait(ref trait_ref) = predicate {
+ for predicate in binder.iter() {
+ if let ty::ExistentialPredicate::Trait(ref trait_ref) = predicate.skip_binder() {
1454
if must_use_attr(&cx.tcx.get_attrs(trait_ref.def_id)).is_some() {
1455
return true;
1456
}
0 commit comments