diff options
author | Nadrieril | 2020-01-24 17:08:05 +0000 |
---|---|---|
committer | Nadrieril | 2020-01-24 17:08:05 +0000 |
commit | ee3a5e08e005c54cb839278c95920a147a356d2d (patch) | |
tree | ef91177461c9a0d32c05c6fd27a94bc7022b27d8 /dhall | |
parent | 700ff482fbff8960bc0e792fec6fd538c5428d70 (diff) |
Disable runtime type checks
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/core/value.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/dhall/src/semantics/core/value.rs b/dhall/src/semantics/core/value.rs index 3e3bfe1..96bb99a 100644 --- a/dhall/src/semantics/core/value.rs +++ b/dhall/src/semantics/core/value.rs @@ -249,12 +249,13 @@ impl Value { /// In debug mode, panic if the provided type doesn't match the value's type. /// Otherwise does nothing. - pub(crate) fn check_type(&self, ty: &Value) { - debug_assert_eq!( - Some(ty), - self.get_type().ok().as_ref(), - "Internal type error" - ); + pub(crate) fn check_type(&self, _ty: &Value) { + // TODO: reenable + // debug_assert_eq!( + // Some(ty), + // self.get_type().ok().as_ref(), + // "Internal type error" + // ); } pub(crate) fn get_type(&self) -> Result<Value, TypeError> { Ok(self.as_internal().get_type()?.clone()) |