[INFO] fetching crate z21_api 0.1.0... [INFO] testing z21_api-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate z21_api 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate z21_api 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate z21_api 0.1.0 [INFO] tweaked toml for crates.io crate z21_api 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate z21_api 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate z21_api 0.1.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" "+b83b707f97d809763b7861afa7638871f3339a33" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb9ee230613244dc6941a5f32a5ba4e2ad05c200a2bc6f4bf96cb9f22e4d1284 [INFO] running `Command { std: "docker" "start" "-a" "fb9ee230613244dc6941a5f32a5ba4e2ad05c200a2bc6f4bf96cb9f22e4d1284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb9ee230613244dc6941a5f32a5ba4e2ad05c200a2bc6f4bf96cb9f22e4d1284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb9ee230613244dc6941a5f32a5ba4e2ad05c200a2bc6f4bf96cb9f22e4d1284", kill_on_drop: false }` [INFO] [stdout] fb9ee230613244dc6941a5f32a5ba4e2ad05c200a2bc6f4bf96cb9f22e4d1284 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77fb1b5ba51fb2770b628612113f6cf71dad9cbbeba8883ddc89de28a23d1bdd [INFO] running `Command { std: "docker" "start" "-a" "77fb1b5ba51fb2770b628612113f6cf71dad9cbbeba8883ddc89de28a23d1bdd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.12 [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 v1.43.0 [INFO] [stderr] Compiling z21_api v0.1.0 (/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 8.96s [INFO] running `Command { std: "docker" "inspect" "77fb1b5ba51fb2770b628612113f6cf71dad9cbbeba8883ddc89de28a23d1bdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77fb1b5ba51fb2770b628612113f6cf71dad9cbbeba8883ddc89de28a23d1bdd", kill_on_drop: false }` [INFO] [stdout] 77fb1b5ba51fb2770b628612113f6cf71dad9cbbeba8883ddc89de28a23d1bdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91b9fa2683d159ca322781eb446b8e58e2c9ccb9e18c715fb56476894e4e39bb [INFO] running `Command { std: "docker" "start" "-a" "91b9fa2683d159ca322781eb446b8e58e2c9ccb9e18c715fb56476894e4e39bb", kill_on_drop: false }` [INFO] [stderr] Compiling z21_api v0.1.0 (/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 0.74s [INFO] running `Command { std: "docker" "inspect" "91b9fa2683d159ca322781eb446b8e58e2c9ccb9e18c715fb56476894e4e39bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91b9fa2683d159ca322781eb446b8e58e2c9ccb9e18c715fb56476894e4e39bb", kill_on_drop: false }` [INFO] [stdout] 91b9fa2683d159ca322781eb446b8e58e2c9ccb9e18c715fb56476894e4e39bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2e4cd279ff210fe29c71930c721dbc305f364bcdb974c001b7d369035df7ea18 [INFO] running `Command { std: "docker" "start" "-a" "2e4cd279ff210fe29c71930c721dbc305f364bcdb974c001b7d369035df7ea18", 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: `z21_api` (lib) generated 6 warnings (run `cargo fix --lib -p z21_api` to apply 5 suggestions) [INFO] [stderr] warning: `z21_api` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/roco_z21_driver-990267edc71193d4) [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_only_header ... 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_new_single ... ok [INFO] [stdout] test messages::xbus_message::tests::test_try_from_too_short ... ok [INFO] [stdout] test messages::xbus_message::tests::test_try_from_valid ... ok [INFO] [stdout] test messages::xbus_message::tests::test_new_dbs_vec ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests roco_z21_driver [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::function_off (line 466) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::logout (line 532) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::voltage_on (line 416) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::get_serial_number (line 444) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::new (line 85) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::voltage_off (line 388) ... FAILED [INFO] [stdout] test src/station.rs - station::Z21Station::subscribe_system_state (line 474) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco::Loco::control (line 102) ... 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::function_on (line 438) ... 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::control_with_steps (line 136) ... 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::function_toggle (line 494) ... FAILED [INFO] [stdout] test src/station/loco.rs - station::loco (line 18) ... 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::stop (line 193) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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::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.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::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.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.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::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/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/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::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_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::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::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::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 (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::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::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.74s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2e4cd279ff210fe29c71930c721dbc305f364bcdb974c001b7d369035df7ea18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e4cd279ff210fe29c71930c721dbc305f364bcdb974c001b7d369035df7ea18", kill_on_drop: false }` [INFO] [stdout] 2e4cd279ff210fe29c71930c721dbc305f364bcdb974c001b7d369035df7ea18