From b311688fee00292bb0563d72ac8c7e680aaf31ba Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 11 Sep 2020 22:56:19 +0800 Subject: [PATCH] Fix test. --- codegen/ui_tests/rhai_mod_unknown_type.stderr | 2 +- tests/packages.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/codegen/ui_tests/rhai_mod_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 392f90a9..87360967 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -15,7 +15,7 @@ help: consider importing one of these items | 11 | use core::fmt::Pointer; | -11 | use crate::mem::fmt::Pointer; +11 | use crate::new_vec::fmt::Pointer; | 11 | use std::fmt::Pointer; | diff --git a/tests/packages.rs b/tests/packages.rs index 961d4b3e..6e871496 100644 --- a/tests/packages.rs +++ b/tests/packages.rs @@ -29,6 +29,8 @@ fn test_packages() -> Result<(), Box> { Ok(()) } +#[cfg(not(feature = "no_function"))] +#[cfg(not(feature = "no_module"))] #[test] fn test_packages_with_script() -> Result<(), Box> { let mut engine = Engine::new();