Reorganize get/set/index code into FnSpecialAccess
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
error: duplicate Rhai signature for 'get$bar'
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:17:15
|
||||
|
|
||||
17 | #[rhai_fn(get = "bar")]
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: duplicated function renamed 'get$bar'
|
||||
error: duplicate Rhai signature for 'foo'
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:12:15
|
||||
|
|
||||
12 | #[rhai_fn(name = "foo", get = "bar")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: duplicated function 'foo'
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:18:12
|
||||
|
|
||||
18 | pub fn foo(input: Point) -> bool {
|
||||
| ^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:25:8
|
||||
|
|
||||
|
@@ -4,8 +4,8 @@ error: Rhai function names may not contain dollar sign
|
||||
12 | #[rhai_fn(name = "big$caching")]
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_dollar_sign.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@@ -4,8 +4,8 @@ error: use attribute 'index_get' instead
|
||||
12 | #[rhai_fn(name = "index$get$")]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_to_index_getter.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@@ -4,8 +4,8 @@ error: use attribute 'index_set' instead
|
||||
12 | #[rhai_fn(name = "index$set$")]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_to_index_setter.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@@ -4,8 +4,8 @@ error: use attribute 'getter = "foo"' instead
|
||||
12 | #[rhai_fn(name = "get$foo")]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_to_prop_getter.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@@ -4,8 +4,8 @@ error: use attribute 'getter = "foo"' instead
|
||||
12 | #[rhai_fn(name = "get$foo")]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_to_prop_setter.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
Reference in New Issue
Block a user