提交 570590f7 编写于 作者: C Clar Charr

impl Hash for !

上级 5205ae8b
......@@ -603,6 +603,13 @@ fn hash<H: Hasher>(&self, state: &mut H) {
}
}
#[stable(feature = "never_hash", since = "1.29.0")]
impl Hash for ! {
fn hash<H: Hasher>(&self, _: &mut H) {
*self
}
}
macro_rules! impl_hash_tuple {
() => (
#[stable(feature = "rust1", since = "1.0.0")]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册