[INFO] fetching crate glsp-engine 0.2.0... [INFO] testing glsp-engine-0.2.0 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate glsp-engine 0.2.0 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate glsp-engine 0.2.0 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate glsp-engine 0.2.0 [INFO] finished tweaking crates.io crate glsp-engine 0.2.0 [INFO] tweaked toml for crates.io crate glsp-engine 0.2.0 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51774e8f8d7cd57d39269fb82bc42530de81829b341a2c2b530f9b833a86a3bb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "51774e8f8d7cd57d39269fb82bc42530de81829b341a2c2b530f9b833a86a3bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51774e8f8d7cd57d39269fb82bc42530de81829b341a2c2b530f9b833a86a3bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51774e8f8d7cd57d39269fb82bc42530de81829b341a2c2b530f9b833a86a3bb", kill_on_drop: false }` [INFO] [stdout] 51774e8f8d7cd57d39269fb82bc42530de81829b341a2c2b530f9b833a86a3bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2efa8c274a99c973c2dfcf5888b50430712a2e83c7aa7c17543e5e0568fa3fa [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e2efa8c274a99c973c2dfcf5888b50430712a2e83c7aa7c17543e5e0568fa3fa", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling owning_ref v0.4.1 [INFO] [stderr] Compiling glsp-engine v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 47.28s [INFO] running `Command { std: "docker" "inspect" "e2efa8c274a99c973c2dfcf5888b50430712a2e83c7aa7c17543e5e0568fa3fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2efa8c274a99c973c2dfcf5888b50430712a2e83c7aa7c17543e5e0568fa3fa", kill_on_drop: false }` [INFO] [stdout] e2efa8c274a99c973c2dfcf5888b50430712a2e83c7aa7c17543e5e0568fa3fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73a20e84f1a8457e565cce2d976fcfdbdf1c15021083e7a52b9f731351ba3ec7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "73a20e84f1a8457e565cce2d976fcfdbdf1c15021083e7a52b9f731351ba3ec7", kill_on_drop: false }` [INFO] [stderr] Compiling glsp-engine v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 34.23s [INFO] running `Command { std: "docker" "inspect" "73a20e84f1a8457e565cce2d976fcfdbdf1c15021083e7a52b9f731351ba3ec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73a20e84f1a8457e565cce2d976fcfdbdf1c15021083e7a52b9f731351ba3ec7", kill_on_drop: false }` [INFO] [stdout] 73a20e84f1a8457e565cce2d976fcfdbdf1c15021083e7a52b9f731351ba3ec7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4666d5a94429ea2349f655c8efe6e866f29ed3114cdecaa88dc609f5d9566b8d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4666d5a94429ea2349f655c8efe6e866f29ed3114cdecaa88dc609f5d9566b8d", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/glsp_engine-ec5c338db6ea0e81) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests glsp-engine [INFO] [stdout] [INFO] [stdout] running 31 tests [INFO] [stdout] test src/engine.rs - engine::RGlobal (line 847) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::set_epr_writer (line 2965) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::FromVal (line 278) ... FAILED [INFO] [stdout] test src/collections.rs - tab (line 3147) ... FAILED [INFO] [stdout] test src/val.rs - val::Val::a_type_name (line 111) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::seed_gensym (line 2128) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::rfn (line 2714) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::call (line 3992) ... FAILED [INFO] [stdout] test src/engine.rs - engine::RClassBuilder (line 1015) ... FAILED [INFO] [stdout] test src/engine.rs - syms (line 774) ... FAILED [INFO] [stdout] test src/engine.rs - engine::RGlobal (line 864) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::bind_rfn (line 2768) ... FAILED [INFO] [stdout] test src/engine.rs - engine::RRoot (line 1815) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::Rest (line 2115) ... FAILED [INFO] [stdout] test src/engine.rs - engine::ToSym (line 638) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::set_pr_writer (line 2941) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoVal (line 181) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoVal (line 143) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::FromVal (line 263) ... FAILED [INFO] [stdout] test src/gc.rs - gc::Gc (line 688) ... FAILED [INFO] [stdout] test src/error.rs - bail (line 317) ... FAILED [INFO] [stdout] test src/engine.rs - engine::RClassBuilder::trace (line 1221) ... FAILED [INFO] [stdout] test src/error.rs - macro_no_op (line 374) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoVal (line 206) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoVal (line 135) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoVal (line 168) ... FAILED [INFO] [stdout] test src/engine.rs - engine::glsp::bind_rfn_macro (line 2792) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::FromVal (line 256) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::Rest (line 2085) ... FAILED [INFO] [stdout] test src/wrap.rs - wrap::IntoCallArgs (line 2947) ... FAILED [INFO] [stdout] test src/error.rs - error::GError::with_source (line 157) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/engine.rs - engine::RGlobal (line 847) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `RGlobal` in this scope [INFO] [stdout] --> src/engine.rs:848:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl RGlobal for MyType { } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RGlobal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/engine.rs:848:18 [INFO] [stdout] | [INFO] [stdout] 3 | impl RGlobal for MyType { } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::set_epr_writer (line 2965) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2967:1 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::set_pr_writer(Box::new(std::io::sink())); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::FromVal (line 278) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 17 | glsp::bind_rfn("describe-rgb", &describe_rgb)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FromVal` in this scope [INFO] [stdout] --> src/wrap.rs:281:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl FromVal for Rgb { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::FromVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Val` in this scope [INFO] [stdout] --> src/wrap.rs:282:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn from_val(val: &Val) -> GResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/wrap.rs:282:28 [INFO] [stdout] | [INFO] [stdout] 6 | fn from_val(val: &Val) -> GResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 | fn from_val(val: &Val) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collections.rs - tab (line 3147) stdout ---- [INFO] [stdout] error: cannot find macro `tab` in this scope [INFO] [stdout] --> src/collections.rs:3153:13 [INFO] [stdout] | [INFO] [stdout] 8 | let table = tab! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::tab [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tab` in this scope [INFO] [stdout] --> src/collections.rs:3148:16 [INFO] [stdout] | [INFO] [stdout] 3 | let original = tab! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::tab [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/val.rs - val::Val::a_type_name (line 111) stdout ---- [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> src/val.rs:114:7 [INFO] [stdout] | [INFO] [stdout] 5 | _ => bail!("expected an int, received {}", val.a_type_name()) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::bail [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Val` [INFO] [stdout] --> src/val.rs:113:2 [INFO] [stdout] | [INFO] [stdout] 4 | Val::Int(_) => (), [INFO] [stdout] | ^^^ use of undeclared type `Val` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `val` in this scope [INFO] [stdout] --> src/val.rs:112:7 [INFO] [stdout] | [INFO] [stdout] 3 | match val { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::seed_gensym (line 2128) stdout ---- [INFO] [stdout] error: cannot find macro `prn` in this scope [INFO] [stdout] --> src/engine.rs:2131:1 [INFO] [stdout] | [INFO] [stdout] 5 | prn!("{}", glsp::gensym()); //prints # [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::prn [INFO] [stdout] [INFO] [stdout] error: cannot find macro `prn` in this scope [INFO] [stdout] --> src/engine.rs:2129:1 [INFO] [stdout] | [INFO] [stdout] 3 | prn!("{}", glsp::gensym()); //prints # [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::prn [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2130:1 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::seed_gensym(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::rfn (line 2714) stdout ---- [INFO] [stdout] error: cannot find macro `arr` in this scope [INFO] [stdout] --> src/engine.rs:2723:15 [INFO] [stdout] | [INFO] [stdout] 11 | let capture = arr![1, 2, 3]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::arr [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2717:1 [INFO] [stdout] | [INFO] [stdout] 5 | glsp::rfn(example); //type inference error [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2718:1 [INFO] [stdout] | [INFO] [stdout] 6 | glsp::rfn(&example); //success [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2720:1 [INFO] [stdout] | [INFO] [stdout] 8 | glsp::rfn(|i: i32| i); //type inference error [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2721:1 [INFO] [stdout] | [INFO] [stdout] 9 | glsp::rfn(&|i: i32| i); //success [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2724:1 [INFO] [stdout] | [INFO] [stdout] 12 | glsp::rfn(move || capture.shallow_clone()); //type inference error [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2725:1 [INFO] [stdout] | [INFO] [stdout] 13 | glsp::rfn(Box::new(move || capture.shallow_clone())); //success [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::call (line 3992) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:3993:23 [INFO] [stdout] | [INFO] [stdout] 3 | let rect: Root = glsp::call(&rect_class, &[10, 10, 50, 50])?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Root` in this scope [INFO] [stdout] --> src/engine.rs:3993:11 [INFO] [stdout] | [INFO] [stdout] 3 | let rect: Root = glsp::call(&rect_class, &[10, 10, 50, 50])?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Root; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Obj` in this scope [INFO] [stdout] --> src/engine.rs:3993:16 [INFO] [stdout] | [INFO] [stdout] 3 | let rect: Root = glsp::call(&rect_class, &[10, 10, 50, 50])?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Obj; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rect_class` in this scope [INFO] [stdout] --> src/engine.rs:3993:35 [INFO] [stdout] | [INFO] [stdout] 3 | let rect: Root = glsp::call(&rect_class, &[10, 10, 50, 50])?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:3993:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_3992_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let rect: Root = glsp::call(&rect_class, &[10, 10, 50, 50])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_engine_rs_3992_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::RClassBuilder (line 1015) stdout ---- [INFO] [stdout] error: cannot find macro `eval` in this scope [INFO] [stdout] --> src/engine.rs:1029:1 [INFO] [stdout] | [INFO] [stdout] 16 | eval!(" [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Image` [INFO] [stdout] --> src/engine.rs:1018:22 [INFO] [stdout] | [INFO] [stdout] 5 | .prop_get("width", &Image::width) [INFO] [stdout] | ^^^^^ use of undeclared type `Image` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Image` [INFO] [stdout] --> src/engine.rs:1019:23 [INFO] [stdout] | [INFO] [stdout] 6 | .prop_get("height", &Image::height) [INFO] [stdout] | ^^^^^ use of undeclared type `Image` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DrawParam` [INFO] [stdout] --> src/engine.rs:1021:19 [INFO] [stdout] | [INFO] [stdout] 8 | image.draw(ctx, DrawParam::default()) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `DrawParam` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:1027:1 [INFO] [stdout] | [INFO] [stdout] 14 | glsp::bind_global("boulder", Image::new(ctx, "boulder.png")?)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Image` [INFO] [stdout] --> src/engine.rs:1027:30 [INFO] [stdout] | [INFO] [stdout] 14 | glsp::bind_global("boulder", Image::new(ctx, "boulder.png")?)?; [INFO] [stdout] | ^^^^^ use of undeclared type `Image` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RClassBuilder` [INFO] [stdout] --> src/engine.rs:1017:1 [INFO] [stdout] | [INFO] [stdout] 4 | RClassBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use glsp_engine::RClassBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Image` in this scope [INFO] [stdout] --> src/engine.rs:1017:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1015_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 4 | RClassBuilder::::new() [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Image` in this scope [INFO] [stdout] --> src/engine.rs:1020:25 [INFO] [stdout] | [INFO] [stdout] 7 | .met("draw", &|image: &Image, ctx: &mut Context| { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/engine.rs:1020:42 [INFO] [stdout] | [INFO] [stdout] 7 | .met("draw", &|image: &Image, ctx: &mut Context| { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ctx` in this scope [INFO] [stdout] --> src/engine.rs:1027:41 [INFO] [stdout] | [INFO] [stdout] 14 | glsp::bind_global("boulder", Image::new(ctx, "boulder.png")?)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:1027:60 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1015_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | RClassBuilder::::new() [INFO] [stdout] 5 | | .prop_get("width", &Image::width) [INFO] [stdout] 6 | | .prop_get("height", &Image::height) [INFO] [stdout] ... | [INFO] [stdout] 14 | | glsp::bind_global("boulder", Image::new(ctx, "boulder.png")?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 19 | | ")?; [INFO] [stdout] 20 | | } _doctest_main_src_engine_rs_1015_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:1027:62 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1015_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | RClassBuilder::::new() [INFO] [stdout] 5 | | .prop_get("width", &Image::width) [INFO] [stdout] 6 | | .prop_get("height", &Image::height) [INFO] [stdout] ... | [INFO] [stdout] 14 | | glsp::bind_global("boulder", Image::new(ctx, "boulder.png")?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 19 | | ")?; [INFO] [stdout] 20 | | } _doctest_main_src_engine_rs_1015_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:1032:3 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1015_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | RClassBuilder::::new() [INFO] [stdout] 5 | | .prop_get("width", &Image::width) [INFO] [stdout] 6 | | .prop_get("height", &Image::height) [INFO] [stdout] ... | [INFO] [stdout] 19 | | ")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 20 | | } _doctest_main_src_engine_rs_1015_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - syms (line 774) stdout ---- [INFO] [stdout] error: cannot find macro `syms` in this scope [INFO] [stdout] --> src/engine.rs:775:1 [INFO] [stdout] | [INFO] [stdout] 3 | syms! { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::syms [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::RGlobal (line 864) stdout ---- [INFO] [stdout] error: cannot find macro `eval` in this scope [INFO] [stdout] --> src/engine.rs:888:2 [INFO] [stdout] | [INFO] [stdout] 26 | eval!( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:882:2 [INFO] [stdout] | [INFO] [stdout] 20 | glsp::add_rglobal(Graphics::new())?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:885:2 [INFO] [stdout] | [INFO] [stdout] 23 | glsp::bind_rfn("draw-rect", &Graphics::draw_rect)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `RGlobal` in this scope [INFO] [stdout] --> src/engine.rs:869:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl RGlobal for Graphics { } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RGlobal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/engine.rs:872:67 [INFO] [stdout] | [INFO] [stdout] 10 | fn draw_rect(&self, x: f32, y: f32, w: f32, h: f32, rgb: u32) -> GResult<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 | fn draw_rect(&self, x: f32, y: f32, w: f32, h: f32, rgb: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::bind_rfn (line 2768) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/engine.rs:2769:25 [INFO] [stdout] | [INFO] [stdout] 3 | let sym = name.to_sym()? [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2770:11 [INFO] [stdout] | [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2771:1 [INFO] [stdout] | [INFO] [stdout] 5 | glsp::bind_global(sym, rfn) [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `name` in this scope [INFO] [stdout] --> src/engine.rs:2769:11 [INFO] [stdout] | [INFO] [stdout] 3 | let sym = name.to_sym()? [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> src/engine.rs:2770:33 [INFO] [stdout] | [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:2769:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_2768_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sym = name.to_sym()? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] 5 | | glsp::bind_global(sym, rfn) [INFO] [stdout] 6 | | } _doctest_main_src_engine_rs_2768_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::RRoot (line 1815) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `player_mesh` in this scope [INFO] [stdout] --> src/engine.rs:1817:12 [INFO] [stdout] | [INFO] [stdout] 4 | let mesh = player_mesh.borrow::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mesh` in this scope [INFO] [stdout] --> src/engine.rs:1817:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1815_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 4 | let mesh = player_mesh.borrow::(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enemy_mesh` in this scope [INFO] [stdout] --> src/engine.rs:1818:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mesh2 = enemy_mesh.take::(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mesh` in this scope [INFO] [stdout] --> src/engine.rs:1818:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_1815_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 4 | let mesh = player_mesh.borrow::(); [INFO] [stdout] 5 | let mesh2 = enemy_mesh.take::(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `player_mesh` in this scope [INFO] [stdout] --> src/engine.rs:1821:12 [INFO] [stdout] | [INFO] [stdout] 8 | let mesh = player_mesh.borrow(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enemy_mesh` in this scope [INFO] [stdout] --> src/engine.rs:1822:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mesh2 = enemy_mesh.take(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::Rest (line 2115) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:2120:1 [INFO] [stdout] | [INFO] [stdout] 7 | glsp::bind_rfn("add_integers", &|first: i32, rest: Rest| -> i32 { [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rest` in this scope [INFO] [stdout] --> src/wrap.rs:2120:52 [INFO] [stdout] | [INFO] [stdout] 7 | glsp::bind_rfn("add_integers", &|first: i32, rest: Rest| -> i32 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Rest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:2122:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_2115_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | fn add_integers(first: i32, rest: &[i32]) -> i32 { [INFO] [stdout] 4 | | rest.iter().fold(first, |a, b| a + *b) [INFO] [stdout] 5 | | } [INFO] [stdout] ... | [INFO] [stdout] 9 | | })?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_wrap_rs_2115_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::ToSym (line 638) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:639:1 [INFO] [stdout] | [INFO] [stdout] 3 | glsp::global(my_rglobalrary.my_sym)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:640:1 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::global("sym-name")?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_rglobalrary` in this scope [INFO] [stdout] --> src/engine.rs:639:14 [INFO] [stdout] | [INFO] [stdout] 3 | glsp::global(my_rglobalrary.my_sym)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:639:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_638_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | glsp::global(my_rglobalrary.my_sym)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | glsp::global("sym-name")?; [INFO] [stdout] 5 | | } _doctest_main_src_engine_rs_638_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:640:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_638_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | glsp::global(my_rglobalrary.my_sym)?; [INFO] [stdout] 4 | | glsp::global("sym-name")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_engine_rs_638_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::set_pr_writer (line 2941) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2943:1 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::set_pr_writer(Box::new(std::io::sink())); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoVal (line 181) stdout ---- [INFO] [stdout] error: cannot find macro `arr` in this scope [INFO] [stdout] --> src/wrap.rs:187:3 [INFO] [stdout] | [INFO] [stdout] 8 | arr![r, g, b].into_val() [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::arr [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:195:1 [INFO] [stdout] | [INFO] [stdout] 16 | glsp::bind_rfn("light-sea-green", &light_sea_green)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoVal` in this scope [INFO] [stdout] --> src/wrap.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl IntoVal for Rgb { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::IntoVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/wrap.rs:185:23 [INFO] [stdout] | [INFO] [stdout] 6 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 | fn into_val(self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Val` in this scope [INFO] [stdout] --> src/wrap.rs:185:31 [INFO] [stdout] | [INFO] [stdout] 6 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoVal (line 143) stdout ---- [INFO] [stdout] error[E0599]: no method named `pow` found for type `f64` in the current scope [INFO] [stdout] --> src/wrap.rs:144:25 [INFO] [stdout] | [INFO] [stdout] 3 | let thousand = 10.0_f64.pow(3.0).into_val()?; [INFO] [stdout] | ^^^ help: there is an associated function with a similar name: `powf` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:144:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_143_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let thousand = 10.0_f64.pow(3.0).into_val()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_wrap_rs_143_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::FromVal (line 263) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `val` in this scope [INFO] [stdout] --> src/wrap.rs:264:23 [INFO] [stdout] | [INFO] [stdout] 3 | let f = f64::from_val(val)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_val` found for type `f64` in the current scope [INFO] [stdout] --> src/wrap.rs:264:14 [INFO] [stdout] | [INFO] [stdout] 3 | let f = f64::from_val(val)?; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::FromVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:264:27 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_263_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let f = f64::from_val(val)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_wrap_rs_263_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/gc.rs - gc::Gc (line 688) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/gc.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(glsp::rdata(collider)) [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rect` in this scope [INFO] [stdout] --> src/gc.rs:690:10 [INFO] [stdout] | [INFO] [stdout] 4 | bounds: Rect, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gc` in this scope [INFO] [stdout] --> src/gc.rs:691:7 [INFO] [stdout] | [INFO] [stdout] 5 | obj: Gc [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Gc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Obj` in this scope [INFO] [stdout] --> src/gc.rs:691:10 [INFO] [stdout] | [INFO] [stdout] 5 | obj: Gc [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Obj; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GcVisitor` in this scope [INFO] [stdout] --> src/gc.rs:695:32 [INFO] [stdout] | [INFO] [stdout] 9 | fn trace(&self, visitor: &mut GcVisitor) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GcVisitor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RClassBuilder` [INFO] [stdout] --> src/gc.rs:701:2 [INFO] [stdout] | [INFO] [stdout] 15 | RClassBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RClassBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Root` in this scope [INFO] [stdout] --> src/gc.rs:706:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> GResult> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Root; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Obj` in this scope [INFO] [stdout] --> src/gc.rs:706:27 [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> GResult> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Obj; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/gc.rs:706:36 [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> GResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Root` in this scope [INFO] [stdout] --> src/gc.rs:706:44 [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> GResult> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Root; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RData` in this scope [INFO] [stdout] --> src/gc.rs:706:49 [INFO] [stdout] | [INFO] [stdout] 20 | fn new_collider(obj: Root) -> GResult> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error.rs - bail (line 317) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GError` [INFO] [stdout] --> src/error.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 3 | return Err(GError::from_val(x)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/error.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 3 | return Err(GError::from_val(x)) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/error.rs:318:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_error_rs_317_0() { [INFO] [stdout] | - help: try adding a return type: `-> Result<_, _>` [INFO] [stdout] 3 | return Err(GError::from_val(x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::RClassBuilder::trace (line 1221) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:1235:3 [INFO] [stdout] | [INFO] [stdout] 16 | glsp::write_barrier(self); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RGc` in this scope [INFO] [stdout] --> src/engine.rs:1223:13 [INFO] [stdout] | [INFO] [stdout] 4 | units: Vec> [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RGc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unit` in this scope [INFO] [stdout] --> src/engine.rs:1223:17 [INFO] [stdout] | [INFO] [stdout] 3 | struct UnitList { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 4 | units: Vec> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GcVisitor` in this scope [INFO] [stdout] --> src/engine.rs:1227:32 [INFO] [stdout] | [INFO] [stdout] 8 | fn trace(&self, visitor: &mut GcVisitor) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GcVisitor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RRoot` in this scope [INFO] [stdout] --> src/engine.rs:1233:31 [INFO] [stdout] | [INFO] [stdout] 14 | fn add_unit(&mut self, unit: RRoot) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RRoot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unit` in this scope [INFO] [stdout] --> src/engine.rs:1233:37 [INFO] [stdout] | [INFO] [stdout] 7 | impl UnitList { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 14 | fn add_unit(&mut self, unit: RRoot) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RClassBuilder` [INFO] [stdout] --> src/engine.rs:1239:1 [INFO] [stdout] | [INFO] [stdout] 20 | RClassBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RClassBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error.rs - macro_no_op (line 374) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GError` [INFO] [stdout] --> src/error.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 3 | return Err(GError::macro_no_op()) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/error.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_error_rs_374_0() { [INFO] [stdout] | - help: try adding a return type: `-> Result<_, _>` [INFO] [stdout] 3 | return Err(GError::macro_no_op()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoVal (line 206) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `IntoVal` in this scope [INFO] [stdout] --> src/wrap.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl<'a> IntoVal for &'a MyType { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::IntoVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/wrap.rs:207:26 [INFO] [stdout] | [INFO] [stdout] 3 | impl<'a> IntoVal for &'a MyType { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/wrap.rs:208:23 [INFO] [stdout] | [INFO] [stdout] 4 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | fn into_val(self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Val` in this scope [INFO] [stdout] --> src/wrap.rs:208:31 [INFO] [stdout] | [INFO] [stdout] 4 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoVal` in this scope [INFO] [stdout] --> src/wrap.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> IntoVal for &'a mut MyType { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::IntoVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/wrap.rs:213:30 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> IntoVal for &'a mut MyType { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/wrap.rs:214:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 | fn into_val(self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Val` in this scope [INFO] [stdout] --> src/wrap.rs:214:31 [INFO] [stdout] | [INFO] [stdout] 10 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/wrap.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 11 | (self as &MyType).into_val() [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoVal` in this scope [INFO] [stdout] --> src/wrap.rs:219:6 [INFO] [stdout] | [INFO] [stdout] 15 | impl IntoVal for MyType { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::IntoVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/wrap.rs:219:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl IntoVal for MyType { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GResult` in this scope [INFO] [stdout] --> src/wrap.rs:220:23 [INFO] [stdout] | [INFO] [stdout] 16 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 16 | fn into_val(self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::GResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Val` in this scope [INFO] [stdout] --> src/wrap.rs:220:31 [INFO] [stdout] | [INFO] [stdout] 16 | fn into_val(self) -> GResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoVal (line 135) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 3 | glsp::set_global("numbers", (0, 1, 2, 3, 4))?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `arr` in this scope [INFO] [stdout] --> src/wrap.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 4 | arr.push("an example string")?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a tuple variant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | Err.push("an example string")?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::arr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:136:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_135_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | glsp::set_global("numbers", (0, 1, 2, 3, 4))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | arr.push("an example string")?; [INFO] [stdout] 5 | | } _doctest_main_src_wrap_rs_135_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:137:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_135_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | glsp::set_global("numbers", (0, 1, 2, 3, 4))?; [INFO] [stdout] 4 | | arr.push("an example string")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_wrap_rs_135_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoVal (line 168) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/wrap.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 3 | File::open("my_file.png").into_val()? [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:169:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_168_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | File::open("my_file.png").into_val()? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_wrap_rs_168_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::glsp::bind_rfn_macro (line 2792) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/engine.rs:2793:25 [INFO] [stdout] | [INFO] [stdout] 3 | let sym = name.to_sym()? [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2794:11 [INFO] [stdout] | [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/engine.rs:2795:1 [INFO] [stdout] | [INFO] [stdout] 5 | glsp::bind_macro(sym, Expander::RFn(rfn)) [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `name` in this scope [INFO] [stdout] --> src/engine.rs:2793:11 [INFO] [stdout] | [INFO] [stdout] 3 | let sym = name.to_sym()? [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> src/engine.rs:2794:33 [INFO] [stdout] | [INFO] [stdout] 4 | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Expander` [INFO] [stdout] --> src/engine.rs:2795:23 [INFO] [stdout] | [INFO] [stdout] 5 | glsp::bind_macro(sym, Expander::RFn(rfn)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Expander; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/engine.rs:2793:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_2792_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sym = name.to_sym()? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let rfn = glsp::named_rfn(sym, &f); [INFO] [stdout] 5 | | glsp::bind_macro(sym, Expander::RFn(rfn)) [INFO] [stdout] 6 | | } _doctest_main_src_engine_rs_2792_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::FromVal (line 256) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:257:24 [INFO] [stdout] | [INFO] [stdout] 3 | let numbers: Vec = glsp::global("numbers")?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Root` in this scope [INFO] [stdout] --> src/wrap.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 4 | let text: Root = arr.pop()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Root; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Str` in this scope [INFO] [stdout] --> src/wrap.rs:258:16 [INFO] [stdout] | [INFO] [stdout] 4 | let text: Root = arr.pop()?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | let text: Root = arr.pop()?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::Str; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `arr` in this scope [INFO] [stdout] --> src/wrap.rs:258:23 [INFO] [stdout] | [INFO] [stdout] 4 | let text: Root = arr.pop()?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a tuple variant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | let text: Root = Err.pop()?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::arr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:257:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_256_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let numbers: Vec = glsp::global("numbers")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let text: Root = arr.pop()?; [INFO] [stdout] 5 | | } _doctest_main_src_wrap_rs_256_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:258:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_256_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let numbers: Vec = glsp::global("numbers")?; [INFO] [stdout] 4 | | let text: Root = arr.pop()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_wrap_rs_256_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::Rest (line 2085) stdout ---- [INFO] [stdout] error: cannot find macro `eval` in this scope [INFO] [stdout] --> src/wrap.rs:2100:1 [INFO] [stdout] | [INFO] [stdout] 17 | eval!(" [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:2097:1 [INFO] [stdout] | [INFO] [stdout] 14 | glsp::bind_rfn("add-integers", &add_integers)?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rest` in this scope [INFO] [stdout] --> src/wrap.rs:2087:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn add_integers(first: i32, rest: Rest) -> i32 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use glsp_engine::Rest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rest` [INFO] [stdout] --> src/wrap.rs:2106:1 [INFO] [stdout] | [INFO] [stdout] 23 | Rest::with([20, 30, 40, 50].iter().copied(), |rest| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use glsp_engine::Rest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:2097:46 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_2085_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | fn add_integers(first: i32, rest: Rest) -> i32 { [INFO] [stdout] 5 | | let mut accumulator = first; [INFO] [stdout] 6 | | for integer in rest { [INFO] [stdout] ... | [INFO] [stdout] 14 | | glsp::bind_rfn("add-integers", &add_integers)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 25 | | }); [INFO] [stdout] 26 | | } _doctest_main_src_wrap_rs_2085_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:2103:3 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_2085_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | fn add_integers(first: i32, rest: Rest) -> i32 { [INFO] [stdout] 5 | | let mut accumulator = first; [INFO] [stdout] 6 | | for integer in rest { [INFO] [stdout] ... | [INFO] [stdout] 20 | | ")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 25 | | }); [INFO] [stdout] 26 | | } _doctest_main_src_wrap_rs_2085_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/wrap.rs - wrap::IntoCallArgs (line 2947) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:2948:21 [INFO] [stdout] | [INFO] [stdout] 3 | let push_rfn: RFn = glsp::global("push!"); [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `glsp` [INFO] [stdout] --> src/wrap.rs:2949:1 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::call(&push_rfn, (my_arr, 100i32))?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `glsp` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RFn` in this scope [INFO] [stdout] --> src/wrap.rs:2948:15 [INFO] [stdout] | [INFO] [stdout] 3 | let push_rfn: RFn = glsp::global("push!"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | let push_rfn: Fn = glsp::global("push!"); [INFO] [stdout] | ^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use glsp_engine::RFn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_arr` in this scope [INFO] [stdout] --> src/wrap.rs:2949:24 [INFO] [stdout] | [INFO] [stdout] 4 | glsp::call(&push_rfn, (my_arr, 100i32))?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/wrap.rs:2949:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wrap_rs_2947_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let push_rfn: RFn = glsp::global("push!"); [INFO] [stdout] 4 | | glsp::call(&push_rfn, (my_arr, 100i32))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_wrap_rs_2947_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error.rs - error::GError::with_source (line 157) stdout ---- [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/error.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 6 | return Err(error!("failed to open words.txt").with_source(fs_err)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] glsp_engine::error [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/error.rs:158:19 [INFO] [stdout] | [INFO] [stdout] 3 | let words = match fs::read_to_string("words.txt") { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/error.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 6 | return Err(error!("failed to open words.txt").with_source(fs_err)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/collections.rs - tab (line 3147) [INFO] [stdout] src/engine.rs - engine::RClassBuilder (line 1015) [INFO] [stdout] src/engine.rs - engine::RClassBuilder::trace (line 1221) [INFO] [stdout] src/engine.rs - engine::RGlobal (line 847) [INFO] [stdout] src/engine.rs - engine::RGlobal (line 864) [INFO] [stdout] src/engine.rs - engine::RRoot (line 1815) [INFO] [stdout] src/engine.rs - engine::ToSym (line 638) [INFO] [stdout] src/engine.rs - engine::glsp::bind_rfn (line 2768) [INFO] [stdout] src/engine.rs - engine::glsp::bind_rfn_macro (line 2792) [INFO] [stdout] src/engine.rs - engine::glsp::call (line 3992) [INFO] [stdout] src/engine.rs - engine::glsp::rfn (line 2714) [INFO] [stdout] src/engine.rs - engine::glsp::seed_gensym (line 2128) [INFO] [stdout] src/engine.rs - engine::glsp::set_epr_writer (line 2965) [INFO] [stdout] src/engine.rs - engine::glsp::set_pr_writer (line 2941) [INFO] [stdout] src/engine.rs - syms (line 774) [INFO] [stdout] src/error.rs - bail (line 317) [INFO] [stdout] src/error.rs - error::GError::with_source (line 157) [INFO] [stdout] src/error.rs - macro_no_op (line 374) [INFO] [stdout] src/gc.rs - gc::Gc (line 688) [INFO] [stdout] src/val.rs - val::Val::a_type_name (line 111) [INFO] [stdout] src/wrap.rs - wrap::FromVal (line 256) [INFO] [stdout] src/wrap.rs - wrap::FromVal (line 263) [INFO] [stdout] src/wrap.rs - wrap::FromVal (line 278) [INFO] [stdout] src/wrap.rs - wrap::IntoCallArgs (line 2947) [INFO] [stdout] src/wrap.rs - wrap::IntoVal (line 135) [INFO] [stdout] src/wrap.rs - wrap::IntoVal (line 143) [INFO] [stdout] src/wrap.rs - wrap::IntoVal (line 168) [INFO] [stdout] src/wrap.rs - wrap::IntoVal (line 181) [INFO] [stdout] src/wrap.rs - wrap::IntoVal (line 206) [INFO] [stdout] src/wrap.rs - wrap::Rest (line 2085) [INFO] [stdout] src/wrap.rs - wrap::Rest (line 2115) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 31 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "4666d5a94429ea2349f655c8efe6e866f29ed3114cdecaa88dc609f5d9566b8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4666d5a94429ea2349f655c8efe6e866f29ed3114cdecaa88dc609f5d9566b8d", kill_on_drop: false }` [INFO] [stdout] 4666d5a94429ea2349f655c8efe6e866f29ed3114cdecaa88dc609f5d9566b8d