[INFO] fetching crate roco_z21_driver 0.1.1... [INFO] testing roco_z21_driver-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate roco_z21_driver 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate roco_z21_driver 0.1.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate roco_z21_driver 0.1.1 [INFO] tweaked toml for crates.io crate roco_z21_driver 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate roco_z21_driver 0.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate roco_z21_driver 0.1.1 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0dabef72fb59b515dee7853299cd0d99e44e3602190d64d7930bf38692b070d [INFO] running `Command { std: "docker" "start" "-a" "b0dabef72fb59b515dee7853299cd0d99e44e3602190d64d7930bf38692b070d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0dabef72fb59b515dee7853299cd0d99e44e3602190d64d7930bf38692b070d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0dabef72fb59b515dee7853299cd0d99e44e3602190d64d7930bf38692b070d", kill_on_drop: false }` [INFO] [stdout] b0dabef72fb59b515dee7853299cd0d99e44e3602190d64d7930bf38692b070d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5ee0494317b3a1e88824d6d7f2310850cbb40667bd1349362db26b6bfa1c047 [INFO] running `Command { std: "docker" "start" "-a" "a5ee0494317b3a1e88824d6d7f2310850cbb40667bd1349362db26b6bfa1c047", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling roco_z21_driver v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::OnceCell` [INFO] [stdout] --> src/station.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::cell::OnceCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/station.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/station/loco.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/station/loco.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | use std::{ops::Deref, sync::Arc, vec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/station/loco.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | use tokio::{io, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receive_packet` is never used [INFO] [stdout] --> src/station.rs:355:14 [INFO] [stdout] | [INFO] [stdout] 62 | impl Z21Station { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 355 | async fn receive_packet(&self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.83s [INFO] running `Command { std: "docker" "inspect" "a5ee0494317b3a1e88824d6d7f2310850cbb40667bd1349362db26b6bfa1c047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5ee0494317b3a1e88824d6d7f2310850cbb40667bd1349362db26b6bfa1c047", kill_on_drop: false }` [INFO] [stdout] a5ee0494317b3a1e88824d6d7f2310850cbb40667bd1349362db26b6bfa1c047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c74586e32380a39424e9420c78e1c4a8c9fa98a8a17218fa9ed84525311b84b3 [INFO] running `Command { std: "docker" "start" "-a" "c74586e32380a39424e9420c78e1c4a8c9fa98a8a17218fa9ed84525311b84b3", kill_on_drop: false }` [INFO] [stderr] Compiling roco_z21_driver v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::OnceCell` [INFO] [stdout] --> src/station.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::cell::OnceCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/station.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/station/loco.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/station/loco.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | use std::{ops::Deref, sync::Arc, vec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/station/loco.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | use tokio::{io, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receive_packet` is never used [INFO] [stdout] --> src/station.rs:355:14 [INFO] [stdout] | [INFO] [stdout] 62 | impl Z21Station { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 355 | async fn receive_packet(&self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::OnceCell` [INFO] [stdout] --> src/station.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::cell::OnceCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/station.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/station/loco.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/station/loco.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | use std::{ops::Deref, sync::Arc, vec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/station/loco.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | use tokio::{io, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receive_packet` is never used [INFO] [stdout] --> src/station.rs:355:14 [INFO] [stdout] | [INFO] [stdout] 62 | impl Z21Station { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 355 | async fn receive_packet(&self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.40s [INFO] running `Command { std: "docker" "inspect" "c74586e32380a39424e9420c78e1c4a8c9fa98a8a17218fa9ed84525311b84b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c74586e32380a39424e9420c78e1c4a8c9fa98a8a17218fa9ed84525311b84b3", kill_on_drop: false }` [INFO] [stdout] c74586e32380a39424e9420c78e1c4a8c9fa98a8a17218fa9ed84525311b84b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4248fe4465d5651b1dade55f5bd7355cea1dae5ebf2d0a990faf364f788d0db5 [INFO] running `Command { std: "docker" "start" "-a" "4248fe4465d5651b1dade55f5bd7355cea1dae5ebf2d0a990faf364f788d0db5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::cell::OnceCell` [INFO] [stderr] --> src/station.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use std::cell::OnceCell; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::SocketAddr` [INFO] [stderr] --> src/station.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use std::net::SocketAddr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/station/loco.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ops::Deref` [INFO] [stderr] --> src/station/loco.rs:43:11 [INFO] [stderr] | [INFO] [stderr] 43 | use std::{ops::Deref, sync::Arc, vec}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `time` [INFO] [stderr] --> src/station/loco.rs:45:17 [INFO] [stderr] | [INFO] [stderr] 45 | use tokio::{io, time}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `receive_packet` is never used [INFO] [stderr] --> src/station.rs:355:14 [INFO] [stderr] | [INFO] [stderr] 62 | impl Z21Station { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 355 | async fn receive_packet(&self) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `roco_z21_driver` (lib) generated 6 warnings (run `cargo fix --lib -p roco_z21_driver` to apply 5 suggestions) [INFO] [stderr] warning: `roco_z21_driver` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/roco_z21_driver-d86b7670a72e30cf) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test messages::xbus_message::tests::test_into_vec ... ok [INFO] [stdout] test messages::xbus_message::tests::test_new_single ... ok [INFO] [stdout] test messages::xbus_message::tests::test_new_only_header ... ok [INFO] [stdout] test messages::xbus_message::tests::test_new_dbs_vec ... ok [INFO] [stdout] test messages::xbus_message::tests::test_new_double ... ok [INFO] [stdout] test messages::xbus_message::tests::test_try_from_invalid_xor ... ok [INFO] [stdout] test messages::xbus_message::tests::test_try_from_valid ... ok [INFO] [stdout] test messages::xbus_message::tests::test_try_from_too_short ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] Doc-tests roco_z21_driver [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test src/station.rs - station::Z21Station::subscribe_system_state (line 474) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::new (line 85) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::control (line 102) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::voltage_off (line 388) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::voltage_on (line 416) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::logout (line 532) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco (line 18) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::function_off (line 466) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::get_serial_number (line 444) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::set_headlights (line 523) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::drive (line 301) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::subscribe_loco_state (line 332) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::function_on (line 438) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::set_function (line 379) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::halt (line 216) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::control_with_steps (line 136) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::function_toggle (line 494) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::stop (line 193) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/station.rs - station::Z21Station::subscribe_system_state (line 474) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `station` in this scope [INFO] [stdout] --> src/station.rs:475:1 [INFO] [stdout] | [INFO] [stdout] 3 | station.subscribe_system_state(1.0, Box::new(|state| { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station.rs - station::Z21Station::new (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Z21Station` [INFO] [stdout] --> src/station.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 3 | let station = Z21Station::new("192.168.0.111:21105").await?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Z21Station` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Z21Station; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/station.rs:86:54 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_station_rs_85_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let station = Z21Station::new("192.168.0.111:21105").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::control (line 102) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/station/loco.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(station: Arc) -> std::io::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Z21Station` in this scope [INFO] [stdout] --> src/station/loco.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(station: Arc) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Z21Station; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Loco` [INFO] [stdout] --> src/station/loco.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 4 | let loco = Loco::control(station.clone(), 3).await?; [INFO] [stdout] | ^^^^ use of undeclared type `Loco` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [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/station.rs - station::Z21Station::voltage_off (line 388) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `station` in this scope [INFO] [stdout] --> src/station.rs:390:1 [INFO] [stdout] | [INFO] [stdout] 4 | station.voltage_off().await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/station.rs:390:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_station_rs_388_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | // Emergency stop all locomotives by cutting track power [INFO] [stdout] 4 | station.voltage_off().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station.rs - station::Z21Station::voltage_on (line 416) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `station` in this scope [INFO] [stdout] --> src/station.rs:418:1 [INFO] [stdout] | [INFO] [stdout] 4 | station.voltage_on().await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/station.rs:418:22 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_station_rs_416_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | // Restore power to the tracks [INFO] [stdout] 4 | station.voltage_on().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station.rs - station::Z21Station::logout (line 532) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `station` in this scope [INFO] [stdout] --> src/station.rs:534:1 [INFO] [stdout] | [INFO] [stdout] 4 | station.logout().await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/station.rs:534:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_station_rs_532_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | // Clean up and disconnect from the Z21 station [INFO] [stdout] 4 | station.logout().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Z21Station` [INFO] [stdout] --> src/station/loco.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 6 | let station = Arc::new(Z21Station::new("192.168.0.111:21105").await?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Z21Station` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Z21Station; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Loco` [INFO] [stdout] --> src/station/loco.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | let loco = Loco::control(station.clone(), 3).await?; [INFO] [stdout] | ^^^^ use of undeclared type `Loco` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Arc<_>` [INFO] [stdout] --> src/station/loco.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 6 | let station = Arc::new(Z21Station::new("192.168.0.111:21105").await?); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | let loco = Loco::control(station.clone(), 3).await?; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `station` an explicit type, where the type for type parameter `T` is specified [INFO] [stdout] | [INFO] [stdout] 6 | let station: Arc = Arc::new(Z21Station::new("192.168.0.111:21105").await?); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::function_off (line 466) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:467:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station.rs - station::Z21Station::get_serial_number (line 444) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `station` in this scope [INFO] [stdout] --> src/station.rs:445:14 [INFO] [stdout] | [INFO] [stdout] 3 | let serial = station.get_serial_number().await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/station.rs:445:42 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_station_rs_444_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let serial = station.get_serial_number().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::set_headlights (line 523) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:524:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::drive (line 301) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::subscribe_loco_state (line 332) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:333:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn example(loco: &Loco) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::function_on (line 438) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:439:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::set_function (line 379) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:380:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::halt (line 216) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:217:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::control_with_steps (line 136) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/station/loco.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(station: Arc) -> std::io::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Z21Station` in this scope [INFO] [stdout] --> src/station/loco.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(station: Arc) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Z21Station; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Loco` [INFO] [stdout] --> src/station/loco.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 4 | let loco = Loco::control_with_steps( [INFO] [stdout] | ^^^^ use of undeclared type `Loco` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DccThrottleSteps` [INFO] [stdout] --> src/station/loco.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 7 | DccThrottleSteps::Steps28 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `DccThrottleSteps` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::messages::DccThrottleSteps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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/station/loco.rs - station::loco::Loco::function_toggle (line 494) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:495:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/station/loco.rs - station::loco::Loco::stop (line 193) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Loco` in this scope [INFO] [stdout] --> src/station/loco.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(loco: &Loco) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use roco_z21_driver::Loco; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/station.rs - station::Z21Station::get_serial_number (line 444) [INFO] [stdout] src/station.rs - station::Z21Station::logout (line 532) [INFO] [stdout] src/station.rs - station::Z21Station::new (line 85) [INFO] [stdout] src/station.rs - station::Z21Station::subscribe_system_state (line 474) [INFO] [stdout] src/station.rs - station::Z21Station::voltage_off (line 388) [INFO] [stdout] src/station.rs - station::Z21Station::voltage_on (line 416) [INFO] [stdout] src/station/loco.rs - station::loco (line 18) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::control (line 102) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::control_with_steps (line 136) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::drive (line 301) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::function_off (line 466) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::function_on (line 438) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::function_toggle (line 494) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::halt (line 216) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::set_function (line 379) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::set_headlights (line 523) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::stop (line 193) [INFO] [stdout] src/station/loco.rs - station::loco::Loco::subscribe_loco_state (line 332) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 18 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4248fe4465d5651b1dade55f5bd7355cea1dae5ebf2d0a990faf364f788d0db5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4248fe4465d5651b1dade55f5bd7355cea1dae5ebf2d0a990faf364f788d0db5", kill_on_drop: false }` [INFO] [stdout] 4248fe4465d5651b1dade55f5bd7355cea1dae5ebf2d0a990faf364f788d0db5