diff --git a/src/build/mod.rs b/src/build/mod.rs index 64b7b45..3e9f13e 100644 --- a/src/build/mod.rs +++ b/src/build/mod.rs @@ -486,7 +486,7 @@ impl<'a> FileBuilder<'a> { fn eval_stmt(&mut self, stmt: &Statement) -> Result, Box> { let child_scope = self.scope.clone(); match stmt { - &Statement::Assert(ref expr) => self.build_assert(&expr, &child_scope), + &Statement::Assert(ref expr) => self.eval_assert(&expr, &child_scope), &Statement::Let(ref def) => self.eval_let(def), &Statement::Expression(ref expr) => self.eval_expr(expr, &child_scope), // Only one output can be used per file. Right now we enforce this by @@ -1498,11 +1498,7 @@ impl<'a> FileBuilder<'a> { self.assert_collector.counter += 1; } - fn build_assert( - &mut self, - expr: &Expression, - scope: &Scope, - ) -> Result, Box> { + fn eval_assert(&mut self, expr: &Expression, scope: &Scope) -> Result, Box> { if !self.validate_mode { // we are not in validate_mode so build_asserts are noops. return Ok(Rc::new(Val::Empty));