fix build error

This commit is contained in:
Jaeyong Sung 2022-03-10 15:53:53 +09:00
parent 69161c6327
commit 52d35dca6a
No known key found for this signature in database
GPG Key ID: 2B86898CCB2A5486

View File

@ -502,7 +502,7 @@ impl<'tcx> SideEffectVisit<'tcx> {
if let ExprKind::Path(QPath::TypeRelative(ty, segment)) = callee.kind;
if segment.ident == self.fn_ident;
if let TyKind::Path(QPath::Resolved(_, path)) = ty.kind;
if let Res::SelfTy(..) = path.res;
if let Res::SelfTy{ .. } = path.res;
then {
is_recursive = true;
}