Update test results.
This commit is contained in:
parent
e5fc1272ed
commit
3da1d060ec
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,16 +2,16 @@ error: duplicated attribute 'rhai_fn'
|
||||
--> ui_tests/rhai_fn_duplicate_attr.rs:6:5
|
||||
|
|
||||
6 | #[rhai_fn(pure)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0425]: cannot find value `n` in this scope
|
||||
--> ui_tests/rhai_fn_duplicate_attr.rs:13:29
|
||||
|
|
||||
13 | if test_module::test_fn(n) {
|
||||
| ^ not found in this scope
|
||||
| ^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> ui_tests/rhai_fn_duplicate_attr.rs:13:8
|
||||
|
|
||||
13 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
||||
error[E0425]: cannot find value `n` in this scope
|
||||
--> ui_tests/rhai_fn_duplicate_attr.rs:13:29
|
||||
|
|
||||
13 | if test_module::test_fn(n) {
|
||||
| ^ not found in this scope
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,13 +2,13 @@ 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
|
||||
|
@ -8,7 +8,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
|
||||
|
@ -2,13 +2,13 @@ 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
|
||||
|
@ -2,13 +2,13 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ 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
|
||||
|
@ -2,7 +2,7 @@ error: function parameters other than the first one cannot be passed by referenc
|
||||
--> 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
|
||||
|
Loading…
Reference in New Issue
Block a user