From ae493918a217f87e3f8cfafb097c53e1e28b12c4 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 20 Oct 2021 15:34:21 +0800 Subject: [PATCH] Update test outputs. --- codegen/ui_tests/export_fn_bad_attr.stderr | 6 ++-- codegen/ui_tests/export_fn_bad_value.stderr | 6 ++-- codegen/ui_tests/export_fn_cfg.stderr | 6 ++-- codegen/ui_tests/export_fn_extra_value.stderr | 6 ++-- codegen/ui_tests/export_fn_junk_arg.stderr | 6 ++-- .../ui_tests/export_fn_missing_value.stderr | 6 ++-- codegen/ui_tests/export_fn_path_attr.stderr | 4 ++- .../ui_tests/export_fn_raw_noreturn.stderr | 6 ++-- codegen/ui_tests/export_fn_raw_return.stderr | 4 ++- codegen/ui_tests/export_mod_bad_attr.stderr | 6 ++-- codegen/ui_tests/export_mod_bad_value.stderr | 6 ++-- codegen/ui_tests/export_mod_cfg.stderr | 10 +++--- .../ui_tests/export_mod_extra_value.stderr | 6 ++-- codegen/ui_tests/export_mod_junk_arg.stderr | 6 ++-- .../ui_tests/export_mod_missing_value.stderr | 6 ++-- codegen/ui_tests/export_mod_path_attr.stderr | 4 ++- .../ui_tests/export_mod_raw_noreturn.stderr | 6 ++-- codegen/ui_tests/export_mod_raw_return.stderr | 4 ++- codegen/ui_tests/first_shared_ref.stderr | 4 ++- codegen/ui_tests/module_cfg_const.rs | 31 ------------------- codegen/ui_tests/module_cfg_const.stderr | 11 ------- codegen/ui_tests/module_cfg_fn.rs | 27 ---------------- codegen/ui_tests/module_cfg_fn.stderr | 11 ------- codegen/ui_tests/non_clonable.stderr | 4 ++- codegen/ui_tests/non_clonable_second.stderr | 4 ++- codegen/ui_tests/return_mut_ref.stderr | 4 ++- codegen/ui_tests/return_pointer.stderr | 4 ++- codegen/ui_tests/return_shared_ref.stderr | 4 ++- codegen/ui_tests/rhai_fn_bad_attr.stderr | 6 ++-- codegen/ui_tests/rhai_fn_bad_value.stderr | 6 ++-- codegen/ui_tests/rhai_fn_extra_value.stderr | 6 ++-- .../ui_tests/rhai_fn_getter_conflict.stderr | 4 ++- .../ui_tests/rhai_fn_getter_multiple.stderr | 4 ++- codegen/ui_tests/rhai_fn_getter_return.stderr | 4 ++- .../ui_tests/rhai_fn_getter_signature.stderr | 4 ++- .../ui_tests/rhai_fn_global_multiple.stderr | 6 ++-- .../rhai_fn_index_getter_multiple.stderr | 6 ++-- .../rhai_fn_index_getter_return.stderr | 4 ++- .../rhai_fn_index_getter_signature.stderr | 4 ++- .../rhai_fn_index_setter_multiple.stderr | 6 ++-- codegen/ui_tests/rhai_fn_junk_arg.stderr | 6 ++-- codegen/ui_tests/rhai_fn_missing_value.stderr | 6 ++-- .../rhai_fn_non_clonable_return.stderr | 12 +++++-- codegen/ui_tests/rhai_fn_path_attr.stderr | 4 ++- .../ui_tests/rhai_fn_rename_collision.stderr | 6 ++-- .../rhai_fn_rename_collision_oneattr.stderr | 4 ++- ...n_rename_collision_oneattr_multiple.stderr | 6 ++-- ...hai_fn_rename_collision_with_itself.stderr | 6 ++-- .../rhai_fn_rename_to_index_getter.stderr | 4 ++- .../rhai_fn_rename_to_index_setter.stderr | 4 ++- .../rhai_fn_rename_to_prop_getter.stderr | 4 ++- .../rhai_fn_rename_to_prop_setter.stderr | 4 ++- .../rhai_fn_setter_index_signature.stderr | 4 ++- .../ui_tests/rhai_fn_setter_multiple.stderr | 4 ++- codegen/ui_tests/rhai_fn_setter_return.stderr | 4 ++- .../ui_tests/rhai_fn_setter_signature.stderr | 4 ++- codegen/ui_tests/rhai_mod_bad_attr.stderr | 6 ++-- codegen/ui_tests/rhai_mod_bad_value.stderr | 6 ++-- .../ui_tests/rhai_mod_inner_cfg_false.stderr | 4 ++- codegen/ui_tests/rhai_mod_junk_arg.stderr | 6 ++-- .../ui_tests/rhai_mod_missing_value.stderr | 6 ++-- .../ui_tests/rhai_mod_name_collisions.stderr | 8 +++-- .../rhai_mod_non_clonable_return.stderr | 12 +++++-- codegen/ui_tests/rhai_mod_path_attr.stderr | 4 ++- codegen/ui_tests/rhai_mod_return_raw.stderr | 6 ++-- codegen/ui_tests/rhai_mod_unknown_type.stderr | 8 +++-- .../rhai_mod_unknown_type_return.stderr | 4 ++- codegen/ui_tests/second_shared_ref.stderr | 4 ++- 68 files changed, 240 insertions(+), 184 deletions(-) delete mode 100644 codegen/ui_tests/module_cfg_const.rs delete mode 100644 codegen/ui_tests/module_cfg_const.stderr delete mode 100644 codegen/ui_tests/module_cfg_fn.rs delete mode 100644 codegen/ui_tests/module_cfg_fn.stderr diff --git a/codegen/ui_tests/export_fn_bad_attr.stderr b/codegen/ui_tests/export_fn_bad_attr.stderr index 12dd2a82..c0a60d00 100644 --- a/codegen/ui_tests/export_fn_bad_attr.stderr +++ b/codegen/ui_tests/export_fn_bad_attr.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: unknown attribute 'unknown' - --> $DIR/export_fn_bad_attr.rs:9:13 + --> ui_tests/export_fn_bad_attr.rs:9:13 | 9 | #[export_fn(unknown = "thing")] | ^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_bad_attr.rs:19:8 + --> ui_tests/export_fn_bad_attr.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_bad_value.stderr b/codegen/ui_tests/export_fn_bad_value.stderr index 4695abb0..d251314f 100644 --- a/codegen/ui_tests/export_fn_bad_value.stderr +++ b/codegen/ui_tests/export_fn_bad_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting string literal - --> $DIR/export_fn_bad_value.rs:9:20 + --> ui_tests/export_fn_bad_value.rs:9:20 | 9 | #[export_fn(name = true)] | ^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_bad_value.rs:19:8 + --> ui_tests/export_fn_bad_value.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_cfg.stderr b/codegen/ui_tests/export_fn_cfg.stderr index 33c99193..1244f6d0 100644 --- a/codegen/ui_tests/export_fn_cfg.stderr +++ b/codegen/ui_tests/export_fn_cfg.stderr @@ -1,8 +1,10 @@ -error: cfg attributes not allowed on this item +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' +error: `cfg` attributes are not allowed for `export_fn` --> ui_tests/export_fn_cfg.rs:9:1 | 9 | #[cfg(not(feature = "foo"))] - | ^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/export_fn_cfg.rs:20:8 diff --git a/codegen/ui_tests/export_fn_extra_value.stderr b/codegen/ui_tests/export_fn_extra_value.stderr index 6ebc2763..037f5387 100644 --- a/codegen/ui_tests/export_fn_extra_value.stderr +++ b/codegen/ui_tests/export_fn_extra_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: extraneous value - --> $DIR/export_fn_extra_value.rs:9:26 + --> ui_tests/export_fn_extra_value.rs:9:26 | 9 | #[export_fn(return_raw = "yes")] | ^^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_extra_value.rs:19:8 + --> ui_tests/export_fn_extra_value.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_junk_arg.stderr b/codegen/ui_tests/export_fn_junk_arg.stderr index 04cf996b..d4385b6a 100644 --- a/codegen/ui_tests/export_fn_junk_arg.stderr +++ b/codegen/ui_tests/export_fn_junk_arg.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting identifier - --> $DIR/export_fn_junk_arg.rs:9:13 + --> ui_tests/export_fn_junk_arg.rs:9:13 | 9 | #[export_fn("wheeeee")] | ^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_junk_arg.rs:19:8 + --> ui_tests/export_fn_junk_arg.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_missing_value.stderr b/codegen/ui_tests/export_fn_missing_value.stderr index 978798e5..894c9c3b 100644 --- a/codegen/ui_tests/export_fn_missing_value.stderr +++ b/codegen/ui_tests/export_fn_missing_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: requires value - --> $DIR/export_fn_missing_value.rs:9:13 + --> ui_tests/export_fn_missing_value.rs:9:13 | 9 | #[export_fn(name)] | ^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_missing_value.rs:19:8 + --> ui_tests/export_fn_missing_value.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_path_attr.stderr b/codegen/ui_tests/export_fn_path_attr.stderr index a7862aeb..c9bc7f51 100644 --- a/codegen/ui_tests/export_fn_path_attr.stderr +++ b/codegen/ui_tests/export_fn_path_attr.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting attribute name --> ui_tests/export_fn_path_attr.rs:9:13 | 9 | #[export_fn(rhai::name = "thing")] - | ^^^^ + | ^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/export_fn_path_attr.rs:19:8 diff --git a/codegen/ui_tests/export_fn_raw_noreturn.stderr b/codegen/ui_tests/export_fn_raw_noreturn.stderr index 51df546a..af84b89d 100644 --- a/codegen/ui_tests/export_fn_raw_noreturn.stderr +++ b/codegen/ui_tests/export_fn_raw_noreturn.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: functions marked with 'return_raw' must return Result> - --> $DIR/export_fn_raw_noreturn.rs:9:13 + --> ui_tests/export_fn_raw_noreturn.rs:9:13 | 9 | #[export_fn(return_raw)] | ^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_raw_noreturn.rs:19:5 + --> ui_tests/export_fn_raw_noreturn.rs:19:5 | 19 | test_fn(&mut n); | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_fn_raw_return.stderr b/codegen/ui_tests/export_fn_raw_return.stderr index 3dc04fa8..36f5f4b6 100644 --- a/codegen/ui_tests/export_fn_raw_return.stderr +++ b/codegen/ui_tests/export_fn_raw_return.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0599]: the method `map` exists for type `bool`, but its trait bounds were not satisfied - --> $DIR/export_fn_raw_return.rs:10:33 + --> ui_tests/export_fn_raw_return.rs:10:33 | 10 | pub fn test_fn(input: Point) -> bool { | ^^^^ method cannot be called on `bool` due to unsatisfied trait bounds diff --git a/codegen/ui_tests/export_mod_bad_attr.stderr b/codegen/ui_tests/export_mod_bad_attr.stderr index c9318637..5bd99f2f 100644 --- a/codegen/ui_tests/export_mod_bad_attr.stderr +++ b/codegen/ui_tests/export_mod_bad_attr.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: unknown attribute 'unknown' - --> $DIR/export_mod_bad_attr.rs:11:11 + --> ui_tests/export_mod_bad_attr.rs:11:11 | 11 | #[rhai_fn(unknown = "thing")] | ^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_bad_attr.rs:22:8 + --> ui_tests/export_mod_bad_attr.rs:22:8 | 22 | if test_mod::test_fn(n) { | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_bad_value.stderr b/codegen/ui_tests/export_mod_bad_value.stderr index 683e689d..30f6f9e0 100644 --- a/codegen/ui_tests/export_mod_bad_value.stderr +++ b/codegen/ui_tests/export_mod_bad_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting string literal - --> $DIR/export_mod_bad_value.rs:11:18 + --> ui_tests/export_mod_bad_value.rs:11:18 | 11 | #[rhai_fn(name = true)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_bad_value.rs:22:8 + --> ui_tests/export_mod_bad_value.rs:22:8 | 22 | if test_mod::test_fn(n) { | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_cfg.stderr b/codegen/ui_tests/export_mod_cfg.stderr index dbc784f8..14e41c41 100644 --- a/codegen/ui_tests/export_mod_cfg.stderr +++ b/codegen/ui_tests/export_mod_cfg.stderr @@ -1,8 +1,10 @@ -error: cfg attributes not allowed on this item - --> ui_tests/export_mod_cfg.rs:11:1 +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' +error: expected attribute arguments in parentheses: #[rhai_fn(...)] + --> ui_tests/export_mod_cfg.rs:12:1 | -11 | #[cfg(not(feature = "foo"))] - | ^ +12 | #[rhai_fn] + | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` --> ui_tests/export_mod_cfg.rs:23:8 diff --git a/codegen/ui_tests/export_mod_extra_value.stderr b/codegen/ui_tests/export_mod_extra_value.stderr index 9ad71395..8f50a14b 100644 --- a/codegen/ui_tests/export_mod_extra_value.stderr +++ b/codegen/ui_tests/export_mod_extra_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: extraneous value - --> $DIR/export_mod_extra_value.rs:11:24 + --> ui_tests/export_mod_extra_value.rs:11:24 | 11 | #[rhai_fn(return_raw = "yes")] | ^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_extra_value.rs:22:8 + --> ui_tests/export_mod_extra_value.rs:22:8 | 22 | if test_mod::test_fn(n) { | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_junk_arg.stderr b/codegen/ui_tests/export_mod_junk_arg.stderr index 8d0a9ef9..26ac072b 100644 --- a/codegen/ui_tests/export_mod_junk_arg.stderr +++ b/codegen/ui_tests/export_mod_junk_arg.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting identifier - --> $DIR/export_mod_junk_arg.rs:11:11 + --> ui_tests/export_mod_junk_arg.rs:11:11 | 11 | #[rhai_fn("wheeeee")] | ^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_junk_arg.rs:22:8 + --> ui_tests/export_mod_junk_arg.rs:22:8 | 22 | if test_mod::test_fn(n) { | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_missing_value.stderr b/codegen/ui_tests/export_mod_missing_value.stderr index b4819fce..5445b2b6 100644 --- a/codegen/ui_tests/export_mod_missing_value.stderr +++ b/codegen/ui_tests/export_mod_missing_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: requires value - --> $DIR/export_mod_missing_value.rs:11:11 + --> ui_tests/export_mod_missing_value.rs:11:11 | 11 | #[rhai_fn(name)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_missing_value.rs:22:8 + --> ui_tests/export_mod_missing_value.rs:22:8 | 22 | if test_mod::test_fn(n) { | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_path_attr.stderr b/codegen/ui_tests/export_mod_path_attr.stderr index 8b4d3079..dca534e6 100644 --- a/codegen/ui_tests/export_mod_path_attr.stderr +++ b/codegen/ui_tests/export_mod_path_attr.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting attribute name --> ui_tests/export_mod_path_attr.rs:11:11 | 11 | #[rhai_fn(rhai::name = "thing")] - | ^^^^ + | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` --> ui_tests/export_mod_path_attr.rs:22:8 diff --git a/codegen/ui_tests/export_mod_raw_noreturn.stderr b/codegen/ui_tests/export_mod_raw_noreturn.stderr index 71945f4a..e2d8810f 100644 --- a/codegen/ui_tests/export_mod_raw_noreturn.stderr +++ b/codegen/ui_tests/export_mod_raw_noreturn.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: functions marked with 'return_raw' must return Result> - --> $DIR/export_mod_raw_noreturn.rs:11:11 + --> ui_tests/export_mod_raw_noreturn.rs:11:11 | 11 | #[rhai_fn(return_raw)] | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_raw_noreturn.rs:22:5 + --> ui_tests/export_mod_raw_noreturn.rs:22:5 | 22 | test_mod::test_fn(&mut n); | ^^^^^^^^ use of undeclared crate or module `test_mod` diff --git a/codegen/ui_tests/export_mod_raw_return.stderr b/codegen/ui_tests/export_mod_raw_return.stderr index d62b9d94..7e59dd74 100644 --- a/codegen/ui_tests/export_mod_raw_return.stderr +++ b/codegen/ui_tests/export_mod_raw_return.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0599]: the method `map` exists for type `bool`, but its trait bounds were not satisfied - --> $DIR/export_mod_raw_return.rs:12:33 + --> ui_tests/export_mod_raw_return.rs:12:33 | 12 | pub fn test_fn(input: Point) -> bool { | ^^^^ method cannot be called on `bool` due to unsatisfied trait bounds diff --git a/codegen/ui_tests/first_shared_ref.stderr b/codegen/ui_tests/first_shared_ref.stderr index 440d865a..8395ec48 100644 --- a/codegen/ui_tests/first_shared_ref.stderr +++ b/codegen/ui_tests/first_shared_ref.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: references from Rhai in this position must be mutable --> ui_tests/first_shared_ref.rs:11:23 | 11 | pub fn test_fn(input: &NonClonable) -> bool { - | ^ + | ^^^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/first_shared_ref.rs:22:8 diff --git a/codegen/ui_tests/module_cfg_const.rs b/codegen/ui_tests/module_cfg_const.rs deleted file mode 100644 index 599f52da..00000000 --- a/codegen/ui_tests/module_cfg_const.rs +++ /dev/null @@ -1,31 +0,0 @@ -use rhai::plugin::*; - -#[derive(Clone)] -pub struct Point { - x: f32, - y: f32, -} - -#[export_module] -pub mod test_module { - use rhai::FLOAT; - - #[cfg(feature = "foo")] - pub const MAGIC: FLOAT = 42.0 as FLOAT; - - pub fn test_fn(input: Point) -> bool { - input.x > input.y - } -} - -fn main() { - let n = Point { - x: 0.0, - y: 10.0, - }; - if test_module::test_fn(n) { - println!("yes"); - } else { - println!("no"); - } -} diff --git a/codegen/ui_tests/module_cfg_const.stderr b/codegen/ui_tests/module_cfg_const.stderr deleted file mode 100644 index 78ea7c52..00000000 --- a/codegen/ui_tests/module_cfg_const.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error: cfg attributes not allowed on this item - --> ui_tests/module_cfg_const.rs:13:5 - | -13 | #[cfg(feature = "foo")] - | ^ - -error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> ui_tests/module_cfg_const.rs:26:8 - | -26 | if test_module::test_fn(n) { - | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/module_cfg_fn.rs b/codegen/ui_tests/module_cfg_fn.rs deleted file mode 100644 index 3613b9a5..00000000 --- a/codegen/ui_tests/module_cfg_fn.rs +++ /dev/null @@ -1,27 +0,0 @@ -use rhai::plugin::*; - -#[derive(Clone)] -pub struct Point { - x: f32, - y: f32, -} - -#[export_module] -pub mod test_module { - #[cfg(not(feature = "foo"))] - pub fn test_fn(input: Point) -> bool { - input.x > input.y - } -} - -fn main() { - let n = Point { - x: 0.0, - y: 10.0, - }; - if test_module::test_fn(n) { - println!("yes"); - } else { - println!("no"); - } -} diff --git a/codegen/ui_tests/module_cfg_fn.stderr b/codegen/ui_tests/module_cfg_fn.stderr deleted file mode 100644 index f5411742..00000000 --- a/codegen/ui_tests/module_cfg_fn.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error: cfg attributes not allowed on this item - --> ui_tests/module_cfg_fn.rs:11:5 - | -11 | #[cfg(not(feature = "foo"))] - | ^ - -error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> ui_tests/module_cfg_fn.rs:22:8 - | -22 | if test_module::test_fn(n) { - | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/non_clonable.stderr b/codegen/ui_tests/non_clonable.stderr index 10a06303..8b91215f 100644 --- a/codegen/ui_tests/non_clonable.stderr +++ b/codegen/ui_tests/non_clonable.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> $DIR/non_clonable.rs:11:23 + --> ui_tests/non_clonable.rs:11:23 | 11 | pub fn test_fn(input: NonClonable) -> bool { | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` diff --git a/codegen/ui_tests/non_clonable_second.stderr b/codegen/ui_tests/non_clonable_second.stderr index 07034875..a1e24e3e 100644 --- a/codegen/ui_tests/non_clonable_second.stderr +++ b/codegen/ui_tests/non_clonable_second.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> $DIR/non_clonable_second.rs:11:27 + --> ui_tests/non_clonable_second.rs:11:27 | 11 | pub fn test_fn(a: u32, b: NonClonable) -> bool { | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` diff --git a/codegen/ui_tests/return_mut_ref.stderr b/codegen/ui_tests/return_mut_ref.stderr index 14aead12..9047d938 100644 --- a/codegen/ui_tests/return_mut_ref.stderr +++ b/codegen/ui_tests/return_mut_ref.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: Rhai functions cannot return references --> ui_tests/return_mut_ref.rs:12:38 | 12 | pub fn test_fn(input: &mut Clonable) -> &mut bool { - | ^^ + | ^^^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/return_mut_ref.rs:23:8 diff --git a/codegen/ui_tests/return_pointer.stderr b/codegen/ui_tests/return_pointer.stderr index 878bc8a2..891385c0 100644 --- a/codegen/ui_tests/return_pointer.stderr +++ b/codegen/ui_tests/return_pointer.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: Rhai functions cannot return pointers --> ui_tests/return_pointer.rs:12:33 | 12 | pub fn test_fn(input: Clonable) -> *const str { - | ^^ + | ^^^^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/return_pointer.rs:24:19 diff --git a/codegen/ui_tests/return_shared_ref.stderr b/codegen/ui_tests/return_shared_ref.stderr index 4bd3a057..ca80e2d9 100644 --- a/codegen/ui_tests/return_shared_ref.stderr +++ b/codegen/ui_tests/return_shared_ref.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: Rhai functions cannot return references --> ui_tests/return_shared_ref.rs:12:33 | 12 | pub fn test_fn(input: Clonable) -> &'static str { - | ^^ + | ^^^^^^^^^^^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/return_shared_ref.rs:23:20 diff --git a/codegen/ui_tests/rhai_fn_bad_attr.stderr b/codegen/ui_tests/rhai_fn_bad_attr.stderr index 0f7fa449..8ddc70b7 100644 --- a/codegen/ui_tests/rhai_fn_bad_attr.stderr +++ b/codegen/ui_tests/rhai_fn_bad_attr.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: unknown attribute 'unknown' - --> $DIR/rhai_fn_bad_attr.rs:11:11 + --> ui_tests/rhai_fn_bad_attr.rs:11:11 | 11 | #[rhai_fn(unknown = "thing")] | ^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_bad_attr.rs:22:8 + --> ui_tests/rhai_fn_bad_attr.rs:22:8 | 22 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_bad_value.stderr b/codegen/ui_tests/rhai_fn_bad_value.stderr index f899ddad..dce13bda 100644 --- a/codegen/ui_tests/rhai_fn_bad_value.stderr +++ b/codegen/ui_tests/rhai_fn_bad_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting string literal - --> $DIR/rhai_fn_bad_value.rs:11:18 + --> ui_tests/rhai_fn_bad_value.rs:11:18 | 11 | #[rhai_fn(name = true)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_bad_value.rs:22:8 + --> ui_tests/rhai_fn_bad_value.rs:22:8 | 22 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_extra_value.stderr b/codegen/ui_tests/rhai_fn_extra_value.stderr index 44ecfc0c..82081c9d 100644 --- a/codegen/ui_tests/rhai_fn_extra_value.stderr +++ b/codegen/ui_tests/rhai_fn_extra_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: extraneous value - --> $DIR/rhai_fn_extra_value.rs:11:24 + --> ui_tests/rhai_fn_extra_value.rs:11:24 | 11 | #[rhai_fn(return_raw = "yes")] | ^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_extra_value.rs:22:8 + --> ui_tests/rhai_fn_extra_value.rs:22:8 | 22 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_getter_conflict.stderr b/codegen/ui_tests/rhai_fn_getter_conflict.stderr index 2c2d8795..41961ff1 100644 --- a/codegen/ui_tests/rhai_fn_getter_conflict.stderr +++ b/codegen/ui_tests/rhai_fn_getter_conflict.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: conflicting setter --> ui_tests/rhai_fn_getter_conflict.rs:12:42 | 12 | #[rhai_fn(name = "foo", get = "foo", set = "bar")] - | ^^^ + | ^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_getter_conflict.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_getter_multiple.stderr b/codegen/ui_tests/rhai_fn_getter_multiple.stderr index f6099f17..968231bd 100644 --- a/codegen/ui_tests/rhai_fn_getter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_getter_multiple.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: conflicting getter --> ui_tests/rhai_fn_getter_multiple.rs:12:42 | 12 | #[rhai_fn(name = "foo", get = "foo", get = "bar")] - | ^^^ + | ^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_getter_multiple.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_getter_return.stderr b/codegen/ui_tests/rhai_fn_getter_return.stderr index 07964e33..75d977c0 100644 --- a/codegen/ui_tests/rhai_fn_getter_return.stderr +++ b/codegen/ui_tests/rhai_fn_getter_return.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: property getter must return a value --> ui_tests/rhai_fn_getter_return.rs:13:9 | 13 | pub fn test_fn(input: &mut Point) { - | ^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_getter_return.rs:23:5 diff --git a/codegen/ui_tests/rhai_fn_getter_signature.stderr b/codegen/ui_tests/rhai_fn_getter_signature.stderr index 8b7e3b89..55d6c286 100644 --- a/codegen/ui_tests/rhai_fn_getter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_getter_signature.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: property getter requires exactly 1 parameter --> ui_tests/rhai_fn_getter_signature.rs:13:20 | 13 | pub fn test_fn(input: Point, value: bool) -> bool { - | ^^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_getter_signature.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_global_multiple.stderr b/codegen/ui_tests/rhai_fn_global_multiple.stderr index f36c296d..25281cff 100644 --- a/codegen/ui_tests/rhai_fn_global_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_global_multiple.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: namespace is already set to 'global' - --> $DIR/rhai_fn_global_multiple.rs:12:23 + --> ui_tests/rhai_fn_global_multiple.rs:12:23 | 12 | #[rhai_fn(global, internal)] | ^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_global_multiple.rs:23:8 + --> ui_tests/rhai_fn_global_multiple.rs:23:8 | 23 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_index_getter_multiple.stderr b/codegen/ui_tests/rhai_fn_index_getter_multiple.stderr index 30cc273d..57878e38 100644 --- a/codegen/ui_tests/rhai_fn_index_getter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_index_getter_multiple.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: conflicting index_get - --> $DIR/rhai_fn_index_getter_multiple.rs:12:40 + --> ui_tests/rhai_fn_index_getter_multiple.rs:12:40 | 12 | #[rhai_fn(name = "foo", index_get, index_get)] | ^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_index_getter_multiple.rs:23:8 + --> ui_tests/rhai_fn_index_getter_multiple.rs:23:8 | 23 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_index_getter_return.stderr b/codegen/ui_tests/rhai_fn_index_getter_return.stderr index 35abddd6..c80e89e5 100644 --- a/codegen/ui_tests/rhai_fn_index_getter_return.stderr +++ b/codegen/ui_tests/rhai_fn_index_getter_return.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: index getter must return a value --> ui_tests/rhai_fn_index_getter_return.rs:13:9 | 13 | pub fn test_fn(input: &mut Point, i: f32) { - | ^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_index_getter_return.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_index_getter_signature.stderr b/codegen/ui_tests/rhai_fn_index_getter_signature.stderr index 13788fef..06c38dec 100644 --- a/codegen/ui_tests/rhai_fn_index_getter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_index_getter_signature.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: index getter requires exactly 2 parameters --> ui_tests/rhai_fn_index_getter_signature.rs:13:20 | 13 | pub fn test_fn(input: Point) -> bool { - | ^^^^^ + | ^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_index_getter_signature.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_index_setter_multiple.stderr b/codegen/ui_tests/rhai_fn_index_setter_multiple.stderr index 1e45346d..d7d4ef95 100644 --- a/codegen/ui_tests/rhai_fn_index_setter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_index_setter_multiple.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: conflicting index_set - --> $DIR/rhai_fn_index_setter_multiple.rs:12:40 + --> ui_tests/rhai_fn_index_setter_multiple.rs:12:40 | 12 | #[rhai_fn(name = "foo", index_set, index_set)] | ^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_index_setter_multiple.rs:23:8 + --> ui_tests/rhai_fn_index_setter_multiple.rs:23:8 | 23 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_junk_arg.stderr b/codegen/ui_tests/rhai_fn_junk_arg.stderr index 2fa0be8d..aaee8ce0 100644 --- a/codegen/ui_tests/rhai_fn_junk_arg.stderr +++ b/codegen/ui_tests/rhai_fn_junk_arg.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting identifier - --> $DIR/rhai_fn_junk_arg.rs:11:11 + --> ui_tests/rhai_fn_junk_arg.rs:11:11 | 11 | #[rhai_fn("wheeeee")] | ^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_junk_arg.rs:22:8 + --> ui_tests/rhai_fn_junk_arg.rs:22:8 | 22 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_missing_value.stderr b/codegen/ui_tests/rhai_fn_missing_value.stderr index 1cd4b241..bd6353fd 100644 --- a/codegen/ui_tests/rhai_fn_missing_value.stderr +++ b/codegen/ui_tests/rhai_fn_missing_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: requires value - --> $DIR/rhai_fn_missing_value.rs:11:11 + --> ui_tests/rhai_fn_missing_value.rs:11:11 | 11 | #[rhai_fn(name)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_fn_missing_value.rs:22:8 + --> ui_tests/rhai_fn_missing_value.rs:22:8 | 22 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index 0fdca722..b75a064f 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -1,10 +1,16 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0277]: the trait bound `NonClonable: Clone` is not satisfied --> ui_tests/rhai_fn_non_clonable_return.rs:11:8 | 11 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^----------- + | | | + | | required by a bound introduced by this call + | the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $WORKSPACE/src/dynamic.rs | | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` + | ^^^^^ required by this bound in `rhai::Dynamic::from` diff --git a/codegen/ui_tests/rhai_fn_path_attr.stderr b/codegen/ui_tests/rhai_fn_path_attr.stderr index ef9c8768..2ed19325 100644 --- a/codegen/ui_tests/rhai_fn_path_attr.stderr +++ b/codegen/ui_tests/rhai_fn_path_attr.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting attribute name --> ui_tests/rhai_fn_path_attr.rs:11:11 | 11 | #[rhai_fn(rhai::name = "thing")] - | ^^^^ + | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_path_attr.rs:22:8 diff --git a/codegen/ui_tests/rhai_fn_rename_collision.stderr b/codegen/ui_tests/rhai_fn_rename_collision.stderr index e865313c..eb7159f7 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision.stderr @@ -1,14 +1,16 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: duplicate Rhai signature for 'foo' --> ui_tests/rhai_fn_rename_collision.rs:17:15 | 17 | #[rhai_fn(name = "foo")] - | ^^^^ + | ^^^^^^^^^^^^ error: duplicated function renamed 'foo' --> ui_tests/rhai_fn_rename_collision.rs:12:15 | 12 | #[rhai_fn(name = "foo")] - | ^^^^ + | ^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_collision.rs:28:8 diff --git a/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr b/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr index b98c127b..dee68f12 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr @@ -1,3 +1,5 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: duplicate Rhai signature for 'foo' --> ui_tests/rhai_fn_rename_collision_oneattr.rs:17:12 | @@ -8,7 +10,7 @@ error: duplicated function 'foo' --> ui_tests/rhai_fn_rename_collision_oneattr.rs:12:15 | 12 | #[rhai_fn(name = "foo")] - | ^^^^ + | ^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_collision_oneattr.rs:27:8 diff --git a/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr b/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr index f19c017c..83e21cce 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr @@ -1,14 +1,16 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: duplicate Rhai signature for 'bar' --> ui_tests/rhai_fn_rename_collision_oneattr_multiple.rs:17:15 | 17 | #[rhai_fn(get = "bar")] - | ^^^ + | ^^^^^^^^^^^ error: duplicated function renamed 'bar' --> ui_tests/rhai_fn_rename_collision_oneattr_multiple.rs:12:15 | 12 | #[rhai_fn(name = "foo", get = "bar")] - | ^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_collision_oneattr_multiple.rs:25:8 diff --git a/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr b/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr index f39add02..9b70bc0b 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr @@ -1,14 +1,16 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: duplicate Rhai signature for 'foo' --> ui_tests/rhai_fn_rename_collision_with_itself.rs:12:15 | 12 | #[rhai_fn(name = "foo", name = "bar", name = "foo")] - | ^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: duplicated function renamed 'foo' --> ui_tests/rhai_fn_rename_collision_with_itself.rs:12:15 | 12 | #[rhai_fn(name = "foo", name = "bar", name = "foo")] - | ^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_collision_with_itself.rs:20:8 diff --git a/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr b/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr index d2693335..b3726de7 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: use attribute 'index_get' instead --> ui_tests/rhai_fn_rename_to_index_getter.rs:12:15 | 12 | #[rhai_fn(name = "index$get$")] - | ^^^^ + | ^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_to_index_getter.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr b/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr index 4f2370ae..dc887577 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: use attribute 'index_set' instead --> ui_tests/rhai_fn_rename_to_index_setter.rs:12:15 | 12 | #[rhai_fn(name = "index$set$")] - | ^^^^ + | ^^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_to_index_setter.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr b/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr index 8b4ff8da..77a6a06b 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: use attribute 'getter = "foo"' instead --> ui_tests/rhai_fn_rename_to_prop_getter.rs:12:15 | 12 | #[rhai_fn(name = "get$foo")] - | ^^^^ + | ^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_to_prop_getter.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr b/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr index 76498378..6a27528f 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: use attribute 'getter = "foo"' instead --> ui_tests/rhai_fn_rename_to_prop_setter.rs:12:15 | 12 | #[rhai_fn(name = "get$foo")] - | ^^^^ + | ^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_rename_to_prop_setter.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_setter_index_signature.stderr b/codegen/ui_tests/rhai_fn_setter_index_signature.stderr index 372070fb..57af377c 100644 --- a/codegen/ui_tests/rhai_fn_setter_index_signature.stderr +++ b/codegen/ui_tests/rhai_fn_setter_index_signature.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: index setter requires exactly 3 parameters --> ui_tests/rhai_fn_setter_index_signature.rs:13:20 | 13 | pub fn test_fn(input: Point) -> bool { - | ^^^^^ + | ^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_setter_index_signature.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_setter_multiple.stderr b/codegen/ui_tests/rhai_fn_setter_multiple.stderr index 3de313cc..d786f13c 100644 --- a/codegen/ui_tests/rhai_fn_setter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_setter_multiple.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: conflicting setter --> ui_tests/rhai_fn_setter_multiple.rs:12:42 | 12 | #[rhai_fn(name = "foo", set = "foo", set = "bar")] - | ^^^ + | ^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_setter_multiple.rs:23:8 diff --git a/codegen/ui_tests/rhai_fn_setter_return.stderr b/codegen/ui_tests/rhai_fn_setter_return.stderr index 8c1f293d..dede2c14 100644 --- a/codegen/ui_tests/rhai_fn_setter_return.stderr +++ b/codegen/ui_tests/rhai_fn_setter_return.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: property setter cannot return any value --> ui_tests/rhai_fn_setter_return.rs:13:51 | 13 | pub fn test_fn(input: &mut Point, value: f32) -> bool { - | ^^ + | ^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_setter_return.rs:24:8 diff --git a/codegen/ui_tests/rhai_fn_setter_signature.stderr b/codegen/ui_tests/rhai_fn_setter_signature.stderr index 6d345740..aa9af2f0 100644 --- a/codegen/ui_tests/rhai_fn_setter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_setter_signature.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: property setter requires exactly 2 parameters --> ui_tests/rhai_fn_setter_signature.rs:13:20 | 13 | pub fn test_fn(input: Point) -> bool { - | ^^^^^ + | ^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_fn_setter_signature.rs:23:8 diff --git a/codegen/ui_tests/rhai_mod_bad_attr.stderr b/codegen/ui_tests/rhai_mod_bad_attr.stderr index 8ac71f6c..53414407 100644 --- a/codegen/ui_tests/rhai_mod_bad_attr.stderr +++ b/codegen/ui_tests/rhai_mod_bad_attr.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: unknown attribute 'unknown' - --> $DIR/rhai_mod_bad_attr.rs:11:12 + --> ui_tests/rhai_mod_bad_attr.rs:11:12 | 11 | #[rhai_mod(unknown = "thing")] | ^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_bad_attr.rs:24:8 + --> ui_tests/rhai_mod_bad_attr.rs:24:8 | 24 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_bad_value.stderr b/codegen/ui_tests/rhai_mod_bad_value.stderr index 76498300..4e6485b6 100644 --- a/codegen/ui_tests/rhai_mod_bad_value.stderr +++ b/codegen/ui_tests/rhai_mod_bad_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting string literal - --> $DIR/rhai_mod_bad_value.rs:11:19 + --> ui_tests/rhai_mod_bad_value.rs:11:19 | 11 | #[rhai_mod(name = true)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_bad_value.rs:24:8 + --> ui_tests/rhai_mod_bad_value.rs:24:8 | 24 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_inner_cfg_false.stderr b/codegen/ui_tests/rhai_mod_inner_cfg_false.stderr index 04068220..1bfa7755 100644 --- a/codegen/ui_tests/rhai_mod_inner_cfg_false.stderr +++ b/codegen/ui_tests/rhai_mod_inner_cfg_false.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0433]: failed to resolve: could not find `test_mod` in `test_module` - --> $DIR/rhai_mod_inner_cfg_false.rs:24:21 + --> ui_tests/rhai_mod_inner_cfg_false.rs:24:21 | 24 | if test_module::test_mod::test_fn(n) { | ^^^^^^^^ could not find `test_mod` in `test_module` diff --git a/codegen/ui_tests/rhai_mod_junk_arg.stderr b/codegen/ui_tests/rhai_mod_junk_arg.stderr index a8c733a0..1f9288c0 100644 --- a/codegen/ui_tests/rhai_mod_junk_arg.stderr +++ b/codegen/ui_tests/rhai_mod_junk_arg.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting identifier - --> $DIR/rhai_mod_junk_arg.rs:11:12 + --> ui_tests/rhai_mod_junk_arg.rs:11:12 | 11 | #[rhai_mod("wheeeee")] | ^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_junk_arg.rs:24:8 + --> ui_tests/rhai_mod_junk_arg.rs:24:8 | 24 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_missing_value.stderr b/codegen/ui_tests/rhai_mod_missing_value.stderr index ed452923..58da819f 100644 --- a/codegen/ui_tests/rhai_mod_missing_value.stderr +++ b/codegen/ui_tests/rhai_mod_missing_value.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: requires value - --> $DIR/rhai_mod_missing_value.rs:11:12 + --> ui_tests/rhai_mod_missing_value.rs:11:12 | 11 | #[rhai_mod(name)] | ^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_missing_value.rs:24:8 + --> ui_tests/rhai_mod_missing_value.rs:24:8 | 24 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_name_collisions.stderr b/codegen/ui_tests/rhai_mod_name_collisions.stderr index 53c209e1..66bc0512 100644 --- a/codegen/ui_tests/rhai_mod_name_collisions.stderr +++ b/codegen/ui_tests/rhai_mod_name_collisions.stderr @@ -1,17 +1,19 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: duplicate function 'test_fn' - --> $DIR/rhai_mod_name_collisions.rs:16:12 + --> ui_tests/rhai_mod_name_collisions.rs:16:12 | 16 | pub fn test_fn(input: Point) -> bool { | ^^^^^^^ error: duplicated function 'test_fn' - --> $DIR/rhai_mod_name_collisions.rs:12:12 + --> ui_tests/rhai_mod_name_collisions.rs:12:12 | 12 | pub fn test_fn(input: Point) -> bool { | ^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_name_collisions.rs:26:8 + --> ui_tests/rhai_mod_name_collisions.rs:26:8 | 26 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index 83dc34db..d5c0a9c2 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -1,10 +1,16 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0277]: the trait bound `NonClonable: Clone` is not satisfied --> ui_tests/rhai_mod_non_clonable_return.rs:12:12 | 12 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^----------- + | | | + | | required by a bound introduced by this call + | the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $WORKSPACE/src/dynamic.rs | | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` + | ^^^^^ required by this bound in `rhai::Dynamic::from` diff --git a/codegen/ui_tests/rhai_mod_path_attr.stderr b/codegen/ui_tests/rhai_mod_path_attr.stderr index 0d9ea5a8..5e027abd 100644 --- a/codegen/ui_tests/rhai_mod_path_attr.stderr +++ b/codegen/ui_tests/rhai_mod_path_attr.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: expecting attribute name --> ui_tests/rhai_mod_path_attr.rs:11:12 | 11 | #[rhai_mod(rhai::name = "thing")] - | ^^^^ + | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` --> ui_tests/rhai_mod_path_attr.rs:24:8 diff --git a/codegen/ui_tests/rhai_mod_return_raw.stderr b/codegen/ui_tests/rhai_mod_return_raw.stderr index 50ab3bef..e4dc9076 100644 --- a/codegen/ui_tests/rhai_mod_return_raw.stderr +++ b/codegen/ui_tests/rhai_mod_return_raw.stderr @@ -1,11 +1,13 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: unknown attribute 'return_raw' - --> $DIR/rhai_mod_return_raw.rs:11:12 + --> ui_tests/rhai_mod_return_raw.rs:11:12 | 11 | #[rhai_mod(return_raw = "yes")] | ^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `test_module` - --> $DIR/rhai_mod_return_raw.rs:24:8 + --> ui_tests/rhai_mod_return_raw.rs:24:8 | 24 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_mod_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 3ddd298e..62dd95ed 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -1,3 +1,5 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0412]: cannot find type `Pointer` in this scope --> ui_tests/rhai_mod_unknown_type.rs:12:27 | @@ -10,12 +12,12 @@ error[E0412]: cannot find type `Pointer` in this scope help: a struct with a similar name exists | 12 | pub fn test_fn(input: Point) -> bool { - | ^^^^^ + | ~~~~~ help: consider importing one of these items | -11 | use core::fmt::Pointer; - | 11 | use std::fmt::Pointer; | 11 | use syn::__private::fmt::Pointer; | +11 | use core::fmt::Pointer; + | diff --git a/codegen/ui_tests/rhai_mod_unknown_type_return.stderr b/codegen/ui_tests/rhai_mod_unknown_type_return.stderr index 43f2896c..562622ed 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type_return.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type_return.stderr @@ -1,5 +1,7 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error[E0412]: cannot find type `boool` in this scope - --> $DIR/rhai_mod_unknown_type_return.rs:12:37 + --> ui_tests/rhai_mod_unknown_type_return.rs:12:37 | 12 | pub fn test_fn(input: Point) -> boool { | ^^^^^ help: a builtin type with a similar name exists: `bool` diff --git a/codegen/ui_tests/second_shared_ref.stderr b/codegen/ui_tests/second_shared_ref.stderr index 814cd250..c45117a8 100644 --- a/codegen/ui_tests/second_shared_ref.stderr +++ b/codegen/ui_tests/second_shared_ref.stderr @@ -1,8 +1,10 @@ +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta' +WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta' error: function parameters other than the first one cannot be passed by reference --> ui_tests/second_shared_ref.rs:12:41 | 12 | pub fn test_fn(input: Clonable, factor: &bool) -> bool { - | ^ + | ^^^^^ error[E0425]: cannot find function `test_fn` in this scope --> ui_tests/second_shared_ref.rs:23:8