[INFO] fetching crate edrv-ssd1327 0.0.1... [INFO] testing edrv-ssd1327-0.0.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate edrv-ssd1327 0.0.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate edrv-ssd1327 0.0.1 [INFO] finished tweaking crates.io crate edrv-ssd1327 0.0.1 [INFO] tweaked toml for crates.io crate edrv-ssd1327 0.0.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate edrv-ssd1327 0.0.1 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages to latest compatible versions [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 2f21dabe16e93310a615bbb7cbfe73fa5269874c369b38c9ae60c9a3dd96793a [INFO] running `Command { std: "docker" "start" "-a" "2f21dabe16e93310a615bbb7cbfe73fa5269874c369b38c9ae60c9a3dd96793a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f21dabe16e93310a615bbb7cbfe73fa5269874c369b38c9ae60c9a3dd96793a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f21dabe16e93310a615bbb7cbfe73fa5269874c369b38c9ae60c9a3dd96793a", kill_on_drop: false }` [INFO] [stdout] 2f21dabe16e93310a615bbb7cbfe73fa5269874c369b38c9ae60c9a3dd96793a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f7bbb47c2e40108ca6dcb120c308c1dca51ad03ef87fd3ef633fa71f0b73e1d9 [INFO] running `Command { std: "docker" "start" "-a" "f7bbb47c2e40108ca6dcb120c308c1dca51ad03ef87fd3ef633fa71f0b73e1d9", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal-async v1.0.0 [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling edrv-ssd1327 v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "f7bbb47c2e40108ca6dcb120c308c1dca51ad03ef87fd3ef633fa71f0b73e1d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7bbb47c2e40108ca6dcb120c308c1dca51ad03ef87fd3ef633fa71f0b73e1d9", kill_on_drop: false }` [INFO] [stdout] f7bbb47c2e40108ca6dcb120c308c1dca51ad03ef87fd3ef633fa71f0b73e1d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a87184891b0cb0fba66c192e5e2755d46afa5ec5a737f34c63bf780ce9b2b138 [INFO] running `Command { std: "docker" "start" "-a" "a87184891b0cb0fba66c192e5e2755d46afa5ec5a737f34c63bf780ce9b2b138", kill_on_drop: false }` [INFO] [stderr] Compiling edrv-ssd1327 v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "a87184891b0cb0fba66c192e5e2755d46afa5ec5a737f34c63bf780ce9b2b138", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a87184891b0cb0fba66c192e5e2755d46afa5ec5a737f34c63bf780ce9b2b138", kill_on_drop: false }` [INFO] [stdout] a87184891b0cb0fba66c192e5e2755d46afa5ec5a737f34c63bf780ce9b2b138 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 0b675df80edfee30efa67365587b976b794b21aaf510104a2481e4f2e6d788d4 [INFO] running `Command { std: "docker" "start" "-a" "0b675df80edfee30efa67365587b976b794b21aaf510104a2481e4f2e6d788d4", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/edrv_ssd1327-57ce5a2b89ce0e39) [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 edrv_ssd1327 [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/blocking.rs - blocking::SSD1327 (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - SSD1327 (line 80) ... FAILED [INFO] [stdout] test src/blocking.rs - blocking (line 5) ... FAILED [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/blocking.rs - blocking::SSD1327 (line 36) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] --> src/blocking.rs:37:64 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embedded_graphics`, use `cargo add embedded_graphics` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/blocking.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_36_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/blocking.rs:37:38 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_36_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/blocking.rs:37:110 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_36_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/blocking.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_36_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/blocking.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_36_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Framebuffer` [INFO] [stdout] --> src/blocking.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Framebuffer` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Framebuffer` [INFO] [stdout] --> src/blocking.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Framebuffer` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SSD1327 (line 80) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] --> src/lib.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embedded_graphics`, use `cargo add embedded_graphics` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/lib.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_80_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/lib.rs:81:38 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_80_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/lib.rs:81:110 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_80_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/lib.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_80_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/lib.rs:83:38 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_80_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Framebuffer` [INFO] [stdout] --> src/lib.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fb = Framebuffer::(128, 128) }>::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Framebuffer` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Framebuffer` [INFO] [stdout] --> src/lib.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 5 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Framebuffer` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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/blocking.rs - blocking (line 5) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] --> src/blocking.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use embedded_graphics::framebuffer::Framebuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embedded_graphics`, use `cargo add embedded_graphics` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hal` [INFO] [stdout] --> src/blocking.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 10 | let mut config = hal::spi::Config::default(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hal`, use `cargo add hal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hal` [INFO] [stdout] --> src/blocking.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_blocking_txonly(r.spi1, r.sclk, r.mosi, config); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hal`, use `cargo add hal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] --> src/blocking.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 14 | let spi_bus = embedded_hal_bus::util::AtomicCell::new(spi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 14 - let spi_bus = embedded_hal_bus::util::AtomicCell::new(spi); [INFO] [stdout] 14 + let spi_bus = embedded_hal::util::AtomicCell::new(spi); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] --> src/blocking.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 15 | let spi_dev = embedded_hal_bus::spi::AtomicDevice::new(&spi_bus, cs, Delay).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 15 - let spi_dev = embedded_hal_bus::spi::AtomicDevice::new(&spi_bus, cs, Delay).unwrap(); [INFO] [stdout] 15 + let spi_dev = embedded_hal::spi::AtomicDevice::new(&spi_bus, cs, Delay).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Output` [INFO] [stdout] --> src/blocking.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Output` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::process::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/blocking.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Output` [INFO] [stdout] --> src/blocking.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Output` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::process::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/blocking.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/blocking.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_blocking_txonly(r.spi1, r.sclk, r.mosi, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/blocking.rs:14:54 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_blocking_txonly(r.spi1, r.sclk, r.mosi, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/blocking.rs:14:62 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_blocking_txonly(r.spi1, r.sclk, r.mosi, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Delay` in this scope [INFO] [stdout] --> src/blocking.rs:17:70 [INFO] [stdout] | [INFO] [stdout] 15 | let spi_dev = embedded_hal_bus::spi::AtomicDevice::new(&spi_bus, cs, Delay).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/blocking.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 20 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_5_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/blocking.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 20 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_blocking_rs_5_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Level` [INFO] [stdout] --> src/blocking.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Level` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Level` [INFO] [stdout] --> src/blocking.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Level` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hertz` [INFO] [stdout] --> src/blocking.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 11 | config.frequency = Hertz::mhz(20); [INFO] [stdout] | ^^^^^ use of undeclared type `Hertz` [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use embedded_graphics::framebuffer::Framebuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_graphics` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embedded_graphics`, use `cargo add embedded_graphics` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hal` [INFO] [stdout] --> src/lib.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 10 | let mut config = hal::spi::Config::default(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hal`, use `cargo add hal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hal` [INFO] [stdout] --> src/lib.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_txonly(r.spi1, r.sclk, r.mosi, r.dma_ch0, config); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hal`, use `cargo add hal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Output` [INFO] [stdout] --> src/lib.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Output` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::process::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Output` [INFO] [stdout] --> src/lib.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Output` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::process::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_txonly(r.spi1, r.sclk, r.mosi, r.dma_ch0, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:14:45 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_txonly(r.spi1, r.sclk, r.mosi, r.dma_ch0, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_txonly(r.spi1, r.sclk, r.mosi, r.dma_ch0, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r` in this scope [INFO] [stdout] --> src/lib.rs:14:61 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = hal::spi::Spi::new_txonly(r.spi1, r.sclk, r.mosi, r.dma_ch0, config); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embassy_sync` [INFO] [stdout] --> src/lib.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 13 | let spi_bus = embassy_sync::mutex::Mutex::::new(spi); [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `embassy_sync` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embassy_sync`, use `cargo add embassy_sync` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::Mutex; [INFO] [stdout] | [INFO] [stdout] help: if you import `Mutex`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 13 - let spi_bus = embassy_sync::mutex::Mutex::::new(spi); [INFO] [stdout] 13 + let spi_bus = Mutex::::new(spi); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoopRawMutex` in this scope [INFO] [stdout] --> src/lib.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 13 | let spi_bus = embassy_sync::mutex::Mutex::::new(spi); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embassy_embedded_hal` [INFO] [stdout] --> src/lib.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 14 | let spi_dev = embassy_embedded_hal::shared_bus::asynch::spi::SpiDevice::new(&spi_bus, cs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embassy_embedded_hal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `embassy_embedded_hal`, use `cargo add embassy_embedded_hal` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these traits [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_hal::spi::SpiDevice; [INFO] [stdout] | [INFO] [stdout] 2 + use embedded_hal_async::spi::SpiDevice; [INFO] [stdout] | [INFO] [stdout] help: if you import `SpiDevice`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 14 - let spi_dev = embassy_embedded_hal::shared_bus::asynch::spi::SpiDevice::new(&spi_bus, cs); [INFO] [stdout] 14 + let spi_dev = SpiDevice::new(&spi_bus, cs); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Gray4` in this scope [INFO] [stdout] --> src/lib.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 17 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/lib.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut fb = Framebuffer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | ssd1327.init().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:23:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 21 | ssd1327.write_framebuffer(fb.data()).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Level` [INFO] [stdout] --> src/lib.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 7 | let dc = Output::new(r.dc, Level::Low, Default::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Level` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Level` [INFO] [stdout] --> src/lib.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 8 | let cs = Output::new(r.cs, Level::High, Default::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Level` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hertz` [INFO] [stdout] --> src/lib.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 11 | config.frequency = Hertz::mhz(20); [INFO] [stdout] | ^^^^^ use of undeclared type `Hertz` [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/blocking.rs - blocking (line 5) [INFO] [stdout] src/blocking.rs - blocking::SSD1327 (line 36) [INFO] [stdout] src/lib.rs - (line 5) [INFO] [stdout] src/lib.rs - SSD1327 (line 80) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0b675df80edfee30efa67365587b976b794b21aaf510104a2481e4f2e6d788d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b675df80edfee30efa67365587b976b794b21aaf510104a2481e4f2e6d788d4", kill_on_drop: false }` [INFO] [stdout] 0b675df80edfee30efa67365587b976b794b21aaf510104a2481e4f2e6d788d4