[INFO] fetching crate e310x-hal 0.11.0...
[INFO] testing e310x-hal-0.11.0 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate e310x-hal 0.11.0 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate e310x-hal 0.11.0 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate e310x-hal 0.11.0
[INFO] finished tweaking crates.io crate e310x-hal 0.11.0
[INFO] tweaked toml for crates.io crate e310x-hal 0.11.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 10 packages to latest compatible versions
[INFO] [stderr]       Adding embedded-hal v0.2.7 (latest: v1.0.0)
[INFO] [stderr]       Adding nb v0.1.3 (latest: v1.1.0)
[INFO] [stderr]       Adding riscv v0.10.1 (latest: v0.11.1)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded riscv v0.10.1
[INFO] [stderr]   Downloaded e310x 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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4e20c6b470ccc29866294cdef788e4a21b8b26e02dc82ac8dd3a0f017aa0b58b
[INFO] running `Command { std: "docker" "start" "-a" "4e20c6b470ccc29866294cdef788e4a21b8b26e02dc82ac8dd3a0f017aa0b58b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4e20c6b470ccc29866294cdef788e4a21b8b26e02dc82ac8dd3a0f017aa0b58b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4e20c6b470ccc29866294cdef788e4a21b8b26e02dc82ac8dd3a0f017aa0b58b", kill_on_drop: false }`
[INFO] [stdout] 4e20c6b470ccc29866294cdef788e4a21b8b26e02dc82ac8dd3a0f017aa0b58b
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 906c041aee85815676c6e6e62639a37d783e158b4866b60dee7941aaffd8d3ab
[INFO] running `Command { std: "docker" "start" "-a" "906c041aee85815676c6e6e62639a37d783e158b4866b60dee7941aaffd8d3ab", kill_on_drop: false }`
[INFO] [stderr]    Compiling nb v1.1.0
[INFO] [stderr]    Compiling riscv v0.10.1
[INFO] [stderr]    Compiling e310x v0.11.0
[INFO] [stderr]    Compiling void v1.0.2
[INFO] [stderr]    Compiling critical-section v1.1.2
[INFO] [stderr]    Compiling bit_field v0.10.2
[INFO] [stderr]    Compiling vcell v0.1.3
[INFO] [stderr]    Compiling nb v0.1.3
[INFO] [stderr]    Compiling embedded-hal v0.2.7
[INFO] [stderr]    Compiling e310x-hal v0.11.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `MODE_0`, `MODE_1`, `MODE_2`, `MODE_3`, `Mode`, `Phase`, `Polarity`
[INFO] [stdout]  --> src/spi/shared_bus.rs:3:29
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
[INFO] [stdout]   |                             ^^^^  ^^^^^  ^^^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.45s
[INFO] running `Command { std: "docker" "inspect" "906c041aee85815676c6e6e62639a37d783e158b4866b60dee7941aaffd8d3ab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "906c041aee85815676c6e6e62639a37d783e158b4866b60dee7941aaffd8d3ab", kill_on_drop: false }`
[INFO] [stdout] 906c041aee85815676c6e6e62639a37d783e158b4866b60dee7941aaffd8d3ab
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 78067a44889fa752ce67bd9a7846e40ae6a34731cae876659efeb035c7489ed4
[INFO] running `Command { std: "docker" "start" "-a" "78067a44889fa752ce67bd9a7846e40ae6a34731cae876659efeb035c7489ed4", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `MODE_0`, `MODE_1`, `MODE_2`, `MODE_3`, `Mode`, `Phase`, `Polarity`
[INFO] [stdout]  --> src/spi/shared_bus.rs:3:29
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
[INFO] [stdout]   |                             ^^^^  ^^^^^  ^^^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling e310x-hal v0.11.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `MODE_0`, `MODE_1`, `MODE_2`, `MODE_3`, `Mode`, `Phase`, `Polarity`
[INFO] [stdout]  --> src/spi/shared_bus.rs:3:29
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
[INFO] [stdout]   |                             ^^^^  ^^^^^  ^^^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.79s
[INFO] running `Command { std: "docker" "inspect" "78067a44889fa752ce67bd9a7846e40ae6a34731cae876659efeb035c7489ed4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78067a44889fa752ce67bd9a7846e40ae6a34731cae876659efeb035c7489ed4", kill_on_drop: false }`
[INFO] [stdout] 78067a44889fa752ce67bd9a7846e40ae6a34731cae876659efeb035c7489ed4
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 1312b7a3264b0ca8f87a0dfc95b64c43a6341eb2f713a500d501986a3e1eb5aa
[INFO] running `Command { std: "docker" "start" "-a" "1312b7a3264b0ca8f87a0dfc95b64c43a6341eb2f713a500d501986a3e1eb5aa", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `MODE_0`, `MODE_1`, `MODE_2`, `MODE_3`, `Mode`, `Phase`, `Polarity`
[INFO] [stderr]  --> src/spi/shared_bus.rs:3:29
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
[INFO] [stderr]   |                             ^^^^  ^^^^^  ^^^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^  ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `e310x-hal` (lib) generated 1 warning (run `cargo fix --lib -p e310x-hal` to apply 1 suggestion)
[INFO] [stderr] warning: `e310x-hal` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/e310x_hal-274e5bb1c6ec65c9)
[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 e310x_hal
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test src/spi.rs - spi (line 27) ... FAILED
[INFO] [stdout] test src/spi.rs - spi (line 38) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/spi.rs - spi (line 27) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `mosi` in this scope
[INFO] [stdout]  --> src/spi.rs:28:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck, cs0);
[INFO] [stdout]   |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `miso` in this scope
[INFO] [stdout]  --> src/spi.rs:28:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck, cs0);
[INFO] [stdout]   |                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sck` in this scope
[INFO] [stdout]  --> src/spi.rs:28:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck, cs0);
[INFO] [stdout]   |                         ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cs0` in this scope
[INFO] [stdout]  --> src/spi.rs:28:30
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck, cs0);
[INFO] [stdout]   |                              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpiBus`
[INFO] [stdout]  --> src/spi.rs:29:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |  let spi_bus = SpiBus::new(p.QSPI1, pins);
[INFO] [stdout]   |                ^^^^^^ use of undeclared type `SpiBus`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::SpiBus;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `p` in this scope
[INFO] [stdout]  --> src/spi.rs:29:28
[INFO] [stdout]   |
[INFO] [stdout] 4 |  let spi_bus = SpiBus::new(p.QSPI1, pins);
[INFO] [stdout]   |                            ^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpiConfig`
[INFO] [stdout]  --> src/spi.rs:31:19
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                   ^^^^^^^^^ use of undeclared type `SpiConfig`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::SpiConfig;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MODE_0` in this scope
[INFO] [stdout]  --> src/spi.rs:31:34
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                  ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::MODE_0;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use embedded_hal::spi::MODE_0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `clocks` in this scope
[INFO] [stdout]  --> src/spi.rs:31:61
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                                             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `khz` on ambiguous numeric type `{integer}`
[INFO] [stdout]  --> src/spi.rs:31:46
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                              ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32`
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config = SpiConfig::new(MODE_0, 100_i32.khz().into(), &clocks);
[INFO] [stdout]   |                                          ~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0689.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/spi.rs - spi (line 38) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `mosi` in this scope
[INFO] [stdout]  --> src/spi.rs:39:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck);
[INFO] [stdout]   |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `miso` in this scope
[INFO] [stdout]  --> src/spi.rs:39:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck);
[INFO] [stdout]   |                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sck` in this scope
[INFO] [stdout]  --> src/spi.rs:39:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | let pins = (mosi, miso, sck);
[INFO] [stdout]   |                         ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpiBus`
[INFO] [stdout]  --> src/spi.rs:40:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |  let spi_bus = SpiBus::shared(p.QSPI1, pins);
[INFO] [stdout]   |                ^^^^^^ use of undeclared type `SpiBus`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::SpiBus;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `p` in this scope
[INFO] [stdout]  --> src/spi.rs:40:31
[INFO] [stdout]   |
[INFO] [stdout] 4 |  let spi_bus = SpiBus::shared(p.QSPI1, pins);
[INFO] [stdout]   |                               ^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpiConfig`
[INFO] [stdout]  --> src/spi.rs:42:20
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config1 = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                    ^^^^^^^^^ use of undeclared type `SpiConfig`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::SpiConfig;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MODE_0` in this scope
[INFO] [stdout]  --> src/spi.rs:42:35
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config1 = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                   ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::MODE_0;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use embedded_hal::spi::MODE_0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `clocks` in this scope
[INFO] [stdout]  --> src/spi.rs:42:62
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config1 = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                                              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cs0` in this scope
[INFO] [stdout]  --> src/spi.rs:43:36
[INFO] [stdout]   |
[INFO] [stdout] 7 |  let mut dev1 = spi_bus.new_device(cs0, &spi_config1);
[INFO] [stdout]   |                                    ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpiConfig`
[INFO] [stdout]  --> src/spi.rs:45:20
[INFO] [stdout]   |
[INFO] [stdout] 9 |  let spi_config2 = SpiConfig::new(MODE_3, 2.mhz().into(), &clocks);
[INFO] [stdout]   |                    ^^^^^^^^^ use of undeclared type `SpiConfig`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::SpiConfig;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MODE_3` in this scope
[INFO] [stdout]  --> src/spi.rs:45:35
[INFO] [stdout]   |
[INFO] [stdout] 9 |  let spi_config2 = SpiConfig::new(MODE_3, 2.mhz().into(), &clocks);
[INFO] [stdout]   |                                   ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use e310x_hal::spi::MODE_3;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use embedded_hal::spi::MODE_3;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `clocks` in this scope
[INFO] [stdout]  --> src/spi.rs:45:60
[INFO] [stdout]   |
[INFO] [stdout] 9 |  let spi_config2 = SpiConfig::new(MODE_3, 2.mhz().into(), &clocks);
[INFO] [stdout]   |                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cs1` in this scope
[INFO] [stdout]   --> src/spi.rs:46:36
[INFO] [stdout]    |
[INFO] [stdout] 10 |  let mut dev2 = spi_bus.new_device(cs1, &spi_config2);
[INFO] [stdout]    |                                    ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `khz` on ambiguous numeric type `{integer}`
[INFO] [stdout]  --> src/spi.rs:42:47
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config1 = SpiConfig::new(MODE_0, 100.khz().into(), &clocks);
[INFO] [stdout]   |                                               ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32`
[INFO] [stdout]   |
[INFO] [stdout] 6 |  let spi_config1 = SpiConfig::new(MODE_0, 100_i32.khz().into(), &clocks);
[INFO] [stdout]   |                                           ~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `mhz` on ambiguous numeric type `{integer}`
[INFO] [stdout]  --> src/spi.rs:45:45
[INFO] [stdout]   |
[INFO] [stdout] 9 |  let spi_config2 = SpiConfig::new(MODE_3, 2.mhz().into(), &clocks);
[INFO] [stdout]   |                                             ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32`
[INFO] [stdout]   |
[INFO] [stdout] 9 |  let spi_config2 = SpiConfig::new(MODE_3, 2_i32.mhz().into(), &clocks);
[INFO] [stdout]   |                                           ~~~~~
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 15 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0689.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/spi.rs - spi (line 27)
[INFO] [stdout]     src/spi.rs - spi (line 38)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "1312b7a3264b0ca8f87a0dfc95b64c43a6341eb2f713a500d501986a3e1eb5aa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1312b7a3264b0ca8f87a0dfc95b64c43a6341eb2f713a500d501986a3e1eb5aa", kill_on_drop: false }`
[INFO] [stdout] 1312b7a3264b0ca8f87a0dfc95b64c43a6341eb2f713a500d501986a3e1eb5aa
