Skip to content

Commit 8878708

Browse files
committed
this might be unqualified, but at least it's now quantified
1 parent dfa1af2 commit 8878708

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/future_not_send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
9191
cx.tcx.infer_ctxt().enter(|infcx| {
9292
for FulfillmentError { obligation, .. } in send_errors {
9393
infcx.maybe_note_obligation_cause_for_async_await(db, &obligation);
94-
if let Trait(trait_pred, _) = obligation.predicate.ignore_qualifiers().skip_binder().kind() {
94+
if let Trait(trait_pred, _) = obligation.predicate.ignore_quantifiers().skip_binder().kind() {
9595
db.note(&format!(
9696
"`{}` doesn't implement `{}`",
9797
trait_pred.self_ty(),

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
15591559
if let ty::Opaque(def_id, _) = ret_ty.kind {
15601560
// one of the associated types must be Self
15611561
for &(predicate, _span) in cx.tcx.predicates_of(def_id).predicates {
1562-
if let ty::PredicateKind::Projection(projection_predicate) = predicate.ignore_qualifiers().skip_binder().kind() {
1562+
if let ty::PredicateKind::Projection(projection_predicate) = predicate.ignore_quantifiers().skip_binder().kind() {
15631563
// walk the associated type and check for Self
15641564
if contains_self_ty(projection_predicate.ty) {
15651565
return;

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
12631263
ty::Tuple(ref substs) => substs.types().any(|ty| is_must_use_ty(cx, ty)),
12641264
ty::Opaque(ref def_id, _) => {
12651265
for (predicate, _) in cx.tcx.predicates_of(*def_id).predicates {
1266-
if let ty::PredicateKind::Trait(trait_predicate, _) = predicate.ignore_qualifiers().skip_binder().kind() {
1266+
if let ty::PredicateKind::Trait(trait_predicate, _) = predicate.ignore_quantifiers().skip_binder().kind() {
12671267
if must_use_attr(&cx.tcx.get_attrs(trait_predicate.trait_ref.def_id)).is_some() {
12681268
return true;
12691269
}

0 commit comments

Comments
 (0)