Fix no_optimize build.

This commit is contained in:
Stephen Chung
2020-11-16 23:32:44 +08:00
parent 7ef3bd6b20
commit 999a87f86e
4 changed files with 10 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ use crate::dynamic::{map_std_type_name, Union, Variant};
use crate::fn_call::run_builtin_op_assignment;
use crate::fn_native::{CallableFunction, Callback, IteratorFn, OnVarCallback};
use crate::module::NamespaceRef;
use crate::optimize::OptimizationLevel;
use crate::packages::{Package, PackagesCollection, StandardPackage};
use crate::r#unsafe::unsafe_cast_var_name_to_lifetime;
use crate::scope::EntryType as ScopeEntryType;
@@ -23,8 +24,8 @@ use crate::stdlib::{
use crate::syntax::CustomSyntax;
use crate::utils::get_hasher;
use crate::{
calc_native_fn_hash, Dynamic, EvalAltResult, FnPtr, ImmutableString, Module, OptimizationLevel,
Position, Scope, Shared, StaticVec, NO_POS,
calc_native_fn_hash, Dynamic, EvalAltResult, FnPtr, ImmutableString, Module, Position, Scope,
Shared, StaticVec, NO_POS,
};
#[cfg(not(feature = "no_index"))]