Refine codegen error positions.

This commit is contained in:
Stephen Chung
2021-02-26 20:00:25 +08:00
parent 37fe14ba16
commit 33fa57d95b
9 changed files with 36 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ error: property getter requires exactly 1 parameter
--> $DIR/rhai_fn_getter_signature.rs:13:9
|
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