Update test outputs.
This commit is contained in:
parent
3f2dd23e6e
commit
ae493918a2
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: unknown attribute 'unknown'
|
||||
--> $DIR/export_fn_bad_attr.rs:9:13
|
||||
--> ui_tests/export_fn_bad_attr.rs:9:13
|
||||
|
|
||||
9 | #[export_fn(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_bad_attr.rs:19:8
|
||||
--> ui_tests/export_fn_bad_attr.rs:19:8
|
||||
|
|
||||
19 | if test_fn(n) {
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting string literal
|
||||
--> $DIR/export_fn_bad_value.rs:9:20
|
||||
--> ui_tests/export_fn_bad_value.rs:9:20
|
||||
|
|
||||
9 | #[export_fn(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_bad_value.rs:19:8
|
||||
--> ui_tests/export_fn_bad_value.rs:19:8
|
||||
|
|
||||
19 | if test_fn(n) {
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,8 +1,10 @@
|
||||
error: cfg attributes not allowed on this item
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: extraneous value
|
||||
--> $DIR/export_fn_extra_value.rs:9:26
|
||||
--> ui_tests/export_fn_extra_value.rs:9:26
|
||||
|
|
||||
9 | #[export_fn(return_raw = "yes")]
|
||||
| ^^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_extra_value.rs:19:8
|
||||
--> ui_tests/export_fn_extra_value.rs:19:8
|
||||
|
|
||||
19 | if test_fn(n) {
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting identifier
|
||||
--> $DIR/export_fn_junk_arg.rs:9:13
|
||||
--> ui_tests/export_fn_junk_arg.rs:9:13
|
||||
|
|
||||
9 | #[export_fn("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_junk_arg.rs:19:8
|
||||
--> ui_tests/export_fn_junk_arg.rs:19:8
|
||||
|
|
||||
19 | if test_fn(n) {
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: requires value
|
||||
--> $DIR/export_fn_missing_value.rs:9:13
|
||||
--> ui_tests/export_fn_missing_value.rs:9:13
|
||||
|
|
||||
9 | #[export_fn(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_missing_value.rs:19:8
|
||||
--> ui_tests/export_fn_missing_value.rs:19:8
|
||||
|
|
||||
19 | if test_fn(n) {
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: functions marked with 'return_raw' must return Result<T, Box<EvalAltResult>>
|
||||
--> $DIR/export_fn_raw_noreturn.rs:9:13
|
||||
--> ui_tests/export_fn_raw_noreturn.rs:9:13
|
||||
|
|
||||
9 | #[export_fn(return_raw)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0425]: cannot find function `test_fn` in this scope
|
||||
--> $DIR/export_fn_raw_noreturn.rs:19:5
|
||||
--> ui_tests/export_fn_raw_noreturn.rs:19:5
|
||||
|
|
||||
19 | test_fn(&mut n);
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
@ -1,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0599]: the method `map` exists for type `bool`, but its trait bounds were not satisfied
|
||||
--> $DIR/export_fn_raw_return.rs:10:33
|
||||
--> ui_tests/export_fn_raw_return.rs:10:33
|
||||
|
|
||||
10 | pub fn test_fn(input: Point) -> bool {
|
||||
| ^^^^ method cannot be called on `bool` due to unsatisfied trait bounds
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: unknown attribute 'unknown'
|
||||
--> $DIR/export_mod_bad_attr.rs:11:11
|
||||
--> ui_tests/export_mod_bad_attr.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_bad_attr.rs:22:8
|
||||
--> ui_tests/export_mod_bad_attr.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting string literal
|
||||
--> $DIR/export_mod_bad_value.rs:11:18
|
||||
--> ui_tests/export_mod_bad_value.rs:11:18
|
||||
|
|
||||
11 | #[rhai_fn(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_bad_value.rs:22:8
|
||||
--> ui_tests/export_mod_bad_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,8 +1,10 @@
|
||||
error: cfg attributes not allowed on this item
|
||||
--> ui_tests/export_mod_cfg.rs:11:1
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expected attribute arguments in parentheses: #[rhai_fn(...)]
|
||||
--> ui_tests/export_mod_cfg.rs:12:1
|
||||
|
|
||||
11 | #[cfg(not(feature = "foo"))]
|
||||
| ^
|
||||
12 | #[rhai_fn]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> ui_tests/export_mod_cfg.rs:23:8
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: extraneous value
|
||||
--> $DIR/export_mod_extra_value.rs:11:24
|
||||
--> ui_tests/export_mod_extra_value.rs:11:24
|
||||
|
|
||||
11 | #[rhai_fn(return_raw = "yes")]
|
||||
| ^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_extra_value.rs:22:8
|
||||
--> ui_tests/export_mod_extra_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting identifier
|
||||
--> $DIR/export_mod_junk_arg.rs:11:11
|
||||
--> ui_tests/export_mod_junk_arg.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_junk_arg.rs:22:8
|
||||
--> ui_tests/export_mod_junk_arg.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: requires value
|
||||
--> $DIR/export_mod_missing_value.rs:11:11
|
||||
--> ui_tests/export_mod_missing_value.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_missing_value.rs:22:8
|
||||
--> ui_tests/export_mod_missing_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: functions marked with 'return_raw' must return Result<T, Box<EvalAltResult>>
|
||||
--> $DIR/export_mod_raw_noreturn.rs:11:11
|
||||
--> ui_tests/export_mod_raw_noreturn.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn(return_raw)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_raw_noreturn.rs:22:5
|
||||
--> ui_tests/export_mod_raw_noreturn.rs:22:5
|
||||
|
|
||||
22 | test_mod::test_fn(&mut n);
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -1,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0599]: the method `map` exists for type `bool`, but its trait bounds were not satisfied
|
||||
--> $DIR/export_mod_raw_return.rs:12:33
|
||||
--> ui_tests/export_mod_raw_return.rs:12:33
|
||||
|
|
||||
12 | pub fn test_fn(input: Point) -> bool {
|
||||
| ^^^^ method cannot be called on `bool` due to unsatisfied trait bounds
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,31 +0,0 @@
|
||||
use rhai::plugin::*;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Point {
|
||||
x: f32,
|
||||
y: f32,
|
||||
}
|
||||
|
||||
#[export_module]
|
||||
pub mod test_module {
|
||||
use rhai::FLOAT;
|
||||
|
||||
#[cfg(feature = "foo")]
|
||||
pub const MAGIC: FLOAT = 42.0 as FLOAT;
|
||||
|
||||
pub fn test_fn(input: Point) -> bool {
|
||||
input.x > input.y
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let n = Point {
|
||||
x: 0.0,
|
||||
y: 10.0,
|
||||
};
|
||||
if test_module::test_fn(n) {
|
||||
println!("yes");
|
||||
} else {
|
||||
println!("no");
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
error: cfg attributes not allowed on this item
|
||||
--> 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`
|
||||
--> ui_tests/module_cfg_const.rs:26:8
|
||||
|
|
||||
26 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
@ -1,27 +0,0 @@
|
||||
use rhai::plugin::*;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Point {
|
||||
x: f32,
|
||||
y: f32,
|
||||
}
|
||||
|
||||
#[export_module]
|
||||
pub mod test_module {
|
||||
#[cfg(not(feature = "foo"))]
|
||||
pub fn test_fn(input: Point) -> bool {
|
||||
input.x > input.y
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let n = Point {
|
||||
x: 0.0,
|
||||
y: 10.0,
|
||||
};
|
||||
if test_module::test_fn(n) {
|
||||
println!("yes");
|
||||
} else {
|
||||
println!("no");
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
error: cfg attributes not allowed on this item
|
||||
--> 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`
|
||||
--> ui_tests/module_cfg_fn.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
@ -1,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||
--> $DIR/non_clonable.rs:11:23
|
||||
--> ui_tests/non_clonable.rs:11:23
|
||||
|
|
||||
11 | pub fn test_fn(input: NonClonable) -> bool {
|
||||
| ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||
|
@ -1,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||
--> $DIR/non_clonable_second.rs:11:27
|
||||
--> ui_tests/non_clonable_second.rs:11:27
|
||||
|
|
||||
11 | pub fn test_fn(a: u32, b: NonClonable) -> bool {
|
||||
| ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: unknown attribute 'unknown'
|
||||
--> $DIR/rhai_fn_bad_attr.rs:11:11
|
||||
--> ui_tests/rhai_fn_bad_attr.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_bad_attr.rs:22:8
|
||||
--> ui_tests/rhai_fn_bad_attr.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting string literal
|
||||
--> $DIR/rhai_fn_bad_value.rs:11:18
|
||||
--> ui_tests/rhai_fn_bad_value.rs:11:18
|
||||
|
|
||||
11 | #[rhai_fn(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_bad_value.rs:22:8
|
||||
--> ui_tests/rhai_fn_bad_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: extraneous value
|
||||
--> $DIR/rhai_fn_extra_value.rs:11:24
|
||||
--> ui_tests/rhai_fn_extra_value.rs:11:24
|
||||
|
|
||||
11 | #[rhai_fn(return_raw = "yes")]
|
||||
| ^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_extra_value.rs:22:8
|
||||
--> ui_tests/rhai_fn_extra_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: namespace is already set to 'global'
|
||||
--> $DIR/rhai_fn_global_multiple.rs:12:23
|
||||
--> ui_tests/rhai_fn_global_multiple.rs:12:23
|
||||
|
|
||||
12 | #[rhai_fn(global, internal)]
|
||||
| ^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_global_multiple.rs:23:8
|
||||
--> ui_tests/rhai_fn_global_multiple.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: conflicting index_get
|
||||
--> $DIR/rhai_fn_index_getter_multiple.rs:12:40
|
||||
--> ui_tests/rhai_fn_index_getter_multiple.rs:12:40
|
||||
|
|
||||
12 | #[rhai_fn(name = "foo", index_get, index_get)]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_index_getter_multiple.rs:23:8
|
||||
--> ui_tests/rhai_fn_index_getter_multiple.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: conflicting index_set
|
||||
--> $DIR/rhai_fn_index_setter_multiple.rs:12:40
|
||||
--> ui_tests/rhai_fn_index_setter_multiple.rs:12:40
|
||||
|
|
||||
12 | #[rhai_fn(name = "foo", index_set, index_set)]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_index_setter_multiple.rs:23:8
|
||||
--> ui_tests/rhai_fn_index_setter_multiple.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting identifier
|
||||
--> $DIR/rhai_fn_junk_arg.rs:11:11
|
||||
--> ui_tests/rhai_fn_junk_arg.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_junk_arg.rs:22:8
|
||||
--> ui_tests/rhai_fn_junk_arg.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: requires value
|
||||
--> $DIR/rhai_fn_missing_value.rs:11:11
|
||||
--> ui_tests/rhai_fn_missing_value.rs:11:11
|
||||
|
|
||||
11 | #[rhai_fn(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_missing_value.rs:22:8
|
||||
--> ui_tests/rhai_fn_missing_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,10 +1,16 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||
--> ui_tests/rhai_fn_non_clonable_return.rs:11:8
|
||||
|
|
||||
11 | pub fn test_fn(input: f32) -> NonClonable {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^-----------
|
||||
| | |
|
||||
| | required by a bound introduced by this call
|
||||
| the trait `Clone` is not implemented for `NonClonable`
|
||||
|
|
||||
::: $WORKSPACE/src/dynamic.rs
|
||||
note: required by a bound in `rhai::Dynamic::from`
|
||||
--> $WORKSPACE/src/dynamic.rs
|
||||
|
|
||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ----- required by this bound in `rhai::Dynamic::from`
|
||||
| ^^^^^ required by this bound in `rhai::Dynamic::from`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,14 +1,16 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,3 +1,5 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: duplicate Rhai signature for 'foo'
|
||||
--> ui_tests/rhai_fn_rename_collision_oneattr.rs:17:12
|
||||
|
|
||||
@ -8,7 +10,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
|
||||
|
@ -1,14 +1,16 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,14 +1,16 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: unknown attribute 'unknown'
|
||||
--> $DIR/rhai_mod_bad_attr.rs:11:12
|
||||
--> ui_tests/rhai_mod_bad_attr.rs:11:12
|
||||
|
|
||||
11 | #[rhai_mod(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_bad_attr.rs:24:8
|
||||
--> ui_tests/rhai_mod_bad_attr.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting string literal
|
||||
--> $DIR/rhai_mod_bad_value.rs:11:19
|
||||
--> ui_tests/rhai_mod_bad_value.rs:11:19
|
||||
|
|
||||
11 | #[rhai_mod(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_bad_value.rs:24:8
|
||||
--> ui_tests/rhai_mod_bad_value.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0433]: failed to resolve: could not find `test_mod` in `test_module`
|
||||
--> $DIR/rhai_mod_inner_cfg_false.rs:24:21
|
||||
--> ui_tests/rhai_mod_inner_cfg_false.rs:24:21
|
||||
|
|
||||
24 | if test_module::test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ could not find `test_mod` in `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: expecting identifier
|
||||
--> $DIR/rhai_mod_junk_arg.rs:11:12
|
||||
--> ui_tests/rhai_mod_junk_arg.rs:11:12
|
||||
|
|
||||
11 | #[rhai_mod("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_junk_arg.rs:24:8
|
||||
--> ui_tests/rhai_mod_junk_arg.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: requires value
|
||||
--> $DIR/rhai_mod_missing_value.rs:11:12
|
||||
--> ui_tests/rhai_mod_missing_value.rs:11:12
|
||||
|
|
||||
11 | #[rhai_mod(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_missing_value.rs:24:8
|
||||
--> ui_tests/rhai_mod_missing_value.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,17 +1,19 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: duplicate function 'test_fn'
|
||||
--> $DIR/rhai_mod_name_collisions.rs:16:12
|
||||
--> ui_tests/rhai_mod_name_collisions.rs:16:12
|
||||
|
|
||||
16 | pub fn test_fn(input: Point) -> bool {
|
||||
| ^^^^^^^
|
||||
|
||||
error: duplicated function 'test_fn'
|
||||
--> $DIR/rhai_mod_name_collisions.rs:12:12
|
||||
--> ui_tests/rhai_mod_name_collisions.rs:12:12
|
||||
|
|
||||
12 | pub fn test_fn(input: Point) -> bool {
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_name_collisions.rs:26:8
|
||||
--> ui_tests/rhai_mod_name_collisions.rs:26:8
|
||||
|
|
||||
26 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,10 +1,16 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||
--> ui_tests/rhai_mod_non_clonable_return.rs:12:12
|
||||
|
|
||||
12 | pub fn test_fn(input: f32) -> NonClonable {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^-----------
|
||||
| | |
|
||||
| | required by a bound introduced by this call
|
||||
| the trait `Clone` is not implemented for `NonClonable`
|
||||
|
|
||||
::: $WORKSPACE/src/dynamic.rs
|
||||
note: required by a bound in `rhai::Dynamic::from`
|
||||
--> $WORKSPACE/src/dynamic.rs
|
||||
|
|
||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||
| ----- required by this bound in `rhai::Dynamic::from`
|
||||
| ^^^^^ required by this bound in `rhai::Dynamic::from`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
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
|
||||
|
@ -1,11 +1,13 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: unknown attribute 'return_raw'
|
||||
--> $DIR/rhai_mod_return_raw.rs:11:12
|
||||
--> ui_tests/rhai_mod_return_raw.rs:11:12
|
||||
|
|
||||
11 | #[rhai_mod(return_raw = "yes")]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_return_raw.rs:24:8
|
||||
--> ui_tests/rhai_mod_return_raw.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -1,3 +1,5 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0412]: cannot find type `Pointer` in this scope
|
||||
--> ui_tests/rhai_mod_unknown_type.rs:12:27
|
||||
|
|
||||
@ -10,12 +12,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,5 +1,7 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error[E0412]: cannot find type `boool` in this scope
|
||||
--> $DIR/rhai_mod_unknown_type_return.rs:12:37
|
||||
--> ui_tests/rhai_mod_unknown_type_return.rs:12:37
|
||||
|
|
||||
12 | pub fn test_fn(input: Point) -> boool {
|
||||
| ^^^^^ help: a builtin type with a similar name exists: `bool`
|
||||
|
@ -1,8 +1,10 @@
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
|
||||
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
|
||||
error: function parameters other than the first one cannot be passed by reference
|
||||
--> 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