提交 9a9e2fe1 编写于 作者: T Takayuki Maeda

check if impl_self is `Some`

上级 0b271641
......@@ -1932,7 +1932,7 @@ fn is_self_ty(&self, ty: &Ty) -> bool {
if let Some(Res::SelfTyParam { .. } | Res::SelfTyAlias { .. }) = path_res {
return true;
}
path_res == self.impl_self
self.impl_self.is_some() && path_res == self.impl_self
}
_ => false,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册