From 4b087d0e695340960234f108d5c0a3f01f80166e Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 27 Oct 2020 23:45:04 +0800 Subject: [PATCH] Fix test. --- src/parser.rs | 1 + tests/operations.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 6ecf24c3..c5e90bf9 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -109,6 +109,7 @@ impl AST { } /// Get a mutable reference to the statements. + #[cfg(not(feature = "no_optimize"))] #[inline(always)] pub(crate) fn statements_mut(&mut self) -> &mut Vec { &mut self.0 diff --git a/tests/operations.rs b/tests/operations.rs index dae539f0..9ccef6b6 100644 --- a/tests/operations.rs +++ b/tests/operations.rs @@ -72,7 +72,7 @@ fn test_max_operations_functions() -> Result<(), Box> { fn inc(x) { x + 1 } let x = 0; - while x < 28 { + while x < 30 { print(x); x = inc(x); }