From 716e6191c0f4de16ffaf50e99eb16a816e8b7348 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 12 Oct 2021 20:57:47 +0800 Subject: [PATCH] Update error templates. --- codegen/ui_tests/export_fn_cfg.stderr | 6 +++--- codegen/ui_tests/export_fn_path_attr.stderr | 6 +++--- codegen/ui_tests/export_mod_cfg.stderr | 6 +++--- codegen/ui_tests/export_mod_path_attr.stderr | 6 +++--- codegen/ui_tests/first_shared_ref.stderr | 6 +++--- codegen/ui_tests/module_cfg_const.stderr | 6 +++--- codegen/ui_tests/module_cfg_fn.stderr | 6 +++--- codegen/ui_tests/return_mut_ref.stderr | 6 +++--- codegen/ui_tests/return_pointer.stderr | 6 +++--- codegen/ui_tests/return_shared_ref.stderr | 6 +++--- codegen/ui_tests/rhai_fn_getter_conflict.stderr | 6 +++--- codegen/ui_tests/rhai_fn_getter_multiple.stderr | 6 +++--- codegen/ui_tests/rhai_fn_getter_return.stderr | 6 +++--- codegen/ui_tests/rhai_fn_getter_signature.stderr | 6 +++--- .../ui_tests/rhai_fn_index_getter_return.stderr | 6 +++--- .../ui_tests/rhai_fn_index_getter_signature.stderr | 6 +++--- .../ui_tests/rhai_fn_non_clonable_return.stderr | 14 +++++--------- codegen/ui_tests/rhai_fn_path_attr.stderr | 6 +++--- codegen/ui_tests/rhai_fn_rename_collision.stderr | 10 +++++----- .../rhai_fn_rename_collision_oneattr.stderr | 8 ++++---- ...hai_fn_rename_collision_oneattr_multiple.stderr | 10 +++++----- .../rhai_fn_rename_collision_with_itself.stderr | 10 +++++----- .../ui_tests/rhai_fn_rename_to_index_getter.stderr | 6 +++--- .../ui_tests/rhai_fn_rename_to_index_setter.stderr | 6 +++--- .../ui_tests/rhai_fn_rename_to_prop_getter.stderr | 6 +++--- .../ui_tests/rhai_fn_rename_to_prop_setter.stderr | 6 +++--- .../ui_tests/rhai_fn_setter_index_signature.stderr | 6 +++--- codegen/ui_tests/rhai_fn_setter_multiple.stderr | 6 +++--- codegen/ui_tests/rhai_fn_setter_return.stderr | 6 +++--- codegen/ui_tests/rhai_fn_setter_signature.stderr | 6 +++--- .../ui_tests/rhai_mod_non_clonable_return.stderr | 14 +++++--------- codegen/ui_tests/rhai_mod_path_attr.stderr | 6 +++--- codegen/ui_tests/rhai_mod_unknown_type.stderr | 8 ++++---- codegen/ui_tests/second_shared_ref.stderr | 6 +++--- 34 files changed, 114 insertions(+), 122 deletions(-) diff --git a/codegen/ui_tests/export_fn_cfg.stderr b/codegen/ui_tests/export_fn_cfg.stderr index ac068be8..33c99193 100644 --- a/codegen/ui_tests/export_fn_cfg.stderr +++ b/codegen/ui_tests/export_fn_cfg.stderr @@ -1,11 +1,11 @@ error: cfg attributes not allowed on this item - --> $DIR/export_fn_cfg.rs:9:1 + --> ui_tests/export_fn_cfg.rs:9:1 | 9 | #[cfg(not(feature = "foo"))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^ error[E0425]: cannot find function `test_fn` in this scope - --> $DIR/export_fn_cfg.rs:20:8 + --> ui_tests/export_fn_cfg.rs:20:8 | 20 | 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 baf499cb..a7862aeb 100644 --- a/codegen/ui_tests/export_fn_path_attr.stderr +++ b/codegen/ui_tests/export_fn_path_attr.stderr @@ -1,11 +1,11 @@ error: expecting attribute name - --> $DIR/export_fn_path_attr.rs:9:13 + --> 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 - --> $DIR/export_fn_path_attr.rs:19:8 + --> ui_tests/export_fn_path_attr.rs:19:8 | 19 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/export_mod_cfg.stderr b/codegen/ui_tests/export_mod_cfg.stderr index a5b9c027..dbc784f8 100644 --- a/codegen/ui_tests/export_mod_cfg.stderr +++ b/codegen/ui_tests/export_mod_cfg.stderr @@ -1,11 +1,11 @@ error: cfg attributes not allowed on this item - --> $DIR/export_mod_cfg.rs:11:1 + --> ui_tests/export_mod_cfg.rs:11:1 | 11 | #[cfg(not(feature = "foo"))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^ error[E0433]: failed to resolve: use of undeclared crate or module `test_mod` - --> $DIR/export_mod_cfg.rs:23:8 + --> ui_tests/export_mod_cfg.rs:23:8 | 23 | 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 55ca0b2c..8b4d3079 100644 --- a/codegen/ui_tests/export_mod_path_attr.stderr +++ b/codegen/ui_tests/export_mod_path_attr.stderr @@ -1,11 +1,11 @@ error: expecting attribute name - --> $DIR/export_mod_path_attr.rs:11:11 + --> 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` - --> $DIR/export_mod_path_attr.rs:22:8 + --> ui_tests/export_mod_path_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/first_shared_ref.stderr b/codegen/ui_tests/first_shared_ref.stderr index 41b0085e..440d865a 100644 --- a/codegen/ui_tests/first_shared_ref.stderr +++ b/codegen/ui_tests/first_shared_ref.stderr @@ -1,11 +1,11 @@ error: references from Rhai in this position must be mutable - --> $DIR/first_shared_ref.rs:11:23 + --> 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 - --> $DIR/first_shared_ref.rs:22:8 + --> ui_tests/first_shared_ref.rs:22:8 | 22 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/module_cfg_const.stderr b/codegen/ui_tests/module_cfg_const.stderr index 9d3bd14d..78ea7c52 100644 --- a/codegen/ui_tests/module_cfg_const.stderr +++ b/codegen/ui_tests/module_cfg_const.stderr @@ -1,11 +1,11 @@ error: cfg attributes not allowed on this item - --> $DIR/module_cfg_const.rs:13:5 + --> 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` - --> $DIR/module_cfg_const.rs:26:8 + --> 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.stderr b/codegen/ui_tests/module_cfg_fn.stderr index f2529cbd..f5411742 100644 --- a/codegen/ui_tests/module_cfg_fn.stderr +++ b/codegen/ui_tests/module_cfg_fn.stderr @@ -1,11 +1,11 @@ error: cfg attributes not allowed on this item - --> $DIR/module_cfg_fn.rs:11:5 + --> 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` - --> $DIR/module_cfg_fn.rs:22:8 + --> 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/return_mut_ref.stderr b/codegen/ui_tests/return_mut_ref.stderr index 6e56c276..14aead12 100644 --- a/codegen/ui_tests/return_mut_ref.stderr +++ b/codegen/ui_tests/return_mut_ref.stderr @@ -1,11 +1,11 @@ error: Rhai functions cannot return references - --> $DIR/return_mut_ref.rs:12:38 + --> 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 - --> $DIR/return_mut_ref.rs:23:8 + --> ui_tests/return_mut_ref.rs:23:8 | 23 | if test_fn(n) { | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/return_pointer.stderr b/codegen/ui_tests/return_pointer.stderr index 9b771be6..878bc8a2 100644 --- a/codegen/ui_tests/return_pointer.stderr +++ b/codegen/ui_tests/return_pointer.stderr @@ -1,11 +1,11 @@ error: Rhai functions cannot return pointers - --> $DIR/return_pointer.rs:12:33 + --> 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 - --> $DIR/return_pointer.rs:24:19 + --> ui_tests/return_pointer.rs:24:19 | 24 | let ptr = test_fn(n); | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/return_shared_ref.stderr b/codegen/ui_tests/return_shared_ref.stderr index 9b7a91ca..4bd3a057 100644 --- a/codegen/ui_tests/return_shared_ref.stderr +++ b/codegen/ui_tests/return_shared_ref.stderr @@ -1,11 +1,11 @@ error: Rhai functions cannot return references - --> $DIR/return_shared_ref.rs:12:33 + --> 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 - --> $DIR/return_shared_ref.rs:23:20 + --> ui_tests/return_shared_ref.rs:23:20 | 23 | println!("{}", test_fn(n)); | ^^^^^^^ not found in this scope diff --git a/codegen/ui_tests/rhai_fn_getter_conflict.stderr b/codegen/ui_tests/rhai_fn_getter_conflict.stderr index b1011bc6..2c2d8795 100644 --- a/codegen/ui_tests/rhai_fn_getter_conflict.stderr +++ b/codegen/ui_tests/rhai_fn_getter_conflict.stderr @@ -1,11 +1,11 @@ error: conflicting setter - --> $DIR/rhai_fn_getter_conflict.rs:12:42 + --> 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` - --> $DIR/rhai_fn_getter_conflict.rs:23:8 + --> ui_tests/rhai_fn_getter_conflict.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_getter_multiple.stderr b/codegen/ui_tests/rhai_fn_getter_multiple.stderr index b37aca65..f6099f17 100644 --- a/codegen/ui_tests/rhai_fn_getter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_getter_multiple.stderr @@ -1,11 +1,11 @@ error: conflicting getter - --> $DIR/rhai_fn_getter_multiple.rs:12:42 + --> 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` - --> $DIR/rhai_fn_getter_multiple.rs:23:8 + --> ui_tests/rhai_fn_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_getter_return.stderr b/codegen/ui_tests/rhai_fn_getter_return.stderr index 9dad293b..07964e33 100644 --- a/codegen/ui_tests/rhai_fn_getter_return.stderr +++ b/codegen/ui_tests/rhai_fn_getter_return.stderr @@ -1,11 +1,11 @@ error: property getter must return a value - --> $DIR/rhai_fn_getter_return.rs:13:9 + --> 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` - --> $DIR/rhai_fn_getter_return.rs:23:5 + --> ui_tests/rhai_fn_getter_return.rs:23:5 | 23 | test_module::test_fn(&mut n); | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_getter_signature.stderr b/codegen/ui_tests/rhai_fn_getter_signature.stderr index 0a7742e6..8b7e3b89 100644 --- a/codegen/ui_tests/rhai_fn_getter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_getter_signature.stderr @@ -1,11 +1,11 @@ error: property getter requires exactly 1 parameter - --> $DIR/rhai_fn_getter_signature.rs:13:20 + --> 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` - --> $DIR/rhai_fn_getter_signature.rs:23:8 + --> ui_tests/rhai_fn_getter_signature.rs:23:8 | 23 | if test_module::test_fn(n, true) { | ^^^^^^^^^^^ 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 b8da178e..35abddd6 100644 --- a/codegen/ui_tests/rhai_fn_index_getter_return.stderr +++ b/codegen/ui_tests/rhai_fn_index_getter_return.stderr @@ -1,11 +1,11 @@ error: index getter must return a value - --> $DIR/rhai_fn_index_getter_return.rs:13:9 + --> 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` - --> $DIR/rhai_fn_index_getter_return.rs:23:8 + --> ui_tests/rhai_fn_index_getter_return.rs:23:8 | 23 | if test_module::test_fn(&mut n, 5.0) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_index_getter_signature.stderr b/codegen/ui_tests/rhai_fn_index_getter_signature.stderr index 8d567a97..13788fef 100644 --- a/codegen/ui_tests/rhai_fn_index_getter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_index_getter_signature.stderr @@ -1,11 +1,11 @@ error: index getter requires exactly 2 parameters - --> $DIR/rhai_fn_index_getter_signature.rs:13:20 + --> 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` - --> $DIR/rhai_fn_index_getter_signature.rs:23:8 + --> ui_tests/rhai_fn_index_getter_signature.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_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index 70d877e8..0fdca722 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -1,14 +1,10 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> $DIR/rhai_fn_non_clonable_return.rs:11:8 + --> ui_tests/rhai_fn_non_clonable_return.rs:11:8 | 11 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^----------- - | | | - | | required by a bound introduced by this call - | the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | -note: required by a bound in `rhai::Dynamic::from` - --> $DIR/dynamic.rs:1122:30 + ::: $WORKSPACE/src/dynamic.rs | -1122 | pub fn from(mut value: T) -> Self { - | ^^^^^ required by this bound in `rhai::Dynamic::from` + | pub fn from(mut value: T) -> Self { + | ----- 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 70c3b155..ef9c8768 100644 --- a/codegen/ui_tests/rhai_fn_path_attr.stderr +++ b/codegen/ui_tests/rhai_fn_path_attr.stderr @@ -1,11 +1,11 @@ error: expecting attribute name - --> $DIR/rhai_fn_path_attr.rs:11:11 + --> 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` - --> $DIR/rhai_fn_path_attr.rs:22:8 + --> ui_tests/rhai_fn_path_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_rename_collision.stderr b/codegen/ui_tests/rhai_fn_rename_collision.stderr index fcbecd8a..e865313c 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision.stderr @@ -1,17 +1,17 @@ error: duplicate Rhai signature for 'foo' - --> $DIR/rhai_fn_rename_collision.rs:17:15 + --> ui_tests/rhai_fn_rename_collision.rs:17:15 | 17 | #[rhai_fn(name = "foo")] - | ^^^^^^^^^^^^ + | ^^^^ error: duplicated function renamed 'foo' - --> $DIR/rhai_fn_rename_collision.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_collision.rs:28:8 + --> ui_tests/rhai_fn_rename_collision.rs:28:8 | 28 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr b/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr index fc5170a6..b98c127b 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_oneattr.stderr @@ -1,17 +1,17 @@ error: duplicate Rhai signature for 'foo' - --> $DIR/rhai_fn_rename_collision_oneattr.rs:17:12 + --> ui_tests/rhai_fn_rename_collision_oneattr.rs:17:12 | 17 | pub fn foo(input: Point) -> bool { | ^^^ error: duplicated function 'foo' - --> $DIR/rhai_fn_rename_collision_oneattr.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_collision_oneattr.rs:27:8 + --> ui_tests/rhai_fn_rename_collision_oneattr.rs:27:8 | 27 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` 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 67b9eef5..f19c017c 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr @@ -1,17 +1,17 @@ error: duplicate Rhai signature for 'bar' - --> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:17:15 + --> ui_tests/rhai_fn_rename_collision_oneattr_multiple.rs:17:15 | 17 | #[rhai_fn(get = "bar")] - | ^^^^^^^^^^^ + | ^^^ error: duplicated function renamed 'bar' - --> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:25:8 + --> ui_tests/rhai_fn_rename_collision_oneattr_multiple.rs:25:8 | 25 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` 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 5e27be60..f39add02 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_with_itself.stderr @@ -1,17 +1,17 @@ error: duplicate Rhai signature for 'foo' - --> $DIR/rhai_fn_rename_collision_with_itself.rs:12:15 + --> 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' - --> $DIR/rhai_fn_rename_collision_with_itself.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_collision_with_itself.rs:20:8 + --> ui_tests/rhai_fn_rename_collision_with_itself.rs:20:8 | 20 | if test_module::test_fn(n) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` 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 64c11d92..d2693335 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_index_getter.stderr @@ -1,11 +1,11 @@ error: use attribute 'index_get' instead - --> $DIR/rhai_fn_rename_to_index_getter.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_to_index_getter.rs:23:8 + --> ui_tests/rhai_fn_rename_to_index_getter.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_rename_to_index_setter.stderr b/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr index 0d9c9f3d..4f2370ae 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_index_setter.stderr @@ -1,11 +1,11 @@ error: use attribute 'index_set' instead - --> $DIR/rhai_fn_rename_to_index_setter.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_to_index_setter.rs:23:8 + --> ui_tests/rhai_fn_rename_to_index_setter.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_rename_to_prop_getter.stderr b/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr index cee9c66b..8b4ff8da 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_prop_getter.stderr @@ -1,11 +1,11 @@ error: use attribute 'getter = "foo"' instead - --> $DIR/rhai_fn_rename_to_prop_getter.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_to_prop_getter.rs:23:8 + --> ui_tests/rhai_fn_rename_to_prop_getter.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_rename_to_prop_setter.stderr b/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr index 9544ce93..76498378 100644 --- a/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr +++ b/codegen/ui_tests/rhai_fn_rename_to_prop_setter.stderr @@ -1,11 +1,11 @@ error: use attribute 'getter = "foo"' instead - --> $DIR/rhai_fn_rename_to_prop_setter.rs:12:15 + --> 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` - --> $DIR/rhai_fn_rename_to_prop_setter.rs:23:8 + --> ui_tests/rhai_fn_rename_to_prop_setter.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_setter_index_signature.stderr b/codegen/ui_tests/rhai_fn_setter_index_signature.stderr index aa9548e1..372070fb 100644 --- a/codegen/ui_tests/rhai_fn_setter_index_signature.stderr +++ b/codegen/ui_tests/rhai_fn_setter_index_signature.stderr @@ -1,11 +1,11 @@ error: index setter requires exactly 3 parameters - --> $DIR/rhai_fn_setter_index_signature.rs:13:20 + --> 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` - --> $DIR/rhai_fn_setter_index_signature.rs:23:8 + --> ui_tests/rhai_fn_setter_index_signature.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_setter_multiple.stderr b/codegen/ui_tests/rhai_fn_setter_multiple.stderr index 6783fb1a..3de313cc 100644 --- a/codegen/ui_tests/rhai_fn_setter_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_setter_multiple.stderr @@ -1,11 +1,11 @@ error: conflicting setter - --> $DIR/rhai_fn_setter_multiple.rs:12:42 + --> 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` - --> $DIR/rhai_fn_setter_multiple.rs:23:8 + --> ui_tests/rhai_fn_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_setter_return.stderr b/codegen/ui_tests/rhai_fn_setter_return.stderr index 8c0b21ab..8c1f293d 100644 --- a/codegen/ui_tests/rhai_fn_setter_return.stderr +++ b/codegen/ui_tests/rhai_fn_setter_return.stderr @@ -1,11 +1,11 @@ error: property setter cannot return any value - --> $DIR/rhai_fn_setter_return.rs:13:51 + --> 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` - --> $DIR/rhai_fn_setter_return.rs:24:8 + --> ui_tests/rhai_fn_setter_return.rs:24:8 | 24 | if test_module::test_fn(&mut n, 5.0) { | ^^^^^^^^^^^ use of undeclared crate or module `test_module` diff --git a/codegen/ui_tests/rhai_fn_setter_signature.stderr b/codegen/ui_tests/rhai_fn_setter_signature.stderr index d5f3c9d3..6d345740 100644 --- a/codegen/ui_tests/rhai_fn_setter_signature.stderr +++ b/codegen/ui_tests/rhai_fn_setter_signature.stderr @@ -1,11 +1,11 @@ error: property setter requires exactly 2 parameters - --> $DIR/rhai_fn_setter_signature.rs:13:20 + --> 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` - --> $DIR/rhai_fn_setter_signature.rs:23:8 + --> ui_tests/rhai_fn_setter_signature.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_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index 82e9725b..83dc34db 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -1,14 +1,10 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> $DIR/rhai_mod_non_clonable_return.rs:12:12 + --> ui_tests/rhai_mod_non_clonable_return.rs:12:12 | 12 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^----------- - | | | - | | required by a bound introduced by this call - | the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | -note: required by a bound in `rhai::Dynamic::from` - --> $DIR/dynamic.rs:1122:30 + ::: $WORKSPACE/src/dynamic.rs | -1122 | pub fn from(mut value: T) -> Self { - | ^^^^^ required by this bound in `rhai::Dynamic::from` + | pub fn from(mut value: T) -> Self { + | ----- 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 cb99205a..0d9ea5a8 100644 --- a/codegen/ui_tests/rhai_mod_path_attr.stderr +++ b/codegen/ui_tests/rhai_mod_path_attr.stderr @@ -1,11 +1,11 @@ error: expecting attribute name - --> $DIR/rhai_mod_path_attr.rs:11:12 + --> 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` - --> $DIR/rhai_mod_path_attr.rs:24:8 + --> ui_tests/rhai_mod_path_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_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 5853808f..3ddd298e 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -1,5 +1,5 @@ error[E0412]: cannot find type `Pointer` in this scope - --> $DIR/rhai_mod_unknown_type.rs:12:27 + --> ui_tests/rhai_mod_unknown_type.rs:12:27 | 4 | pub struct Point { | ---------------- similarly named struct `Point` defined here @@ -10,12 +10,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/second_shared_ref.stderr b/codegen/ui_tests/second_shared_ref.stderr index 91b493ed..2b53f098 100644 --- a/codegen/ui_tests/second_shared_ref.stderr +++ b/codegen/ui_tests/second_shared_ref.stderr @@ -1,11 +1,11 @@ error: this type in this position passes from Rhai by value - --> $DIR/second_shared_ref.rs:12:41 + --> 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 - --> $DIR/second_shared_ref.rs:23:8 + --> ui_tests/second_shared_ref.rs:23:8 | 23 | if test_fn(n, &true) { | ^^^^^^^ not found in this scope