[INFO] fetching crate sdio_sdhc 0.2.3... [INFO] testing sdio_sdhc-0.2.3 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate sdio_sdhc 0.2.3 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate sdio_sdhc 0.2.3 [INFO] finished tweaking crates.io crate sdio_sdhc 0.2.3 [INFO] tweaked toml for crates.io crate sdio_sdhc 0.2.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sdio_sdhc 0.2.3 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 35 packages to latest compatible versions [INFO] [stderr] Adding cortex-m v0.6.7 (available: v0.7.7) [INFO] [stderr] Adding stm32f4xx-hal v0.8.3 (available: v0.23.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded block_device v0.1.3 [INFO] [stderr] Downloaded stm32f4xx-hal v0.8.3 [INFO] [stderr] Downloaded stm32f4 v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b6a43c4b28531c9a544812cba5c5c8cf955b4d978d73853c5c1ae5eecd6a4bb [INFO] running `Command { std: "docker" "start" "-a" "7b6a43c4b28531c9a544812cba5c5c8cf955b4d978d73853c5c1ae5eecd6a4bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b6a43c4b28531c9a544812cba5c5c8cf955b4d978d73853c5c1ae5eecd6a4bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b6a43c4b28531c9a544812cba5c5c8cf955b4d978d73853c5c1ae5eecd6a4bb", kill_on_drop: false }` [INFO] [stdout] 7b6a43c4b28531c9a544812cba5c5c8cf955b4d978d73853c5c1ae5eecd6a4bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7bab51eab3390ed7acb178a9f18fd0032889e65bc624c256d013c1e7515527dc [INFO] running `Command { std: "docker" "start" "-a" "7bab51eab3390ed7acb178a9f18fd0032889e65bc624c256d013c1e7515527dc", kill_on_drop: false }` [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling vcell v0.1.3 [INFO] [stderr] Compiling cortex-m v0.6.7 [INFO] [stderr] Compiling bitfield v0.13.2 [INFO] [stderr] Compiling cortex-m-rt v0.6.15 [INFO] [stderr] Compiling stm32f4 v0.11.0 [INFO] [stderr] Compiling r0 v0.2.2 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling volatile-register v0.2.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling as-slice v0.1.5 [INFO] [stderr] Compiling aligned v0.3.5 [INFO] [stderr] Compiling cortex-m-rt-macros v0.6.15 [INFO] [stderr] Compiling stm32f4xx-hal v0.8.3 [INFO] [stderr] Compiling sdio_sdhc v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.86s [INFO] running `Command { std: "docker" "inspect" "7bab51eab3390ed7acb178a9f18fd0032889e65bc624c256d013c1e7515527dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bab51eab3390ed7acb178a9f18fd0032889e65bc624c256d013c1e7515527dc", kill_on_drop: false }` [INFO] [stdout] 7bab51eab3390ed7acb178a9f18fd0032889e65bc624c256d013c1e7515527dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98d8f68320b71c842611ae65094b0926fc103cd0c2d32111bba4fc8ffab51f3e [INFO] running `Command { std: "docker" "start" "-a" "98d8f68320b71c842611ae65094b0926fc103cd0c2d32111bba4fc8ffab51f3e", kill_on_drop: false }` [INFO] [stderr] Compiling sdio_sdhc v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "98d8f68320b71c842611ae65094b0926fc103cd0c2d32111bba4fc8ffab51f3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98d8f68320b71c842611ae65094b0926fc103cd0c2d32111bba4fc8ffab51f3e", kill_on_drop: false }` [INFO] [stdout] 98d8f68320b71c842611ae65094b0926fc103cd0c2d32111bba4fc8ffab51f3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3b43a421190668c1d1944865ed7a74394d585b7bfa9984a9537cac804035b4db [INFO] running `Command { std: "docker" "start" "-a" "3b43a421190668c1d1944865ed7a74394d585b7bfa9984a9537cac804035b4db", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sdio_sdhc-5dacdd4d15a722ec) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests sdio_sdhc [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 83) ... FAILED [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] test src/lib.rs - (line 10) ... FAILED [INFO] [stdout] test src/lib.rs - (line 62) ... FAILED [INFO] [stdout] test src/lib.rs - (line 96) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 83) stdout ---- [INFO] [stdout] error: missing `struct` for struct definition [INFO] [stdout] --> src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `struct` here to parse `Card` as a struct [INFO] [stdout] | [INFO] [stdout] 84 | struct Card { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,` [INFO] [stdout] --> src/lib.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | stm32fxxx-hal = { version = "xxx", features = ["xxx"] } [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stm32fxxx` in this scope [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | stm32fxxx-hal = { version = "xxx", features = ["xxx"] } [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hal` in this scope [INFO] [stdout] --> src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | stm32fxxx-hal = { version = "xxx", features = ["xxx"] } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | stm32fxxx-hal = { version = "xxx", features = ["xxx"] } [INFO] [stdout] | ------------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `stm32` [INFO] [stdout] --> src/lib.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | rcc: &mut stm32::RCC, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `stm32` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `stm32`, use `cargo add stm32` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 10 + use stm32f4xx_hal::stm32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `stm32` [INFO] [stdout] --> src/lib.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | gpioc: &mut stm32::GPIOC, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `stm32` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `stm32`, use `cargo add stm32` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 10 + use stm32f4xx_hal::stm32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `stm32` [INFO] [stdout] --> src/lib.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | gpiod: &mut stm32::GPIOD, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `stm32` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `stm32`, use `cargo add stm32` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 10 + use stm32f4xx_hal::stm32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | rcc.ahb1enr.modify(|_r, w| w.gpiocen().set_bit().gpioden().set_bit()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 17 | rcc.ahb1enr.modify(|_r, w: /* Type */| w.gpiocen().set_bit().gpioden().set_bit()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | gpioc.afrh.modify(|_r, w| [INFO] [stdout] | ^ [INFO] [stdout] 20 | w.afrh8().af12() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 19 | gpioc.afrh.modify(|_r, w: /* Type */| [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | gpiod.afrl.modify(|_r, w| w.afrl2().af12()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 25 | gpiod.afrl.modify(|_r, w: /* Type */| w.afrl2().af12()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | gpioc.moder.modify(|_r, w| [INFO] [stdout] | ^ [INFO] [stdout] 28 | w.moder8().alternate() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 27 | gpioc.moder.modify(|_r, w: /* Type */| [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | gpiod.moder.modify(|_r, w| w.moder2().alternate()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 33 | gpiod.moder.modify(|_r, w: /* Type */| w.moder2().alternate()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | gpioc.ospeedr.modify(|_r, w| [INFO] [stdout] | ^ [INFO] [stdout] 36 | w.ospeedr8().high_speed() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 35 | gpioc.ospeedr.modify(|_r, w: /* Type */| [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | gpiod.ospeedr.modify(|_r, w| w.ospeedr2().high_speed()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 41 | gpiod.ospeedr.modify(|_r, w: /* Type */| w.ospeedr2().high_speed()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | gpioc.otyper.modify(|_r, w| [INFO] [stdout] | ^ [INFO] [stdout] 44 | w.ot8().push_pull() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 43 | gpioc.otyper.modify(|_r, w: /* Type */| [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | gpiod.otyper.modify(|_r, w| w.ot2().push_pull()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 49 | gpiod.otyper.modify(|_r, w: /* Type */| w.ot2().push_pull()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | gpioc.pupdr.modify(|_r, w| [INFO] [stdout] | ^ [INFO] [stdout] 52 | w.pupdr8().pull_up() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 51 | gpioc.pupdr.modify(|_r, w: /* Type */| [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | gpiod.pupdr.modify(|_r, w| w.pupdr2().pull_up()); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 57 | gpiod.pupdr.modify(|_r, w: /* Type */| w.pupdr2().pull_up()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 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/lib.rs - (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Card` [INFO] [stdout] --> src/lib.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | let card = Card::init().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Card` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 62 + use sdio_sdhc::sdcard::Card; [INFO] [stdout] | [INFO] [stdout] 62 + use stm32f4xx_hal::sdio::Card; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USART1` in this scope [INFO] [stdout] --> src/lib.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | writeln!(USART1, "{:#?}", card).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 62 + use stm32f4xx_hal::stm32::Interrupt::USART1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USART1` in this scope [INFO] [stdout] --> src/lib.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | writeln!(USART1, "{:?}", &buf[0..buf.len()]).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 62 + use stm32f4xx_hal::stm32::Interrupt::USART1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USART1` in this scope [INFO] [stdout] --> src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | writeln!(USART1, "{:?}", &buf[0..buf.len()]).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 62 + use stm32f4xx_hal::stm32::Interrupt::USART1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 96) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,` [INFO] [stdout] --> src/lib.rs:98:30 [INFO] [stdout] | [INFO] [stdout] 98 | sdio_sdhc = { version = "0.2", features = ["filesystem"] } [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `sdio_sdhc` [INFO] [stdout] --> src/lib.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | sdio_sdhc = { version = "0.2", features = ["filesystem"] } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 98 | let sdio_sdhc = { version = "0.2", features = ["filesystem"] } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 10) [INFO] [stdout] src/lib.rs - (line 5) [INFO] [stdout] src/lib.rs - (line 62) [INFO] [stdout] src/lib.rs - (line 83) [INFO] [stdout] src/lib.rs - (line 96) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3b43a421190668c1d1944865ed7a74394d585b7bfa9984a9537cac804035b4db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b43a421190668c1d1944865ed7a74394d585b7bfa9984a9537cac804035b4db", kill_on_drop: false }` [INFO] [stdout] 3b43a421190668c1d1944865ed7a74394d585b7bfa9984a9537cac804035b4db