commit | 9bf4af8b5d39cff5bc9db66e09803efe60c2d16c | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Jan 07 11:17:46 2017 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Jan 07 11:17:46 2017 -0800 |
tree | c5edb3fa709f6d56e77ad2464c76e3ddfbb33e0e | |
parent | 9618493b2ba0b296eb79715af007f19135bef5b2 [diff] [blame] |
Derive hash for AST types
diff --git a/src/constant.rs b/src/constant.rs index b2420c0..c7d0e32 100644 --- a/src/constant.rs +++ b/src/constant.rs
@@ -1,6 +1,6 @@ use super::*; -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum ConstExpr { /// A function call /// @@ -28,7 +28,7 @@ } #[cfg(not(feature = "full"))] -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq, Hash)] pub struct Other { _private: (), }