Skip to content

Commit ed3d487

Browse files
committed
Fix cargo crash
1 parent 0a49935 commit ed3d487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,7 @@ impl<'a, 'b, 'tcx> Visitor<'tcx> for ImplicitHasherConstructorVisitor<'a, 'b, 't
24602460
if_chain! {
24612461
if let ExprKind::Call(ref fun, ref args) = e.kind;
24622462
if let ExprKind::Path(QPath::TypeRelative(ref ty, ref method)) = fun.kind;
2463+
if let TyKind::Path(QPath::Resolved(None, _)) = ty.kind;
24632464
then {
24642465
if !same_tys(self.cx, self.target.ty(), self.body.expr_ty(e)) {
24652466
return;

0 commit comments

Comments
 (0)