[INFO] fetching crate onebot-api 1.2.2... [INFO] testing onebot-api-1.2.2 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate onebot-api 1.2.2 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate onebot-api 1.2.2 [INFO] finished tweaking crates.io crate onebot-api 1.2.2 [INFO] tweaked toml for crates.io crate onebot-api 1.2.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate onebot-api 1.2.2 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate onebot-api 1.2.2 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.117 [INFO] [stderr] Downloaded strum v0.28.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.117 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.117 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.67 [INFO] [stderr] Downloaded tokio-tungstenite v0.29.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.28.0 [INFO] [stderr] Downloaded strum_macros v0.28.0 [INFO] [stderr] Downloaded fastrand v2.4.0 [INFO] [stderr] Downloaded cc v1.2.59 [INFO] [stderr] Downloaded wasm-bindgen v0.2.117 [INFO] [stderr] Downloaded tungstenite v0.29.0 [INFO] [stderr] Downloaded tungstenite v0.28.0 [INFO] [stderr] Downloaded flume v0.12.0 [INFO] [stderr] Downloaded openssl-sys v0.9.112 [INFO] [stderr] Downloaded rustls-webpki v0.103.10 [INFO] [stderr] Downloaded js-sys v0.3.94 [INFO] [stderr] Downloaded aws-lc-rs v1.16.2 [INFO] [stderr] Downloaded openssl v0.10.76 [INFO] [stderr] Downloaded web-sys v0.3.94 [INFO] [stderr] Downloaded tokio v1.51.0 [INFO] [stderr] Downloaded aws-lc-sys v0.39.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2442c97f57c50e7830d01d7c990bd33535341366cecc8c924f2dad61b08fa1ed [INFO] running `Command { std: "docker" "start" "-a" "2442c97f57c50e7830d01d7c990bd33535341366cecc8c924f2dad61b08fa1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2442c97f57c50e7830d01d7c990bd33535341366cecc8c924f2dad61b08fa1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2442c97f57c50e7830d01d7c990bd33535341366cecc8c924f2dad61b08fa1ed", kill_on_drop: false }` [INFO] [stdout] 2442c97f57c50e7830d01d7c990bd33535341366cecc8c924f2dad61b08fa1ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cbb72f0bf1f8a21ec31d0302b912eca4e7aa419e231a13eda6ea8c6228f557c [INFO] running `Command { std: "docker" "start" "-a" "3cbb72f0bf1f8a21ec31d0302b912eca4e7aa419e231a13eda6ea8c6228f557c", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling aws-lc-rs v1.16.2 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling indexmap v2.13.1 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling rustls-native-certs v0.8.3 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling iri-string v0.7.12 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling fastrand v2.4.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling flume v0.12.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling axum-core v0.5.6 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling cc v1.2.59 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling uuid v1.23.0 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Compiling eventsource-stream v0.2.3 [INFO] [stderr] Compiling aws-lc-sys v0.39.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling tokio v1.51.0 [INFO] [stderr] Compiling zerofrom v0.1.7 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling tungstenite v0.28.0 [INFO] [stderr] Compiling strum v0.28.0 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-tungstenite v0.28.0 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling rustls-webpki v0.103.10 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling axum v0.8.8 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling rustls-platform-verifier v0.6.2 [INFO] [stderr] Compiling tungstenite v0.29.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.13.2 [INFO] [stderr] Compiling tokio-tungstenite v0.29.0 [INFO] [stderr] Compiling onebot-api v1.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "3cbb72f0bf1f8a21ec31d0302b912eca4e7aa419e231a13eda6ea8c6228f557c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cbb72f0bf1f8a21ec31d0302b912eca4e7aa419e231a13eda6ea8c6228f557c", kill_on_drop: false }` [INFO] [stdout] 3cbb72f0bf1f8a21ec31d0302b912eca4e7aa419e231a13eda6ea8c6228f557c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 227f8e248c0c4c648ff223885d3b7035642ee1e3784636506168b33da03b3875 [INFO] running `Command { std: "docker" "start" "-a" "227f8e248c0c4c648ff223885d3b7035642ee1e3784636506168b33da03b3875", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling onebot-api v1.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.66s [INFO] running `Command { std: "docker" "inspect" "227f8e248c0c4c648ff223885d3b7035642ee1e3784636506168b33da03b3875", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "227f8e248c0c4c648ff223885d3b7035642ee1e3784636506168b33da03b3875", kill_on_drop: false }` [INFO] [stdout] 227f8e248c0c4c648ff223885d3b7035642ee1e3784636506168b33da03b3875 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a05b6f6d43cc16358f9f53ea397a01ddfd5035f2c1d2e974cccc9b772732be7a [INFO] running `Command { std: "docker" "start" "-a" "a05b6f6d43cc16358f9f53ea397a01ddfd5035f2c1d2e974cccc9b772732be7a", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/onebot_api-422355e5495d68e1) [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 onebot_api [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/communication/combiner.rs - communication::combiner::SplitCombiner (line 13) ... FAILED [INFO] [stdout] test src/communication/utils.rs - communication::utils::Client (line 226) ... FAILED [INFO] [stdout] test src/communication/utils.rs - communication::utils::Client::send_and_parse (line 583) ... FAILED [INFO] [stdout] test src/communication/utils.rs - communication::utils::Client::change_service (line 499) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/communication/combiner.rs - communication::combiner::SplitCombiner (line 13) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/communication/combiner.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_communication_combiner_rs_13_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | client.start_service().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 7 arguments but 4 arguments were supplied [INFO] [stdout] --> src/communication/combiner.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | let client = Client::new_with_options(combiner, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^---------------------------------------------- three arguments of type `Option`, `Option`, and `Option String + Send + Sync + 'static)>>` are missing [INFO] [stdout] | [INFO] [stdout] note: expected `Option`, found `Duration` [INFO] [stdout] --> src/communication/combiner.rs:24:49 [INFO] [stdout] | [INFO] [stdout] 24 | let client = Client::new_with_options(combiner, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `Duration` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/utils.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 24 | let client = Client::new_with_options(combiner, Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | +++++ + [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 24 - let client = Client::new_with_options(combiner, Duration::from_secs(5), None, None); [INFO] [stdout] 24 + let client = Client::new_with_options(combiner, /* Option */, None, None, /* Option */, /* Option */, /* Option String + Send + Sync + 'static)>> */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/communication/utils.rs - communication::utils::Client (line 226) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/communication/utils.rs:234:24 [INFO] [stdout] | [INFO] [stdout] 227 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_communication_utils_rs_226_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 234 | client.start_service().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 2 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:232:18 [INFO] [stdout] | [INFO] [stdout] 232 | let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------------------------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `Url`, found `&str` [INFO] [stdout] | three arguments of type `Option`, `Option`, and `Option` are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/ws.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 232 - let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] 232 + let ws_service = WsService::new_with_options(/* url::Url */, Some("example_token".to_string()), /* Option */, /* Option */, /* Option */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WsService` in the current scope [INFO] [stdout] --> src/communication/utils.rs:232:102 [INFO] [stdout] | [INFO] [stdout] 232 | let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WsService` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 7 arguments but 4 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | let client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------ three arguments of type `Option`, `Option`, and `Option String + Send + Sync + 'static)>>` are missing [INFO] [stdout] | [INFO] [stdout] note: expected `Option`, found `Duration` [INFO] [stdout] --> src/communication/utils.rs:233:51 [INFO] [stdout] | [INFO] [stdout] 233 | let client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `Duration` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/utils.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 233 | let client = Client::new_with_options(ws_service, Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | +++++ + [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 233 - let client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] 233 + let client = Client::new_with_options(ws_service, /* Option */, None, None, /* Option */, /* Option */, /* Option String + Send + Sync + 'static)>> */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/communication/utils.rs - communication::utils::Client::send_and_parse (line 583) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/communication/utils.rs:591:70 [INFO] [stdout] | [INFO] [stdout] 584 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_communication_utils_rs_583_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 591 | let response: Value = client.send_and_parse("send_like", json!({})).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 2 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:590:47 [INFO] [stdout] | [INFO] [stdout] 590 | ...t = Client::new_with_options(WsService::new_with_options("ws://localhost:8080", None).unwrap(), Some(Duration::from_secs(5)), No... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `Url`, found `&str` [INFO] [stdout] | three arguments of type `Option`, `Option`, and `Option` are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/ws.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 590 - let client: Client = Client::new_with_options(WsService::new_with_options("ws://localhost:8080", None).unwrap(), Some(Duration::from_secs(5)), None, None); [INFO] [stdout] 590 + let client: Client = Client::new_with_options(WsService::new_with_options(/* url::Url */, None, /* Option */, /* Option */, /* Option */).unwrap(), Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WsService` in the current scope [INFO] [stdout] --> src/communication/utils.rs:590:104 [INFO] [stdout] | [INFO] [stdout] 590 | ...ew_with_options("ws://localhost:8080", None).unwrap(), Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | ^^^^^^ method not found in `WsService` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 7 arguments but 4 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:590:22 [INFO] [stdout] | [INFO] [stdout] 590 | ... = Client::new_with_options(WsService::new_with_options("ws://localhost:8080", None).unwrap(), Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------------------------------------------------------------- three arguments of type `Option`, `Option`, and `Option std::string::String + Send + Sync + 'static)>>` are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/utils.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 590 | let client: Client = Client::new_with_options(WsService::new_with_options("ws://localhost:8080", None).unwrap(), Some(Duration::from_secs(5)), None, None, /* Option */, /* Option */, /* Option std::string::String + Send + Sync + 'static)>> */); [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/communication/utils.rs - communication::utils::Client::change_service (line 499) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/communication/utils.rs:508:24 [INFO] [stdout] | [INFO] [stdout] 500 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_communication_utils_rs_499_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 508 | client.start_service().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/communication/utils.rs:512:24 [INFO] [stdout] | [INFO] [stdout] 500 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_communication_utils_rs_499_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 512 | client.start_service().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 2 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:506:18 [INFO] [stdout] | [INFO] [stdout] 506 | let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------------------------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `Url`, found `&str` [INFO] [stdout] | three arguments of type `Option`, `Option`, and `Option` are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/ws.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 506 - let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] 506 + let ws_service = WsService::new_with_options(/* url::Url */, Some("example_token".to_string()), /* Option */, /* Option */, /* Option */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WsService` in the current scope [INFO] [stdout] --> src/communication/utils.rs:506:102 [INFO] [stdout] | [INFO] [stdout] 506 | let ws_service = WsService::new_with_options("wss://example.com", Some("example_token".to_string())).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WsService` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 7 arguments but 4 arguments were supplied [INFO] [stdout] --> src/communication/utils.rs:507:18 [INFO] [stdout] | [INFO] [stdout] 507 | let mut client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------ three arguments of type `Option`, `Option`, and `Option String + Send + Sync + 'static)>>` are missing [INFO] [stdout] | [INFO] [stdout] note: expected `Option`, found `Duration` [INFO] [stdout] --> src/communication/utils.rs:507:55 [INFO] [stdout] | [INFO] [stdout] 507 | let mut client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `Duration` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/communication/utils.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 507 | let mut client = Client::new_with_options(ws_service, Some(Duration::from_secs(5)), None, None); [INFO] [stdout] | +++++ + [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 507 - let mut client = Client::new_with_options(ws_service, Duration::from_secs(5), None, None); [INFO] [stdout] 507 + let mut client = Client::new_with_options(ws_service, /* Option */, None, None, /* Option */, /* Option */, /* Option String + Send + Sync + 'static)>> */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/communication/combiner.rs - communication::combiner::SplitCombiner (line 13) [INFO] [stdout] src/communication/utils.rs - communication::utils::Client (line 226) [INFO] [stdout] src/communication/utils.rs - communication::utils::Client::change_service (line 499) [INFO] [stdout] src/communication/utils.rs - communication::utils::Client::send_and_parse (line 583) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.48s; merged doctests compilation took 0.29s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a05b6f6d43cc16358f9f53ea397a01ddfd5035f2c1d2e974cccc9b772732be7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a05b6f6d43cc16358f9f53ea397a01ddfd5035f2c1d2e974cccc9b772732be7a", kill_on_drop: false }` [INFO] [stdout] a05b6f6d43cc16358f9f53ea397a01ddfd5035f2c1d2e974cccc9b772732be7a