Skip to content

Commit

Permalink
Update w/ comments
Browse files Browse the repository at this point in the history
Removes uses of ty() where a method is implemented on TypeFoldable, and also directly formats
a Term.
  • Loading branch information
JulianKnodt committed Jan 17, 2022
1 parent a783912 commit 109583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
if let ty::PredicateKind::Projection(projection_predicate) = predicate.kind().skip_binder() {
let assoc_ty = match projection_predicate.term {
ty::Term::Ty(ty) => ty,
ty::Term::Const(c) => c.ty,
ty::Term::Const(_c) => continue,
};
// walk the associated type and check for Self
if let Some(self_adt) = self_ty.ty_adt_def() {
Expand Down

0 comments on commit 109583e

Please sign in to comment.