[INFO] fetching crate libredr-client 0.0.22... [INFO] testing libredr-client-0.0.22 against 1.98.0-beta.6+cargoflags=--release for beta-1.98-release-3 [INFO] extracting crate libredr-client 0.0.22 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate libredr-client 0.0.22 [INFO] finished tweaking crates.io crate libredr-client 0.0.22 [INFO] tweaked toml for crates.io crate libredr-client 0.0.22 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate libredr-client 0.0.22 on toolchain 1.98.0-beta.6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate libredr-client 0.0.22 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" "+1.98.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089 [INFO] running `Command { std: "docker" "start" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling target-lexicon v0.13.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling pyo3-build-config v0.27.2 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling tz-rs v0.7.1 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling libz-sys v1.1.23 [INFO] [stderr] Compiling libgit2-sys v0.18.3+1.9.2 [INFO] [stderr] Compiling tzdb_data v0.2.3 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling pyo3-ffi v0.27.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.27.2 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling tzdb v0.7.3 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling tikv-jemalloc-sys v0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling const_format v0.2.35 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling is_debug v1.1.0 [INFO] [stderr] Compiling hash32 v0.2.1 [INFO] [stderr] Compiling simba v0.9.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling nalgebra-macros v0.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling pyo3 v0.27.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling pyo3-macros v0.27.2 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling nalgebra v0.34.1 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling cobs v0.3.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling ndarray v0.17.1 [INFO] [stderr] Compiling uuid-macro-internal v1.19.0 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling numpy v0.27.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.2.0 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling unindent v0.2.4 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling postcard v1.1.3 [INFO] [stderr] Compiling tobj v4.0.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling configparser v3.1.0 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling git2 v0.20.3 [INFO] [stderr] Compiling shadow-rs v1.5.0 [INFO] [stderr] Compiling libredr-common v0.0.22 [INFO] [stderr] Compiling tikv-jemallocator v0.6.1 [INFO] [stderr] Compiling libredr-client v0.0.22 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | let libredr = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 4m 31s [INFO] running `Command { std: "docker" "inspect" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling libredr-common v0.0.22 [INFO] [stderr] Compiling libredr-client v0.0.22 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | let libredr = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | let libredr = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stdout] --> src/lib.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let response = py.allow_threads(|| { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 15.73s [INFO] running `Command { std: "docker" "inspect" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling libredr-common v0.0.22 [INFO] [stderr] Compiling libredr-client v0.0.22 (/opt/rustwide/workdir) [INFO] [stderr] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stderr] --> src/lib.rs:66:8 [INFO] [stderr] | [INFO] [stderr] 66 | py.allow_threads(|| { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stderr] --> src/lib.rs:121:22 [INFO] [stderr] | [INFO] [stderr] 121 | let libredr = py.allow_threads(|| { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stderr] --> src/lib.rs:246:23 [INFO] [stderr] | [INFO] [stderr] 246 | let response = py.allow_threads(|| { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pyo3::Python::<'py>::allow_threads`: use `Python::detach` instead [INFO] [stderr] --> src/lib.rs:297:23 [INFO] [stderr] | [INFO] [stderr] 297 | let response = py.allow_threads(|| { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `libredr-client` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: `libredr-client` (lib) generated 4 warnings [INFO] [stderr] Finished `release` profile [optimized] target(s) in 15.47s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/deps/libredr-53c71ae16d8be9f6) [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 libredr [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/client.rs - client::LibreDR::new (line 20) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::LibreDR::new (line 20) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `LibreDR` in this scope [INFO] [stdout] --> src/client.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | let client_tcp = LibreDR::new(String::from("127.0.0.1:9001"), false, false).await?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `LibreDR` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `LibreDR` in this scope [INFO] [stdout] --> src/client.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let client_unix = LibreDR::new(String::from("/var/run/libredr_client.sock"), true, false).await?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `LibreDR` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/client.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 22 | async { [INFO] [stdout] | ----- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 23 | let client_tcp = LibreDR::new(String::from("127.0.0.1:9001"), false, false).await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/client.rs:24:98 [INFO] [stdout] | [INFO] [stdout] 22 | async { [INFO] [stdout] | ----- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 23 | let client_tcp = LibreDR::new(String::from("127.0.0.1:9001"), false, false).await?; [INFO] [stdout] 24 | let client_unix = LibreDR::new(String::from("/var/run/libredr_client.sock"), true, false).await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 21 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_20_0() { [INFO] [stdout] | - help: try adding a return type: `-> impl Future` [INFO] [stdout] 22 | / async { [INFO] [stdout] 23 | | let client_tcp = LibreDR::new(String::from("127.0.0.1:9001"), false, false).await?; [INFO] [stdout] 24 | | let client_unix = LibreDR::new(String::from("/var/run/libredr_client.sock"), true, false).await?; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ expected `()`, found `async` block [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found `async` block `{async block@src/client.rs:5:1: 5:6}` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::LibreDR::new (line 20) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089", kill_on_drop: false }` [INFO] [stdout] af06c1efed5c323355694b3278d378cfc1526f118003f7df4d2302aa99a13089