Update error templates.
This commit is contained in:
parent
6177a291e2
commit
716e6191c0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ^^^^^ required by this bound in `rhai::Dynamic::from`
|
||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ----- required by this bound in `rhai::Dynamic::from`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ^^^^^ required by this bound in `rhai::Dynamic::from`
|
||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ----- required by this bound in `rhai::Dynamic::from`
|
||||
|
@ -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`
|
||||
|
@ -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;
|
||||
|
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user