From ee3a5e08e005c54cb839278c95920a147a356d2d Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 24 Jan 2020 17:08:05 +0000 Subject: Disable runtime type checks --- dhall/src/semantics/core/value.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'dhall/src/semantics/core/value.rs') 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 { Ok(self.as_internal().get_type()?.clone()) -- cgit v1.2.3