[INFO] cloning repository https://github.com/projekt-utopia/uCore [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/projekt-utopia/uCore" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprojekt-utopia%2FuCore", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprojekt-utopia%2FuCore'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58dacd8875c4262ffca3366a04f1f090047a9712 [INFO] testing projekt-utopia/uCore against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprojekt-utopia%2FuCore" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/projekt-utopia/uCore on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/projekt-utopia/uCore [INFO] finished tweaking git repo https://github.com/projekt-utopia/uCore [INFO] tweaked toml for git repo https://github.com/projekt-utopia/uCore written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/projekt-utopia/uCore already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9c6289930f906bb0cdc071b62e38bc7d83a0eeee22ab195cb51a661860ab8d71 [INFO] running `Command { std: "docker" "start" "-a" "9c6289930f906bb0cdc071b62e38bc7d83a0eeee22ab195cb51a661860ab8d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c6289930f906bb0cdc071b62e38bc7d83a0eeee22ab195cb51a661860ab8d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c6289930f906bb0cdc071b62e38bc7d83a0eeee22ab195cb51a661860ab8d71", kill_on_drop: false }` [INFO] [stdout] 9c6289930f906bb0cdc071b62e38bc7d83a0eeee22ab195cb51a661860ab8d71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ff6a9bfe8e7fb40e5ad172d3ff9ca88e09a62157336383f050e437384f8ef52a [INFO] running `Command { std: "docker" "start" "-a" "ff6a9bfe8e7fb40e5ad172d3ff9ca88e09a62157336383f050e437384f8ef52a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling libc v0.2.99 [INFO] [stderr] Compiling futures-channel v0.3.16 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling unicode-bidi v0.3.6 [INFO] [stderr] Compiling anyhow v1.0.43 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling tokio v1.10.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling futures-macro v0.3.16 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling futures-util v0.3.16 [INFO] [stderr] Compiling futures-executor v0.3.16 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling futures v0.3.16 [INFO] [stderr] Compiling combine v4.6.0 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling utopia-common v0.1.0 (/opt/rustwide/workdir/utopia-common) [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling redis v0.21.0 [INFO] [stderr] Compiling utopia-module v0.1.0 (/opt/rustwide/workdir/utopia-module) [INFO] [stderr] Compiling utopia-core v0.0.1 (/opt/rustwide/workdir/utopia-core) [INFO] [stdout] warning: field is never read: `database` [INFO] [stdout] --> utopia-core/src/eventloop.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | database: redis::Client [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 48s [INFO] running `Command { std: "docker" "inspect" "ff6a9bfe8e7fb40e5ad172d3ff9ca88e09a62157336383f050e437384f8ef52a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff6a9bfe8e7fb40e5ad172d3ff9ca88e09a62157336383f050e437384f8ef52a", kill_on_drop: false }` [INFO] [stdout] ff6a9bfe8e7fb40e5ad172d3ff9ca88e09a62157336383f050e437384f8ef52a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a851633a442a55f4a2553561401b491c3ff48dd5cef8669eaab9294d452e852 [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" "2a851633a442a55f4a2553561401b491c3ff48dd5cef8669eaab9294d452e852", kill_on_drop: false }` [INFO] [stderr] Compiling utopia-common v0.1.0 (/opt/rustwide/workdir/utopia-common) [INFO] [stderr] Compiling utopia-module v0.1.0 (/opt/rustwide/workdir/utopia-module) [INFO] [stderr] Compiling utopia-core v0.0.1 (/opt/rustwide/workdir/utopia-core) [INFO] [stdout] warning: field is never read: `database` [INFO] [stdout] --> utopia-core/src/eventloop.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | database: redis::Client [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.32s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/utopia_common-0052de0a1b271cd1) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/utopia_core-101bb17a7f201343) [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/utopia_module-0ffd19d430a407df) [INFO] running `Command { std: "docker" "inspect" "2a851633a442a55f4a2553561401b491c3ff48dd5cef8669eaab9294d452e852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a851633a442a55f4a2553561401b491c3ff48dd5cef8669eaab9294d452e852", kill_on_drop: false }` [INFO] [stdout] 2a851633a442a55f4a2553561401b491c3ff48dd5cef8669eaab9294d452e852 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bf8fccfe7891f282380918f6d6661a26e3fe4cef462cdcc62d75e345fdea82b0 [INFO] running `Command { std: "docker" "start" "-a" "bf8fccfe7891f282380918f6d6661a26e3fe4cef462cdcc62d75e345fdea82b0", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `database` [INFO] [stderr] --> utopia-core/src/eventloop.rs:16:2 [INFO] [stderr] | [INFO] [stderr] 16 | database: redis::Client [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `utopia-core` (bin "utopia-core" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/utopia_common-0052de0a1b271cd1) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/utopia_core-101bb17a7f201343) [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/utopia_module-0ffd19d430a407df) [INFO] [stdout] [INFO] [stdout] running 0 tests [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] [stdout] [INFO] [stdout] running 0 tests [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] [stdout] [INFO] [stdout] running 0 tests [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 utopia-common [INFO] [stdout] [INFO] [stdout] running 0 tests [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 utopia-module [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - UDb (line 166) ... FAILED [INFO] [stdout] test src/lib.rs - declare_module (line 289) ... FAILED [INFO] [stdout] test src/lib.rs - USend (line 106) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - URecv (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - spawn_async_runtime (line 258) ... FAILED [INFO] [stdout] test src/lib.rs - (line 43) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - UDb (line 166) stdout ---- [INFO] [stdout] error: expected `;`, found `println` [INFO] [stdout] --> src/lib.rs:176:2 [INFO] [stdout] | [INFO] [stdout] 13 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 14 | println!("Value received from database operation: {}", val); [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 7 | let adbc: &UDb = &self.database.assume_init_ref(); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:174:38 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 11 | let key = format!("{}:some_db_key", self.id()); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [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/lib.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use std::ops::DerefMut; [INFO] [stdout] 5 | | use utopia_module::{UDb, redis::{Commands, Connection}}; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 12 | | adbc.write()?.get(&key)? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } _doctest_main_src_lib_rs_166_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] [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/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use std::ops::DerefMut; [INFO] [stdout] 5 | | use utopia_module::{UDb, redis::{Commands, Connection}}; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 12 | | adbc.write()?.get(&key)? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } _doctest_main_src_lib_rs_166_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] [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/lib.rs:181:36 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use std::ops::DerefMut; [INFO] [stdout] 5 | | use utopia_module::{UDb, redis::{Commands, Connection}}; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 18 | | let db: &Connection = adbc.write()?.deref_mut(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 19 | | // do something complex with db, like redis::transaction or redis::pipe [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } _doctest_main_src_lib_rs_166_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] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0424. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - declare_module (line 289) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:296:2 [INFO] [stdout] | [INFO] [stdout] 9 | impl Module for SampleMod { [INFO] [stdout] | - item list starts here [INFO] [stdout] 10 | [ ..snip.. ] [INFO] [stdout] | ^ non-item starts here [INFO] [stdout] 11 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `id`, `get_module_info`, `thread` [INFO] [stdout] --> src/lib.rs:295:1 [INFO] [stdout] | [INFO] [stdout] 9 | impl Module for SampleMod { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `id`, `get_module_info`, `thread` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn id(&self) -> &'static str { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn get_module_info(&self) -> ModuleInfo { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn thread(&self, _: UnboundedSender<(&'static str, ModuleCommands)>, _: UnboundedReceiver) -> (&'static str, Result>) { todo!() }` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - USend (line 106) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/lib.rs:108:45 [INFO] [stdout] | [INFO] [stdout] 4 | let r = mod_send.unbounded_send((self.id(), module::ModuleCommands::Refresh)); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `module` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USend` in this scope [INFO] [stdout] --> src/lib.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mod_send: USend = mod_send; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | let mod_send: Send = mod_send; [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use utopia_module::USend; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mod_send` in this scope [INFO] [stdout] --> src/lib.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 3 | let mod_send: USend = mod_send; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_106_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 3 | let mod_send: USend = mod_send; [INFO] [stdout] 4 | let r = mod_send.unbounded_send((self.id(), module::ModuleCommands::Refresh)); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0424, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error: expected identifier, found `[` [INFO] [stdout] --> src/lib.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 7 | let item = LibraryItem { [INFO] [stdout] | ----------- while parsing this struct [INFO] [stdout] 8 | [ ..snip.. ] [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mod_send` in this scope [INFO] [stdout] --> src/lib.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 11 | let mod_send: USend = mod_send; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ----------------------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 12 | mod_send.unbounded_send((self.id(), module::ModuleCommands::AddLibraryItem(item)))?; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/lib.rs:36:45 [INFO] [stdout] | [INFO] [stdout] 12 | mod_send.unbounded_send((self.id(), module::ModuleCommands::AddLibraryItem(item)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `module` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use utopia_common::module::ModuleCommands; [INFO] [stdout] | [INFO] [stdout] 2 | use utopia_module::module::ModuleCommands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `details`, `kind`, `name` and 2 other fields in initializer of `LibraryItem` [INFO] [stdout] --> src/lib.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 7 | let item = LibraryItem { [INFO] [stdout] | ^^^^^^^^^^^ missing `details`, `kind`, `name` and 2 other fields [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/lib.rs:36:83 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use utopia_module::{module::LibraryItem, USend}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // define a new library item [INFO] [stdout] ... | [INFO] [stdout] 12 | | mod_send.unbounded_send((self.id(), module::ModuleCommands::AddLibraryItem(item)))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_lib_rs_27_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] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0277, E0424, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - URecv (line 123) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 10 | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: use a comma to end a `match` arm expression: `,` [INFO] [stdout] | | | [INFO] [stdout] | | this statement is not surrounded by a body [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 11 | None => bail!("Channel to core died"); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: use a comma to end a `match` arm expression: `,` [INFO] [stdout] | | | [INFO] [stdout] | | this statement is not surrounded by a body [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `core_recv` in this scope [INFO] [stdout] --> src/lib.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 7 | let mut core_recv: URecv = core_recv; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_123_0() { [INFO] [stdout] | ------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | match core_recv.next().await { [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `UnboundedReceiver` in the current scope [INFO] [stdout] --> src/lib.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 9 | match core_recv.next().await { [INFO] [stdout] | ^^^^ method not found in `UnboundedReceiver` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.16/src/stream/stream/mod.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn next(&mut self) -> Next<'_, Self> [INFO] [stdout] | ---- the method is available for `UnboundedReceiver` here [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] 3 | use crate::utopia_module::futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - spawn_async_runtime (line 258) stdout ---- [INFO] [stdout] error: macro expansion ignores token `return` and any following [INFO] [stdout] --> /opt/rustwide/workdir/utopia-module/src/lib.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 275 | return ($id, rt.block_on(async { $function })); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 9 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 10 | | // do asynchronous task [INFO] [stdout] 11 | | let a = future::ready(1); [INFO] [stdout] 12 | | assert_eq!(a.await, 1); [INFO] [stdout] 13 | | Ok(ThreadDeathExcuse::Debug) // the actual thread function is not supposed to die [INFO] [stdout] 14 | | }) [INFO] [stdout] | | -- help: you might be missing a semicolon here: `;` [INFO] [stdout] | |______| [INFO] [stdout] | caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `spawn_async_runtime!` is likely invalid in expression context [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 8 | fn thread(&self, _mod_send: USend, _core_recv: URecv) -> URes { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: expected expression, found statement (`let`) [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 9 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 10 | | // do asynchronous task [INFO] [stdout] 11 | | let a = future::ready(1); [INFO] [stdout] 12 | | assert_eq!(a.await, 1); [INFO] [stdout] 13 | | Ok(ThreadDeathExcuse::Debug) // the actual thread function is not supposed to die [INFO] [stdout] 14 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: variable declaration using `let` is a statement [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0658]: `let` expressions in this position are unstable [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 9 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 10 | | // do asynchronous task [INFO] [stdout] 11 | | let a = future::ready(1); [INFO] [stdout] 12 | | assert_eq!(a.await, 1); [INFO] [stdout] 13 | | Ok(ThreadDeathExcuse::Debug) // the actual thread function is not supposed to die [INFO] [stdout] 14 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #53667 for more information [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 8 | fn thread(&self, _mod_send: USend, _core_recv: URecv) -> URes { [INFO] [stdout] | ---- expected `(&'static str, Result>)` because of return type [INFO] [stdout] 9 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 10 | | // do asynchronous task [INFO] [stdout] 11 | | let a = future::ready(1); [INFO] [stdout] 12 | | assert_eq!(a.await, 1); [INFO] [stdout] 13 | | Ok(ThreadDeathExcuse::Debug) // the actual thread function is not supposed to die [INFO] [stdout] 14 | | }) [INFO] [stdout] | |______^ expected tuple, found `bool` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(&'static str, Result>)` [INFO] [stdout] found type `bool` [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 43) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 29 | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: use a comma to end a `match` arm expression: `,` [INFO] [stdout] | | | [INFO] [stdout] | | this statement is not surrounded by a body [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 30 | None => bail!("Channel to core died"); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: use a comma to end a `match` arm expression: `,` [INFO] [stdout] | | | [INFO] [stdout] | | this statement is not surrounded by a body [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores token `return` and any following [INFO] [stdout] --> /opt/rustwide/workdir/utopia-module/src/lib.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 275 | return ($id, rt.block_on(async { $function })); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 26 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 27 | | loop { [INFO] [stdout] 28 | | match core_recv.next().await { [INFO] [stdout] 29 | | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] ... | [INFO] [stdout] 33 | | unreachable!(); [INFO] [stdout] 34 | | }) [INFO] [stdout] | | -- help: you might be missing a semicolon here: `;` [INFO] [stdout] | |__________| [INFO] [stdout] | caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `spawn_async_runtime!` is likely invalid in expression context [INFO] [stdout] [INFO] [stdout] error: expected expression, found statement (`let`) [INFO] [stdout] --> src/lib.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 26 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 27 | | loop { [INFO] [stdout] 28 | | match core_recv.next().await { [INFO] [stdout] 29 | | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] ... | [INFO] [stdout] 33 | | unreachable!(); [INFO] [stdout] 34 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: variable declaration using `let` is a statement [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] error[E0658]: `let` expressions in this position are unstable [INFO] [stdout] --> src/lib.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 26 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 27 | | loop { [INFO] [stdout] 28 | | match core_recv.next().await { [INFO] [stdout] 29 | | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] ... | [INFO] [stdout] 33 | | unreachable!(); [INFO] [stdout] 34 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #53667 for more information [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 25 | fn thread(&self, _mod_send: USend, mut core_recv: URecv) -> URes { [INFO] [stdout] | ---- expected `(&'static str, Result>)` because of return type [INFO] [stdout] 26 | / spawn_async_runtime!(self.id(), { [INFO] [stdout] 27 | | loop { [INFO] [stdout] 28 | | match core_recv.next().await { [INFO] [stdout] 29 | | Some(msg) => println!("Received a message from core: {:?}", msg); [INFO] [stdout] ... | [INFO] [stdout] 33 | | unreachable!(); [INFO] [stdout] 34 | | }) [INFO] [stdout] | |__________^ expected tuple, found `bool` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(&'static str, Result>)` [INFO] [stdout] found type `bool` [INFO] [stdout] = note: this error originates in the macro `spawn_async_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0658. [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/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 43) [INFO] [stdout] src/lib.rs - UDb (line 166) [INFO] [stdout] src/lib.rs - URecv (line 123) [INFO] [stdout] src/lib.rs - USend (line 106) [INFO] [stdout] src/lib.rs - declare_module (line 289) [INFO] [stdout] src/lib.rs - spawn_async_runtime (line 258) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.56s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "bf8fccfe7891f282380918f6d6661a26e3fe4cef462cdcc62d75e345fdea82b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf8fccfe7891f282380918f6d6661a26e3fe4cef462cdcc62d75e345fdea82b0", kill_on_drop: false }` [INFO] [stdout] bf8fccfe7891f282380918f6d6661a26e3fe4cef462cdcc62d75e345fdea82b0