Remove Expr::FnPointer.

This commit is contained in:
Stephen Chung
2021-04-20 23:40:52 +08:00
parent ce384d8bb0
commit 815f7ba09e
5 changed files with 18 additions and 23 deletions

View File

@@ -407,6 +407,13 @@ impl Hash for Dynamic {
value.hash(state);
})
}
Union::FnPtr(f, _) if f.is_curried() => {
unimplemented!(
"{} with curried arguments cannot be hashed",
self.type_name()
)
}
Union::FnPtr(f, _) => f.fn_name().hash(state),
#[cfg(not(feature = "no_closure"))]
Union::Shared(cell, _) => {