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); }