From c32ace40a4102fbc5e7a5250879bdb8b5c8d22ca Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 22 Jan 2022 17:27:18 +0800 Subject: [PATCH] Fix builds. --- .github/workflows/build.yml | 6 +++--- src/packages/lang_core.rs | 4 ++++ tests/get_set.rs | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5242963f..03e69ede 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,9 +67,9 @@ jobs: strategy: matrix: include: - - {os: ubuntu-latest, flags: "--profile unix -Z unstable-options", experimental: false} - - {os: windows-latest, flags: "--profile windows -Z unstable-options", experimental: true} - - {os: macos-latest, flags: "--profile macos -Z unstable-options", experimental: false} + - {os: ubuntu-latest, flags: "--profile unix", experimental: false} + - {os: windows-latest, flags: "--profile windows", experimental: true} + - {os: macos-latest, flags: "--profile macos", experimental: false} steps: - name: Checkout uses: actions/checkout@v2 diff --git a/src/packages/lang_core.rs b/src/packages/lang_core.rs index 7e536337..d0319a98 100644 --- a/src/packages/lang_core.rs +++ b/src/packages/lang_core.rs @@ -11,6 +11,10 @@ def_package! { lib.standard = true; combine_with_exported_module!(lib, "core", core_functions); + + #[cfg(not(feature = "no_function"))] + #[cfg(not(feature = "no_index"))] + #[cfg(not(feature = "no_object"))] combine_with_exported_module!(lib, "reflection", reflection_functions); } } diff --git a/tests/get_set.rs b/tests/get_set.rs index 3a59ba61..ee8e55f5 100644 --- a/tests/get_set.rs +++ b/tests/get_set.rs @@ -269,7 +269,7 @@ fn test_get_set_collection() -> Result<(), Box> { .register_fn("len", |col: &mut MyBag| col.len() as INT) .register_get("len", |col: &mut MyBag| col.len() as INT) .register_fn("clear", |col: &mut MyBag| col.clear()) - .register_fn("contains", |col: &mut MyBag, item: i64| col.contains(&item)) + .register_fn("contains", |col: &mut MyBag, item: INT| col.contains(&item)) .register_fn("add", |col: &mut MyBag, item: MyItem| col.insert(item)) .register_fn("+=", |col: &mut MyBag, item: MyItem| col.insert(item)) .register_fn("remove", |col: &mut MyBag, item: MyItem| col.remove(&item))