[INFO] fetching crate odem-rs-meta 0.3.0... [INFO] testing odem-rs-meta-0.3.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate odem-rs-meta 0.3.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate odem-rs-meta 0.3.0 [INFO] finished tweaking crates.io crate odem-rs-meta 0.3.0 [INFO] tweaked toml for crates.io crate odem-rs-meta 0.3.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate odem-rs-meta 0.3.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate odem-rs-meta 0.3.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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62aaa857ebaffa71c1ad95afb9526c6533febfaeb0ea9654f1691ddc327ff798 [INFO] running `Command { std: "docker" "start" "-a" "62aaa857ebaffa71c1ad95afb9526c6533febfaeb0ea9654f1691ddc327ff798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62aaa857ebaffa71c1ad95afb9526c6533febfaeb0ea9654f1691ddc327ff798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62aaa857ebaffa71c1ad95afb9526c6533febfaeb0ea9654f1691ddc327ff798", kill_on_drop: false }` [INFO] [stdout] 62aaa857ebaffa71c1ad95afb9526c6533febfaeb0ea9654f1691ddc327ff798 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22b06478c0df56787a61259d165071d6e59d925ad8a60f1ce8f9eedb6d1cbead [INFO] running `Command { std: "docker" "start" "-a" "22b06478c0df56787a61259d165071d6e59d925ad8a60f1ce8f9eedb6d1cbead", kill_on_drop: false }` [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Compiling toml_datetime v1.0.0+spec-1.1.0 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling toml_parser v1.0.9+spec-1.1.0 [INFO] [stderr] Compiling toml_edit v0.25.4+spec-1.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling odem-rs-meta v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.29s [INFO] running `Command { std: "docker" "inspect" "22b06478c0df56787a61259d165071d6e59d925ad8a60f1ce8f9eedb6d1cbead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22b06478c0df56787a61259d165071d6e59d925ad8a60f1ce8f9eedb6d1cbead", kill_on_drop: false }` [INFO] [stdout] 22b06478c0df56787a61259d165071d6e59d925ad8a60f1ce8f9eedb6d1cbead [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36da51ce32d4f5a043286c3b915573c6bb14ef44ea427004124da6198c1a0284 [INFO] running `Command { std: "docker" "start" "-a" "36da51ce32d4f5a043286c3b915573c6bb14ef44ea427004124da6198c1a0284", kill_on_drop: false }` [INFO] [stderr] Compiling odem-rs-meta v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "36da51ce32d4f5a043286c3b915573c6bb14ef44ea427004124da6198c1a0284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36da51ce32d4f5a043286c3b915573c6bb14ef44ea427004124da6198c1a0284", kill_on_drop: false }` [INFO] [stdout] 36da51ce32d4f5a043286c3b915573c6bb14ef44ea427004124da6198c1a0284 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a2c4924c9c6741f3214f63e45c91b7c78f500a156273ad3ca4c8c4b8da9b233a [INFO] running `Command { std: "docker" "start" "-a" "a2c4924c9c6741f3214f63e45c91b7c78f500a156273ad3ca4c8c4b8da9b233a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/odem_rs_meta-db6dc3e4cdf8becd) [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 odem_rs_meta [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test src/lib.rs - sim_main (line 510) ... ignored [INFO] [stdout] test src/lib.rs - derive_config (line 349) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 454) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 156) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 307) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 83) ... ignored [INFO] [stdout] test src/lib.rs - sim_main (line 567) - compile ... FAILED [INFO] [stdout] test src/lib.rs - until (line 137) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 441) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 583) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 201) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 386) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 217) ... FAILED [INFO] [stdout] test src/lib.rs - until (line 178) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 291) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 420) ... FAILED [INFO] [stdout] test src/lib.rs - derive_publisher (line 467) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 604) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 366) ... FAILED [INFO] [stdout] test src/lib.rs - derive_config (line 326) ... FAILED [INFO] [stdout] test src/lib.rs - sim_main (line 557) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_config (line 349) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | 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:351:10 [INFO] [stdout] | [INFO] [stdout] 351 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 349 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:352:3 [INFO] [stdout] | [INFO] [stdout] 352 | #[time = "Time"] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rank` in this scope [INFO] [stdout] --> src/lib.rs:353:3 [INFO] [stdout] | [INFO] [stdout] 353 | #[rank(u16)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:358:25 [INFO] [stdout] | [INFO] [stdout] 358 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_publisher (line 454) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:455:5 [INFO] [stdout] | [INFO] [stdout] 455 | 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:457:10 [INFO] [stdout] | [INFO] [stdout] 457 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 454 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:459:7 [INFO] [stdout] | [INFO] [stdout] 459 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:456:10 [INFO] [stdout] | [INFO] [stdout] 456 | #[derive(Publisher)] struct Foo; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 454 + 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 - until (line 156) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [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:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | until!(is_ready && has_permission).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[E0425]: 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[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | let is_ready = Control::new(false); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_config (line 307) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 308 | 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:309:10 [INFO] [stdout] | [INFO] [stdout] 309 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 307 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:315:25 [INFO] [stdout] | [INFO] [stdout] 315 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sim_main (line 567) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:568:5 [INFO] [stdout] | [INFO] [stdout] 568 | 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]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:571:3 [INFO] [stdout] | [INFO] [stdout] 571 | #[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:569:10 [INFO] [stdout] | [INFO] [stdout] 569 | #[derive(Config)] struct MyConfig; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 568 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:572:26 [INFO] [stdout] | [INFO] [stdout] 572 | 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:577:21 [INFO] [stdout] | [INFO] [stdout] 577 | let _: String = with_args(10); [INFO] [stdout] | ^^^^^^^^^ -- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:572:10 [INFO] [stdout] | [INFO] [stdout] 572 | async fn with_args(sim: &Sim, steps: i32) -> String { [INFO] [stdout] | ^^^^^^^^^ ------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 577 | let _: String = with_args(/* sim */, 10); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:577:21 [INFO] [stdout] | [INFO] [stdout] 577 | 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, 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 137) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | 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:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | until!(i > 0).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 137 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:139:25 [INFO] [stdout] | [INFO] [stdout] 139 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | let i: Control = Control::new(0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_publisher (line 441) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [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 derive macro `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:443:10 [INFO] [stdout] | [INFO] [stdout] 443 | #[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:446:7 [INFO] [stdout] | [INFO] [stdout] 446 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:448:7 [INFO] [stdout] | [INFO] [stdout] 448 | #[subscribe] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | field2: Control, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sim_main (line 583) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:584:5 [INFO] [stdout] | [INFO] [stdout] 584 | 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]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:588:3 [INFO] [stdout] | [INFO] [stdout] 588 | #[odem_rs::main] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:589:34 [INFO] [stdout] | [INFO] [stdout] 589 | 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:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | sleep().await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 584 + 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:595:18 [INFO] [stdout] | [INFO] [stdout] 595 | 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:589:10 [INFO] [stdout] | [INFO] [stdout] 589 | async fn with_custom_error(sim: &Sim) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 595 | 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:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(result, Ok("Data".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | impl Future> [INFO] [stdout] | Result [INFO] [stdout] [INFO] [stdout] error[E0277]: `impl Future>` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(result, Ok("Data".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `impl Future>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0369, 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 201) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | 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:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | until!(val * local_modifier > 10 && enabled_flag).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 201 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: 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]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:204:11 [INFO] [stdout] | [INFO] [stdout] 204 | let val = Control::new(5); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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/lib.rs - derive_config (line 386) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:387:5 [INFO] [stdout] | [INFO] [stdout] 387 | 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:388:10 [INFO] [stdout] | [INFO] [stdout] 388 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 386 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:389:3 [INFO] [stdout] | [INFO] [stdout] 389 | #[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:391:7 [INFO] [stdout] | [INFO] [stdout] 391 | #[time] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - until (line 217) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | 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:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | until!(signal_strength >= 5).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 217 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:219:44 [INFO] [stdout] | [INFO] [stdout] 219 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - until (line 178) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | 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:192:1 [INFO] [stdout] | [INFO] [stdout] 192 | until!(pair.a || pair.b < 10).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 178 + use odem_rs_meta::until; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | async fn sim_main(sim: &Sim) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | a: Control, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | b: Control [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | a: Control::new(false), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | b: Control::new(0) [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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_config (line 291) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | 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:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 291 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_publisher (line 420) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:421:5 [INFO] [stdout] | [INFO] [stdout] 421 | 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:436:1 [INFO] [stdout] | [INFO] [stdout] 436 | until!(foo.is_false()).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 420 + 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:423:10 [INFO] [stdout] | [INFO] [stdout] 423 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 420 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:424:14 [INFO] [stdout] | [INFO] [stdout] 424 | struct Foo(#[subscribe] Control); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:424:25 [INFO] [stdout] | [INFO] [stdout] 424 | struct Foo(#[subscribe] Control); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Control` in this scope [INFO] [stdout] --> src/lib.rs:432:15 [INFO] [stdout] | [INFO] [stdout] 432 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_publisher (line 467) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:468:5 [INFO] [stdout] | [INFO] [stdout] 468 | 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:469:10 [INFO] [stdout] | [INFO] [stdout] 469 | #[derive(Publisher)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 467 + use odem_rs_meta::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `subscribe` in this scope [INFO] [stdout] --> src/lib.rs:471:7 [INFO] [stdout] | [INFO] [stdout] 471 | #[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 - sim_main (line 604) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:605:5 [INFO] [stdout] | [INFO] [stdout] 605 | 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]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:607:3 [INFO] [stdout] | [INFO] [stdout] 607 | #[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:606:10 [INFO] [stdout] | [INFO] [stdout] 606 | #[derive(Config, Default)] struct MyConfig; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 605 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:608:39 [INFO] [stdout] | [INFO] [stdout] 608 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SimResult` in this scope [INFO] [stdout] --> src/lib.rs:608:57 [INFO] [stdout] | [INFO] [stdout] 608 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:557:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Result` defined here [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 608 - async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] 608 + async fn with_specialized_error(sim: &Sim) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/lib.rs:609:5 [INFO] [stdout] | [INFO] [stdout] 609 | sleep().await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 605 + 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:614:11 [INFO] [stdout] | [INFO] [stdout] 614 | match with_specialized_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^-- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:608:10 [INFO] [stdout] | [INFO] [stdout] 608 | async fn with_specialized_error(sim: &Sim) -> SimResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 614 | match with_specialized_error(/* sim */) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:615:9 [INFO] [stdout] | [INFO] [stdout] 614 | match with_specialized_error() { [INFO] [stdout] | ------------------------ this expression has type `impl Future` [INFO] [stdout] 615 | 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:616:9 [INFO] [stdout] | [INFO] [stdout] 614 | match with_specialized_error() { [INFO] [stdout] | ------------------------ this expression has type `impl Future` [INFO] [stdout] 615 | Ok(value) => println!("Success: {}", value), [INFO] [stdout] 616 | 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, 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 366) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | 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:368:10 [INFO] [stdout] | [INFO] [stdout] 368 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 366 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:369:3 [INFO] [stdout] | [INFO] [stdout] 369 | #[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:370:3 [INFO] [stdout] | [INFO] [stdout] 370 | #[rank(u8 = 100)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:375:25 [INFO] [stdout] | [INFO] [stdout] 375 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_config (line 326) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:327:5 [INFO] [stdout] | [INFO] [stdout] 327 | 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:328:10 [INFO] [stdout] | [INFO] [stdout] 328 | #[derive(Config)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 326 + use odem_rs_meta::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `time` in this scope [INFO] [stdout] --> src/lib.rs:332:7 [INFO] [stdout] | [INFO] [stdout] 332 | #[time] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rank` in this scope [INFO] [stdout] --> src/lib.rs:337:7 [INFO] [stdout] | [INFO] [stdout] 337 | #[rank] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:341:25 [INFO] [stdout] | [INFO] [stdout] 341 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sim_main (line 557) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:558:5 [INFO] [stdout] | [INFO] [stdout] 558 | 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]: cannot find module or crate `odem_rs` in this scope [INFO] [stdout] --> src/lib.rs:559:3 [INFO] [stdout] | [INFO] [stdout] 559 | #[odem_rs::main] [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `odem_rs` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Sim` in this scope [INFO] [stdout] --> src/lib.rs:560:21 [INFO] [stdout] | [INFO] [stdout] 560 | 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:560:1 [INFO] [stdout] | [INFO] [stdout] 560 | 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: E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - derive_config (line 291) [INFO] [stdout] src/lib.rs - derive_config (line 307) [INFO] [stdout] src/lib.rs - derive_config (line 326) [INFO] [stdout] src/lib.rs - derive_config (line 349) [INFO] [stdout] src/lib.rs - derive_config (line 366) [INFO] [stdout] src/lib.rs - derive_config (line 386) [INFO] [stdout] src/lib.rs - derive_publisher (line 420) [INFO] [stdout] src/lib.rs - derive_publisher (line 441) [INFO] [stdout] src/lib.rs - derive_publisher (line 454) [INFO] [stdout] src/lib.rs - derive_publisher (line 467) [INFO] [stdout] src/lib.rs - sim_main (line 557) [INFO] [stdout] src/lib.rs - sim_main (line 567) [INFO] [stdout] src/lib.rs - sim_main (line 583) [INFO] [stdout] src/lib.rs - sim_main (line 604) [INFO] [stdout] src/lib.rs - until (line 137) [INFO] [stdout] src/lib.rs - until (line 156) [INFO] [stdout] src/lib.rs - until (line 178) [INFO] [stdout] src/lib.rs - until (line 201) [INFO] [stdout] src/lib.rs - until (line 217) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.68s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.25s; merged doctests compilation took 0.56s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a2c4924c9c6741f3214f63e45c91b7c78f500a156273ad3ca4c8c4b8da9b233a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2c4924c9c6741f3214f63e45c91b7c78f500a156273ad3ca4c8c4b8da9b233a", kill_on_drop: false }` [INFO] [stdout] a2c4924c9c6741f3214f63e45c91b7c78f500a156273ad3ca4c8c4b8da9b233a