[INFO] fetching crate odem-rs-meta 0.2.0... [INFO] testing odem-rs-meta-0.2.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate odem-rs-meta 0.2.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate odem-rs-meta 0.2.0 [INFO] finished tweaking crates.io crate odem-rs-meta 0.2.0 [INFO] tweaked toml for crates.io crate odem-rs-meta 0.2.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate odem-rs-meta 0.2.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate odem-rs-meta 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml_edit v0.22.25 [INFO] [stderr] Downloaded winnow v0.7.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5247d8f451ff890457686bbb330f80e90971980c4792d0ede798b1fb1758575 [INFO] running `Command { std: "docker" "start" "-a" "c5247d8f451ff890457686bbb330f80e90971980c4792d0ede798b1fb1758575", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5247d8f451ff890457686bbb330f80e90971980c4792d0ede798b1fb1758575", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5247d8f451ff890457686bbb330f80e90971980c4792d0ede798b1fb1758575", kill_on_drop: false }` [INFO] [stdout] c5247d8f451ff890457686bbb330f80e90971980c4792d0ede798b1fb1758575 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 619f63bed9107d8283aaf979c7f405300f96d771b9f872da1f92f1bd58aa12c2 [INFO] running `Command { std: "docker" "start" "-a" "619f63bed9107d8283aaf979c7f405300f96d771b9f872da1f92f1bd58aa12c2", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling winnow v0.7.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling toml_edit v0.22.25 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling odem-rs-meta v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.88s [INFO] running `Command { std: "docker" "inspect" "619f63bed9107d8283aaf979c7f405300f96d771b9f872da1f92f1bd58aa12c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619f63bed9107d8283aaf979c7f405300f96d771b9f872da1f92f1bd58aa12c2", kill_on_drop: false }` [INFO] [stdout] 619f63bed9107d8283aaf979c7f405300f96d771b9f872da1f92f1bd58aa12c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5804522178ba1c8eb25df10d250135a759aa88a3fdfe8dd514a208f230512eee [INFO] running `Command { std: "docker" "start" "-a" "5804522178ba1c8eb25df10d250135a759aa88a3fdfe8dd514a208f230512eee", kill_on_drop: false }` [INFO] [stderr] Compiling odem-rs-meta v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.14s [INFO] running `Command { std: "docker" "inspect" "5804522178ba1c8eb25df10d250135a759aa88a3fdfe8dd514a208f230512eee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5804522178ba1c8eb25df10d250135a759aa88a3fdfe8dd514a208f230512eee", kill_on_drop: false }` [INFO] [stdout] 5804522178ba1c8eb25df10d250135a759aa88a3fdfe8dd514a208f230512eee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c04b9707b29ccf1627690d0452332a6f2b72ff976ca8e041f66ee8cf1403a173 [INFO] running `Command { std: "docker" "start" "-a" "c04b9707b29ccf1627690d0452332a6f2b72ff976ca8e041f66ee8cf1403a173", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/odem_rs_meta-ce582d596a1e0d4e) [INFO] [stdout] [INFO] [stderr] Doc-tests odem_rs_meta [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 21 tests [INFO] [stdout] test src/lib.rs - sim_main (line 531) ... ignored [INFO] [stdout] test src/lib.rs - derive_config (line 370) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 626) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 312) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 407) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 88) ... ignored [INFO] [stdout] test src/lib.rs - derive_publisher (line 462) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 156) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 475) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 579) - compile ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 589) - compile ... FAILED [INFO] [stdout] test src/lib.rs - until (line 176) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 328) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 238) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 347) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 387) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 488) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 221) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 441) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 605) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 199) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_config (line 370) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:372:10 [INFO] [stdout] | [INFO] [stdout] 372 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 370 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:373:3 [INFO] [stdout] | [INFO] [stdout] 373 | #[time = "Time"] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rank` in this scope [INFO] [stdout] --> src/lib.rs:374:3 [INFO] [stdout] | [INFO] [stdout] 374 | #[rank(u16)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:379:25 [INFO] [stdout] | [INFO] [stdout] 379 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - sim_main (line 626) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:627:5 [INFO] [stdout] | [INFO] [stdout] 627 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:629:3 [INFO] [stdout] | [INFO] [stdout] 629 | #[odem_rs::main] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:628:10 [INFO] [stdout] | [INFO] [stdout] 628 | #[derive(Config, Default)] struct MyConfig; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 627 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:630:39 [INFO] [stdout] | [INFO] [stdout] 630 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SimResult` in this scope [INFO] [stdout] --> src/lib.rs:630:57 [INFO] [stdout] | [INFO] [stdout] 630 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^^^^^^^ help: an enum with a similar name exists: `Result` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/result.rs:557:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Result` defined here [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/lib.rs:631:5 [INFO] [stdout] | [INFO] [stdout] 631 | sleep().await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 627 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:636:11 [INFO] [stdout] | [INFO] [stdout] 636 | match with_specialized_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^-- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:630:10 [INFO] [stdout] | [INFO] [stdout] 630 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 636 | match with_specialized_error(/* sim */) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 636 | match with_specialized_error() { [INFO] [stdout] | ------------------------ this expression has type `impl Future` [INFO] [stdout] 637 | Ok(value) => println!("Success: {}", value), [INFO] [stdout] | ^^^^^^^^^ expected future, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl Future` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 636 | match with_specialized_error() { [INFO] [stdout] | ------------------------ this expression has type `impl Future` [INFO] [stdout] 637 | Ok(value) => println!("Success: {}", value), [INFO] [stdout] 638 | Err(err) => { [INFO] [stdout] | ^^^^^^^^ expected future, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl Future` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_config (line 312) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 313 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:314:10 [INFO] [stdout] | [INFO] [stdout] 314 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 312 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:317:25 [INFO] [stdout] | [INFO] [stdout] 317 | async fn sim_main(sim: &Sim) { [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: E0412, 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 - derive_config (line 407) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:409:10 [INFO] [stdout] | [INFO] [stdout] 409 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 407 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:410:3 [INFO] [stdout] | [INFO] [stdout] 410 | #[time = "u64"] // Suggests u64, but the field below overrides. [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:412:7 [INFO] [stdout] | [INFO] [stdout] 412 | #[time] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:417:25 [INFO] [stdout] | [INFO] [stdout] 417 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_publisher (line 462) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 463 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:464:10 [INFO] [stdout] | [INFO] [stdout] 464 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 462 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:467:7 [INFO] [stdout] | [INFO] [stdout] 467 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:469:7 [INFO] [stdout] | [INFO] [stdout] 469 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | field2: Control, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | field3: Control, [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, 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 - until (line 156) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | until!(i > 0).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 156 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | let i: Control = Control::new(0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:159:23 [INFO] [stdout] | [INFO] [stdout] 159 | let i: Control = Control::new(0); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_publisher (line 475) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:476:5 [INFO] [stdout] | [INFO] [stdout] 476 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:478:10 [INFO] [stdout] | [INFO] [stdout] 478 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 475 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:480:7 [INFO] [stdout] | [INFO] [stdout] 480 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:477:10 [INFO] [stdout] | [INFO] [stdout] 477 | #[derive(Publisher)] struct Foo; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 475 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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/lib.rs - sim_main (line 579) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:580:5 [INFO] [stdout] | [INFO] [stdout] 580 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:581:3 [INFO] [stdout] | [INFO] [stdout] 581 | #[odem_rs::main] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:582:21 [INFO] [stdout] | [INFO] [stdout] 582 | async fn main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:582:1 [INFO] [stdout] | [INFO] [stdout] 582 | async fn main(sim: &Sim) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sim_main (line 589) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:593:3 [INFO] [stdout] | [INFO] [stdout] 593 | #[odem_rs::main(my_custom_sim_config(steps))] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:591:10 [INFO] [stdout] | [INFO] [stdout] 591 | #[derive(Config)] struct MyConfig; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 590 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:594:26 [INFO] [stdout] | [INFO] [stdout] 594 | async fn with_args(sim: &Sim, steps: i32) -> String { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:599:21 [INFO] [stdout] | [INFO] [stdout] 599 | let _: String = with_args(10); [INFO] [stdout] | ^^^^^^^^^ -- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:594:10 [INFO] [stdout] | [INFO] [stdout] 594 | async fn with_args(sim: &Sim, steps: i32) -> String { [INFO] [stdout] | ^^^^^^^^^ ------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 599 | let _: String = with_args(/* sim */, 10); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:599:21 [INFO] [stdout] | [INFO] [stdout] 599 | let _: String = with_args(10); [INFO] [stdout] | ------ ^^^^^^^^^^^^^ expected `String`, found future [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - until (line 176) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | until!(is_ready && has_permission).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 176 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | let is_ready = Control::new(false); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:180:22 [INFO] [stdout] | [INFO] [stdout] 180 | let has_permission = Control::new(false); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_config (line 328) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 329 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:330:10 [INFO] [stdout] | [INFO] [stdout] 330 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 328 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:336:25 [INFO] [stdout] | [INFO] [stdout] 336 | async fn sim_main(sim: &Sim) { [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: E0412, 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 - until (line 238) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | until!(signal_strength >= 5).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 238 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | async fn wait_for_signal(signal_strength: &Control) { [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: E0412, 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 - derive_config (line 347) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:348:5 [INFO] [stdout] | [INFO] [stdout] 348 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:349:10 [INFO] [stdout] | [INFO] [stdout] 349 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 347 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:353:7 [INFO] [stdout] | [INFO] [stdout] 353 | #[time] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rank` in this scope [INFO] [stdout] --> src/lib.rs:358:7 [INFO] [stdout] | [INFO] [stdout] 358 | #[rank] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:362:25 [INFO] [stdout] | [INFO] [stdout] 362 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_config (line 387) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:388:5 [INFO] [stdout] | [INFO] [stdout] 388 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Config` in this scope [INFO] [stdout] --> src/lib.rs:389:10 [INFO] [stdout] | [INFO] [stdout] 389 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 387 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:390:3 [INFO] [stdout] | [INFO] [stdout] 390 | #[time(Time = hour::new(8.0))] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rank` in this scope [INFO] [stdout] --> src/lib.rs:391:3 [INFO] [stdout] | [INFO] [stdout] 391 | #[rank(u8 = 100)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:396:25 [INFO] [stdout] | [INFO] [stdout] 396 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_publisher (line 488) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:489:5 [INFO] [stdout] | [INFO] [stdout] 489 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:490:10 [INFO] [stdout] | [INFO] [stdout] 490 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 488 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:492:7 [INFO] [stdout] | [INFO] [stdout] 492 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [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/lib.rs - until (line 221) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:228:1 [INFO] [stdout] | [INFO] [stdout] 228 | until!(val * local_modifier > 10 && enabled_flag).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 221 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:223:25 [INFO] [stdout] | [INFO] [stdout] 223 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:224:10 [INFO] [stdout] | [INFO] [stdout] 224 | let val: Control = Control::new(5); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:224:25 [INFO] [stdout] | [INFO] [stdout] 224 | let val: Control = Control::new(5); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - derive_publisher (line 441) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:442:5 [INFO] [stdout] | [INFO] [stdout] 442 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:457:1 [INFO] [stdout] | [INFO] [stdout] 457 | until!(foo.is_false()).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 441 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:444:10 [INFO] [stdout] | [INFO] [stdout] 444 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 441 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:445:14 [INFO] [stdout] | [INFO] [stdout] 445 | struct Foo(#[subscribe] Control); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:445:25 [INFO] [stdout] | [INFO] [stdout] 445 | struct Foo(#[subscribe] Control); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:453:15 [INFO] [stdout] | [INFO] [stdout] 453 | let foo = Foo(Control::new(true)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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/lib.rs - sim_main (line 605) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:610:3 [INFO] [stdout] | [INFO] [stdout] 610 | #[odem_rs::main] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:611:34 [INFO] [stdout] | [INFO] [stdout] 611 | async fn with_custom_error(sim: &Sim) -> Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/lib.rs:612:5 [INFO] [stdout] | [INFO] [stdout] 612 | sleep().await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 606 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:617:18 [INFO] [stdout] | [INFO] [stdout] 617 | let result = with_custom_error(); // panics due to the `sleep().await` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:611:10 [INFO] [stdout] | [INFO] [stdout] 611 | async fn with_custom_error(sim: &Sim) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 617 | let result = with_custom_error(/* sim */); // panics due to the `sleep().await` [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `impl Future>` [INFO] [stdout] --> src/lib.rs:618:5 [INFO] [stdout] | [INFO] [stdout] 618 | assert_eq!(result, Ok("Data".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | impl Future> [INFO] [stdout] | Result [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: `impl Future>` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:618:5 [INFO] [stdout] | [INFO] [stdout] 618 | assert_eq!(result, Ok("Data".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `impl Future>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_eq` (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: E0061, E0277, E0369, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - until (line 199) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] --> src/lib.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | use odem_rs::prelude::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `odem_rs`, use `cargo add odem_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `until` in this scope [INFO] [stdout] --> src/lib.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | until!(app_config.settings.font_size > min_font_size && app_config.settings.dark_mode).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 199 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:202:30 [INFO] [stdout] | [INFO] [stdout] 202 | struct Settings { font_size: Control, dark_mode: Control } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:202:55 [INFO] [stdout] | [INFO] [stdout] 202 | struct Settings { font_size: Control, dark_mode: Control } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:203:25 [INFO] [stdout] | [INFO] [stdout] 203 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:206:20 [INFO] [stdout] | [INFO] [stdout] 206 | font_size: Control::new(12), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:207:20 [INFO] [stdout] | [INFO] [stdout] 207 | dark_mode: Control::new(false), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - derive_config (line 312) [INFO] [stdout] src/lib.rs - derive_config (line 328) [INFO] [stdout] src/lib.rs - derive_config (line 347) [INFO] [stdout] src/lib.rs - derive_config (line 370) [INFO] [stdout] src/lib.rs - derive_config (line 387) [INFO] [stdout] src/lib.rs - derive_config (line 407) [INFO] [stdout] src/lib.rs - derive_publisher (line 441) [INFO] [stdout] src/lib.rs - derive_publisher (line 462) [INFO] [stdout] src/lib.rs - derive_publisher (line 475) [INFO] [stdout] src/lib.rs - derive_publisher (line 488) [INFO] [stdout] src/lib.rs - sim_main (line 579) [INFO] [stdout] src/lib.rs - sim_main (line 589) [INFO] [stdout] src/lib.rs - sim_main (line 605) [INFO] [stdout] src/lib.rs - sim_main (line 626) [INFO] [stdout] src/lib.rs - until (line 156) [INFO] [stdout] src/lib.rs - until (line 176) [INFO] [stdout] src/lib.rs - until (line 199) [INFO] [stdout] src/lib.rs - until (line 221) [INFO] [stdout] src/lib.rs - until (line 238) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.53s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.86s; merged doctests compilation took 0.32s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c04b9707b29ccf1627690d0452332a6f2b72ff976ca8e041f66ee8cf1403a173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c04b9707b29ccf1627690d0452332a6f2b72ff976ca8e041f66ee8cf1403a173", kill_on_drop: false }` [INFO] [stdout] c04b9707b29ccf1627690d0452332a6f2b72ff976ca8e041f66ee8cf1403a173