[INFO] fetching crate ldc3114 0.2.0... [INFO] testing ldc3114-0.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate ldc3114 0.2.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate ldc3114 0.2.0 [INFO] finished tweaking crates.io crate ldc3114 0.2.0 [INFO] tweaked toml for crates.io crate ldc3114 0.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ldc3114 0.2.0 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] crate crates.io crate ldc3114 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 9c86e2370d5dbd1d54479acdc0032feecb9eb22d2b021dc15f3e0f25325d0cf0 [INFO] running `Command { std: "docker" "start" "-a" "9c86e2370d5dbd1d54479acdc0032feecb9eb22d2b021dc15f3e0f25325d0cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c86e2370d5dbd1d54479acdc0032feecb9eb22d2b021dc15f3e0f25325d0cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c86e2370d5dbd1d54479acdc0032feecb9eb22d2b021dc15f3e0f25325d0cf0", kill_on_drop: false }` [INFO] [stdout] 9c86e2370d5dbd1d54479acdc0032feecb9eb22d2b021dc15f3e0f25325d0cf0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 6d21c348dbf567f1665c3f966ea3e2fbacbf0a40983991db41759e21c37366d6 [INFO] running `Command { std: "docker" "start" "-a" "6d21c348dbf567f1665c3f966ea3e2fbacbf0a40983991db41759e21c37366d6", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling ldc3114 v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "6d21c348dbf567f1665c3f966ea3e2fbacbf0a40983991db41759e21c37366d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d21c348dbf567f1665c3f966ea3e2fbacbf0a40983991db41759e21c37366d6", kill_on_drop: false }` [INFO] [stdout] 6d21c348dbf567f1665c3f966ea3e2fbacbf0a40983991db41759e21c37366d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] e823284a530c626f2007a153c73e120d4d53037043916caa987355b5acdd7a2a [INFO] running `Command { std: "docker" "start" "-a" "e823284a530c626f2007a153c73e120d4d53037043916caa987355b5acdd7a2a", kill_on_drop: false }` [INFO] [stderr] Compiling ldc3114 v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "e823284a530c626f2007a153c73e120d4d53037043916caa987355b5acdd7a2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e823284a530c626f2007a153c73e120d4d53037043916caa987355b5acdd7a2a", kill_on_drop: false }` [INFO] [stdout] e823284a530c626f2007a153c73e120d4d53037043916caa987355b5acdd7a2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 1e8d9706dfbc1abf6a5de19bacb570fe0201f957962bb8ea5e295bd5144f4d3f [INFO] running `Command { std: "docker" "start" "-a" "1e8d9706dfbc1abf6a5de19bacb570fe0201f957962bb8ea5e295bd5144f4d3f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ldc3114-652dc67f81c645c0) [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 ldc3114 [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/sync.rs - sync::Ldc3114::read_raw_data (line 128) ... FAILED [INFO] [stdout] test src/../README.md - (line 51) ... FAILED [INFO] [stdout] test src/../README.md - (line 60) ... FAILED [INFO] [stdout] test src/sync.rs - sync::Ldc3114::read_raw_data (line 124) ... FAILED [INFO] [stdout] test src/../README.md - (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/sync.rs - sync::Ldc3114::read_raw_data (line 128) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `W` in this scope [INFO] [stdout] --> src/sync.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | W = 128 * (1 + SENCY_n) * (2^LCDIV) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 3 | let W = 128 * (1 + SENCY_n) * (2^LCDIV) [INFO] [stdout] | +++ [INFO] [stdout] help: you might be missing a const parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_sync_rs_128_0() { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SENCY_n` in this scope [INFO] [stdout] --> src/sync.rs:129:16 [INFO] [stdout] | [INFO] [stdout] 3 | W = 128 * (1 + SENCY_n) * (2^LCDIV) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LCDIV` in this scope [INFO] [stdout] --> src/sync.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 3 | W = 128 * (1 + SENCY_n) * (2^LCDIV) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 51) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `DeviceConfig` in this scope [INFO] [stdout] --> src/../README.md:52:23 [INFO] [stdout] | [INFO] [stdout] 3 | const LDC3114_CONFIG: DeviceConfig = DeviceConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::DeviceConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DeviceConfig` in this scope [INFO] [stdout] --> src/../README.md:52:38 [INFO] [stdout] | [INFO] [stdout] 3 | const LDC3114_CONFIG: DeviceConfig = DeviceConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::DeviceConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScanRate` [INFO] [stdout] --> src/../README.md:53:16 [INFO] [stdout] | [INFO] [stdout] 4 | scan_rate: ScanRate::Highest, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ScanRate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::ScanRate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DeviceConfig` [INFO] [stdout] --> src/../README.md:54:7 [INFO] [stdout] | [INFO] [stdout] 5 | ..DeviceConfig::const_default() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `DeviceConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::DeviceConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 60) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `inductance_sensor` in this scope [INFO] [stdout] --> src/../README.md:61:1 [INFO] [stdout] | [INFO] [stdout] 3 | inductance_sensor.set_device_configuration(&LDC3114_CONFIG).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LDC3114_CONFIG` in this scope [INFO] [stdout] --> src/../README.md:61:45 [INFO] [stdout] | [INFO] [stdout] 3 | inductance_sensor.set_device_configuration(&LDC3114_CONFIG).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/../README.md:61:61 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_60_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 3 | inductance_sensor.set_device_configuration(&LDC3114_CONFIG).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/sync.rs - sync::Ldc3114::read_raw_data (line 124) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `f_sensor` in this scope [INFO] [stdout] --> src/sync.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 3 | f_sensor = 30 * W * 44_000_000 / raw_data [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 3 | let f_sensor = 30 * W * 44_000_000 / raw_data [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `W` in this scope [INFO] [stdout] --> src/sync.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 3 | f_sensor = 30 * W * 44_000_000 / raw_data [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a const parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_sync_rs_124_0() { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `raw_data` in this scope [INFO] [stdout] --> src/sync.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 3 | f_sensor = 30 * W * 44_000_000 / raw_data [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 8) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ldc3114` [INFO] [stdout] --> src/../README.md:9:29 [INFO] [stdout] | [INFO] [stdout] 3 | let mut inductance_sensor = Ldc3114::new(inductance_sensor_i2c); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Ldc3114` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::Ldc3114; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `inductance_sensor_i2c` in this scope [INFO] [stdout] --> src/../README.md:9:42 [INFO] [stdout] | [INFO] [stdout] 3 | let mut inductance_sensor = Ldc3114::new(inductance_sensor_i2c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScanRate` [INFO] [stdout] --> src/../README.md:23:40 [INFO] [stdout] | [INFO] [stdout] 17 | inductance_sensor.set_normal_scan_rate(ScanRate::Lowest).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ScanRate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::ScanRate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LowPowerScanRate` [INFO] [stdout] --> src/../README.md:24:43 [INFO] [stdout] | [INFO] [stdout] 18 | inductance_sensor.set_low_power_scan_rate(LowPowerScanRate::Low).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `LowPowerScanRate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::LowPowerScanRate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Channel0` in this scope [INFO] [stdout] --> src/../README.md:41:47 [INFO] [stdout] | [INFO] [stdout] 35 | let ch0 = inductance_sensor.read_raw_data(Channel0).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::Channel0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Channel1` in this scope [INFO] [stdout] --> src/../README.md:42:47 [INFO] [stdout] | [INFO] [stdout] 36 | let ch1 = inductance_sensor.read_raw_data(Channel1).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::Channel1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Channel2` in this scope [INFO] [stdout] --> src/../README.md:43:47 [INFO] [stdout] | [INFO] [stdout] 37 | let ch2 = inductance_sensor.read_raw_data(Channel2).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::Channel2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Channel3` in this scope [INFO] [stdout] --> src/../README.md:44:47 [INFO] [stdout] | [INFO] [stdout] 38 | let ch3 = inductance_sensor.read_raw_data(Channel3).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 + use ldc3114::Channel3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/../README.md:12:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | inductance_sensor.config_mode().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/../README.md:16:46 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | if inductance_sensor.is_ready_to_write().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/../README.md:19:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | Timer::after_millis(5).await; [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/../README.md:23:58 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | inductance_sensor.set_normal_scan_rate(ScanRate::Lowest).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/../README.md:24:66 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | inductance_sensor.set_low_power_scan_rate(LowPowerScanRate::Low).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/../README.md:25:66 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | inductance_sensor.enable_button_press_detection_algorithm(false).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/../README.md:28:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 22 | inductance_sensor.normal_mode().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/../README.md:32:42 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 26 | if inductance_sensor.is_chip_ready().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/../README.md:35:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 29 | Timer::after_millis(5).await; [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/../README.md:40:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 34 | let _ = inductance_sensor.read_status().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/../README.md:41:57 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 35 | let ch0 = inductance_sensor.read_raw_data(Channel0).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/../README.md:42:57 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 36 | let ch1 = inductance_sensor.read_raw_data(Channel1).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/../README.md:43:57 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 37 | let ch2 = inductance_sensor.read_raw_data(Channel2).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/../README.md:44:57 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____README_md_8_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 38 | let ch3 = inductance_sensor.read_raw_data(Channel3).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Timer` [INFO] [stdout] --> src/../README.md:19:5 [INFO] [stdout] | [INFO] [stdout] 13 | Timer::after_millis(5).await; [INFO] [stdout] | ^^^^^ use of undeclared type `Timer` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Timer` [INFO] [stdout] --> src/../README.md:35:5 [INFO] [stdout] | [INFO] [stdout] 29 | Timer::after_millis(5).await; [INFO] [stdout] | ^^^^^ use of undeclared type `Timer` [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [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/../README.md - (line 51) [INFO] [stdout] src/../README.md - (line 60) [INFO] [stdout] src/../README.md - (line 8) [INFO] [stdout] src/sync.rs - sync::Ldc3114::read_raw_data (line 124) [INFO] [stdout] src/sync.rs - sync::Ldc3114::read_raw_data (line 128) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.37s; merged doctests compilation took 0.18s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1e8d9706dfbc1abf6a5de19bacb570fe0201f957962bb8ea5e295bd5144f4d3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e8d9706dfbc1abf6a5de19bacb570fe0201f957962bb8ea5e295bd5144f4d3f", kill_on_drop: false }` [INFO] [stdout] 1e8d9706dfbc1abf6a5de19bacb570fe0201f957962bb8ea5e295bd5144f4d3f