Skip to content

Commit 109583e

Browse files
committed
Update w/ comments
Removes uses of ty() where a method is implemented on TypeFoldable, and also directly formats a Term.
1 parent a783912 commit 109583e

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
21432143
if let ty::PredicateKind::Projection(projection_predicate) = predicate.kind().skip_binder() {
21442144
let assoc_ty = match projection_predicate.term {
21452145
ty::Term::Ty(ty) => ty,
2146-
ty::Term::Const(c) => c.ty,
2146+
ty::Term::Const(_c) => continue,
21472147
};
21482148
// walk the associated type and check for Self
21492149
if let Some(self_adt) = self_ty.ty_adt_def() {

0 commit comments

Comments
 (0)