[INFO] fetching crate ehlcd2d 0.1.1... [INFO] testing ehlcd2d-0.1.1 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate ehlcd2d 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate ehlcd2d 0.1.1 [INFO] finished tweaking crates.io crate ehlcd2d 0.1.1 [INFO] tweaked toml for crates.io crate ehlcd2d 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ehlcd2d 0.1.1 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 8 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding embedded-io-async v0.6.1 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b4e2244afe54d05cdc5f61bdb1e6f9b262eb755a6c06a38488af18476858686 [INFO] running `Command { std: "docker" "start" "-a" "9b4e2244afe54d05cdc5f61bdb1e6f9b262eb755a6c06a38488af18476858686", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b4e2244afe54d05cdc5f61bdb1e6f9b262eb755a6c06a38488af18476858686", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b4e2244afe54d05cdc5f61bdb1e6f9b262eb755a6c06a38488af18476858686", kill_on_drop: false }` [INFO] [stdout] 9b4e2244afe54d05cdc5f61bdb1e6f9b262eb755a6c06a38488af18476858686 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9083991a087b0fe5ab3c8baa721ac0f82f3ea7827f3bf30d86f0e9c70058cc2 [INFO] running `Command { std: "docker" "start" "-a" "e9083991a087b0fe5ab3c8baa721ac0f82f3ea7827f3bf30d86f0e9c70058cc2", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal-async v1.0.0 [INFO] [stderr] Compiling embedded-io-async v0.6.1 [INFO] [stderr] Compiling embedded-io v0.6.1 [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling ehlcd2d v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "e9083991a087b0fe5ab3c8baa721ac0f82f3ea7827f3bf30d86f0e9c70058cc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9083991a087b0fe5ab3c8baa721ac0f82f3ea7827f3bf30d86f0e9c70058cc2", kill_on_drop: false }` [INFO] [stdout] e9083991a087b0fe5ab3c8baa721ac0f82f3ea7827f3bf30d86f0e9c70058cc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5665b4f574ec51d3ca793d6fa27919b016f4c271fc9f08d6833fa47b62d359c [INFO] running `Command { std: "docker" "start" "-a" "a5665b4f574ec51d3ca793d6fa27919b016f4c271fc9f08d6833fa47b62d359c", kill_on_drop: false }` [INFO] [stderr] Compiling ehlcd2d v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "a5665b4f574ec51d3ca793d6fa27919b016f4c271fc9f08d6833fa47b62d359c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5665b4f574ec51d3ca793d6fa27919b016f4c271fc9f08d6833fa47b62d359c", kill_on_drop: false }` [INFO] [stdout] a5665b4f574ec51d3ca793d6fa27919b016f4c271fc9f08d6833fa47b62d359c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ff24feee7a26689de8188af75cd44e7f9316b80d2318d29c802b397512946c09 [INFO] running `Command { std: "docker" "start" "-a" "ff24feee7a26689de8188af75cd44e7f9316b80d2318d29c802b397512946c09", 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/ehlcd2d-22384e3ecbefa5b6) [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 ehlcd2d [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - Debug (line 24) ... FAILED [INFO] [stdout] test src/lib.rs - (line 24) ... FAILED [INFO] [stdout] test src/nonblocking.rs - nonblocking::Lcd::new (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - Formatter (line 24) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Debug (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 7 | embassy_time::Timer::after_micros(ns.div_ceil(1000) as u64).await; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embassy_time`, use `cargo add embassy_time` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DelayNs` in this scope [INFO] [stdout] --> src/lib.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl DelayNs for EmbassyDelayNs { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_hal_async::delay::DelayNs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lcd` [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^ use of undeclared type `Lcd` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::blocking::Lcd; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::nonblocking::Lcd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/lib.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LcdPinConfiguration` in this scope [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 11 | LcdPinConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::LcdPinConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 12 | en: pins.d7.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 13 | rs: pins.d6.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HalfWidthBus` in this scope [INFO] [stdout] --> src/lib.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 15 | bus: HalfWidthBus { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::HalfWidthBus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 16 | d4: pins.d8.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 17 | d5: pins.d9.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 18 | d6: pins.d10.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 19 | d7: pins.d11.into_output() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lines` [INFO] [stdout] --> src/lib.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 23 | Lines::TwoLines, [INFO] [stdout] | ^^^^^ use of undeclared type `Lines` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use std::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use core::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::Lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EntryMode` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 24 | EntryMode::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EntryMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::EntryMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DisplayControl` [INFO] [stdout] --> src/lib.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `DisplayControl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::DisplayControl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:49:56 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 29 | lcd.write_all("first line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_1() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 31 | lcd.write_all("second line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DummyPin` [INFO] [stdout] --> src/lib.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 14 | rw: DummyPin::new_low(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DummyPin` [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 7 | embassy_time::Timer::after_micros(ns.div_ceil(1000) as u64).await; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embassy_time`, use `cargo add embassy_time` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DelayNs` in this scope [INFO] [stdout] --> src/lib.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl DelayNs for EmbassyDelayNs { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_hal_async::delay::DelayNs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lcd` [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^ use of undeclared type `Lcd` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::blocking::Lcd; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::nonblocking::Lcd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/lib.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LcdPinConfiguration` in this scope [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 11 | LcdPinConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::LcdPinConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 12 | en: pins.d7.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 13 | rs: pins.d6.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HalfWidthBus` in this scope [INFO] [stdout] --> src/lib.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 15 | bus: HalfWidthBus { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::HalfWidthBus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 16 | d4: pins.d8.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 17 | d5: pins.d9.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 18 | d6: pins.d10.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 19 | d7: pins.d11.into_output() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lines` [INFO] [stdout] --> src/lib.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 23 | Lines::TwoLines, [INFO] [stdout] | ^^^^^ use of undeclared type `Lines` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use std::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use core::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::Lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EntryMode` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 24 | EntryMode::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EntryMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::EntryMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DisplayControl` [INFO] [stdout] --> src/lib.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `DisplayControl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::DisplayControl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:49:56 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 29 | lcd.write_all("first line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 31 | lcd.write_all("second line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DummyPin` [INFO] [stdout] --> src/lib.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 14 | rw: DummyPin::new_low(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DummyPin` [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nonblocking.rs - nonblocking::Lcd::new (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lcd` [INFO] [stdout] --> src/nonblocking.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^ use of undeclared type `Lcd` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::blocking::Lcd; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::nonblocking::Lcd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/nonblocking.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 3 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LcdPinConfiguration` in this scope [INFO] [stdout] --> src/nonblocking.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 4 | LcdPinConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::LcdPinConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 5 | en: pins.d7.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 6 | rs: pins.d6.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HalfWidthBus` in this scope [INFO] [stdout] --> src/nonblocking.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 8 | bus: HalfWidthBus { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::HalfWidthBus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 9 | d4: pins.d8.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 10 | d5: pins.d9.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 11 | d6: pins.d10.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/nonblocking.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 12 | d7: pins.d11.into_output() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EmbassyDelayNs` in this scope [INFO] [stdout] --> src/nonblocking.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 15 | EmbassyDelayNs, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lines` [INFO] [stdout] --> src/nonblocking.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 16 | Lines::TwoLines, [INFO] [stdout] | ^^^^^ use of undeclared type `Lines` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use std::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use core::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::Lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EntryMode` [INFO] [stdout] --> src/nonblocking.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 17 | EntryMode::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EntryMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::EntryMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DisplayControl` [INFO] [stdout] --> src/nonblocking.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 20 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `DisplayControl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::DisplayControl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/nonblocking.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 21 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/nonblocking.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 23 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:58:56 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 21 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 22 | lcd.write_all("first line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 23 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/nonblocking.rs:62:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nonblocking_rs_40_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 24 | lcd.write_all("second line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DummyPin` [INFO] [stdout] --> src/nonblocking.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 7 | rw: DummyPin::new_low(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DummyPin` [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Formatter (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 7 | embassy_time::Timer::after_micros(ns.div_ceil(1000) as u64).await; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `embassy_time` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embassy_time`, use `cargo add embassy_time` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DelayNs` in this scope [INFO] [stdout] --> src/lib.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl DelayNs for EmbassyDelayNs { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_hal_async::delay::DelayNs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lcd` [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^ use of undeclared type `Lcd` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::blocking::Lcd; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::nonblocking::Lcd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/lib.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 10 | let mut lcd = Lcd::<_, _, _, _, _, Infallible>::new( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LcdPinConfiguration` in this scope [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 11 | LcdPinConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::LcdPinConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 12 | en: pins.d7.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 13 | rs: pins.d6.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HalfWidthBus` in this scope [INFO] [stdout] --> src/lib.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 15 | bus: HalfWidthBus { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::HalfWidthBus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 16 | d4: pins.d8.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 17 | d5: pins.d9.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 18 | d6: pins.d10.into_output(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pins` in this scope [INFO] [stdout] --> src/lib.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 19 | d7: pins.d11.into_output() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lines` [INFO] [stdout] --> src/lib.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 23 | Lines::TwoLines, [INFO] [stdout] | ^^^^^ use of undeclared type `Lines` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use std::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use core::str::Lines; [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::Lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EntryMode` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 24 | EntryMode::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EntryMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::EntryMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DisplayControl` [INFO] [stdout] --> src/lib.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `DisplayControl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ehlcd2d::DisplayControl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SeekFrom` [INFO] [stdout] --> src/lib.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SeekFrom` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::SeekFrom; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_io_async::SeekFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:49:56 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | lcd.set_display_control(DisplayControl::default()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | lcd.seek(SeekFrom::Start(0)).await.unwrap(); //first line address 0..16 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 29 | lcd.write_all("first line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 30 | lcd.seek(SeekFrom::Start(40)).await.unwrap(); //second line address 40..56 [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_24_2() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 31 | lcd.write_all("second line".as_bytes()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DummyPin` [INFO] [stdout] --> src/lib.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 14 | rw: DummyPin::new_low(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DummyPin` [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 24) [INFO] [stdout] src/lib.rs - Debug (line 24) [INFO] [stdout] src/lib.rs - Formatter (line 24) [INFO] [stdout] src/nonblocking.rs - nonblocking::Lcd::new (line 40) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ff24feee7a26689de8188af75cd44e7f9316b80d2318d29c802b397512946c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff24feee7a26689de8188af75cd44e7f9316b80d2318d29c802b397512946c09", kill_on_drop: false }` [INFO] [stdout] ff24feee7a26689de8188af75cd44e7f9316b80d2318d29c802b397512946c09