[INFO] fetching crate ldc3114 0.2.0... [INFO] testing ldc3114-0.2.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate ldc3114 0.2.0 into /workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ldc3114 0.2.0 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] 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 0f13280776deef571ea9fbce05dd7f96facb758e8d22f89cc8c070b5f769073e [INFO] running `Command { std: "docker" "start" "-a" "0f13280776deef571ea9fbce05dd7f96facb758e8d22f89cc8c070b5f769073e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f13280776deef571ea9fbce05dd7f96facb758e8d22f89cc8c070b5f769073e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f13280776deef571ea9fbce05dd7f96facb758e8d22f89cc8c070b5f769073e", kill_on_drop: false }` [INFO] [stdout] 0f13280776deef571ea9fbce05dd7f96facb758e8d22f89cc8c070b5f769073e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] b25adbad5561075a18118f0601286e88870ca15821138fa7eea30ffae7acb271 [INFO] running `Command { std: "docker" "start" "-a" "b25adbad5561075a18118f0601286e88870ca15821138fa7eea30ffae7acb271", 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.60s [INFO] running `Command { std: "docker" "inspect" "b25adbad5561075a18118f0601286e88870ca15821138fa7eea30ffae7acb271", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b25adbad5561075a18118f0601286e88870ca15821138fa7eea30ffae7acb271", kill_on_drop: false }` [INFO] [stdout] b25adbad5561075a18118f0601286e88870ca15821138fa7eea30ffae7acb271 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 841b089612c9176ac74711ea79770e1cca53370a4cee08f4ba39e57e43b7e131 [INFO] running `Command { std: "docker" "start" "-a" "841b089612c9176ac74711ea79770e1cca53370a4cee08f4ba39e57e43b7e131", 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.42s [INFO] running `Command { std: "docker" "inspect" "841b089612c9176ac74711ea79770e1cca53370a4cee08f4ba39e57e43b7e131", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "841b089612c9176ac74711ea79770e1cca53370a4cee08f4ba39e57e43b7e131", kill_on_drop: false }` [INFO] [stdout] 841b089612c9176ac74711ea79770e1cca53370a4cee08f4ba39e57e43b7e131 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] ca17dc1e3adc72960231e13bd36ee25ea58c8c83a8f65ba9b8e7b14a367a18cc [INFO] running `Command { std: "docker" "start" "-a" "ca17dc1e3adc72960231e13bd36ee25ea58c8c83a8f65ba9b8e7b14a367a18cc", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ldc3114-652dc67f81c645c0) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests ldc3114 [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] [stdout] [INFO] [stdout] running 5 tests [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/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 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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/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 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.28s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.48s; merged doctests compilation took 0.20s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ca17dc1e3adc72960231e13bd36ee25ea58c8c83a8f65ba9b8e7b14a367a18cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca17dc1e3adc72960231e13bd36ee25ea58c8c83a8f65ba9b8e7b14a367a18cc", kill_on_drop: false }` [INFO] [stdout] ca17dc1e3adc72960231e13bd36ee25ea58c8c83a8f65ba9b8e7b14a367a18cc