We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a783912 commit 109583eCopy full SHA for 109583e
clippy_lints/src/methods/mod.rs
@@ -2143,7 +2143,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
2143
if let ty::PredicateKind::Projection(projection_predicate) = predicate.kind().skip_binder() {
2144
let assoc_ty = match projection_predicate.term {
2145
ty::Term::Ty(ty) => ty,
2146
- ty::Term::Const(c) => c.ty,
+ ty::Term::Const(_c) => continue,
2147
};
2148
// walk the associated type and check for Self
2149
if let Some(self_adt) = self_ty.ty_adt_def() {
0 commit comments