[INFO] fetching crate pale 0.1.1... [INFO] testing pale-0.1.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate pale 0.1.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate pale 0.1.1 [INFO] finished tweaking crates.io crate pale 0.1.1 [INFO] tweaked toml for crates.io crate pale 0.1.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pale 0.1.1 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 pale 0.1.1 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6f48a561689c2621ed7d3c8d03c837553fce407e0e759e19f64acae66cfc5a34 [INFO] running `Command { std: "docker" "start" "-a" "6f48a561689c2621ed7d3c8d03c837553fce407e0e759e19f64acae66cfc5a34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f48a561689c2621ed7d3c8d03c837553fce407e0e759e19f64acae66cfc5a34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f48a561689c2621ed7d3c8d03c837553fce407e0e759e19f64acae66cfc5a34", kill_on_drop: false }` [INFO] [stdout] 6f48a561689c2621ed7d3c8d03c837553fce407e0e759e19f64acae66cfc5a34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b1daca1e586087c21defe0bf4f2c99529bbe29b8150d42f24bf436bdf052720d [INFO] running `Command { std: "docker" "start" "-a" "b1daca1e586087c21defe0bf4f2c99529bbe29b8150d42f24bf436bdf052720d", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.46 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tungstenite v0.28.0 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.28.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling pale v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.26s [INFO] running `Command { std: "docker" "inspect" "b1daca1e586087c21defe0bf4f2c99529bbe29b8150d42f24bf436bdf052720d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1daca1e586087c21defe0bf4f2c99529bbe29b8150d42f24bf436bdf052720d", kill_on_drop: false }` [INFO] [stdout] b1daca1e586087c21defe0bf4f2c99529bbe29b8150d42f24bf436bdf052720d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a1572892ea4a59a0fac6f28aef33bb5445934184a535d74fd0d19a6f2c3f65aa [INFO] running `Command { std: "docker" "start" "-a" "a1572892ea4a59a0fac6f28aef33bb5445934184a535d74fd0d19a6f2c3f65aa", kill_on_drop: false }` [INFO] [stderr] Compiling pale v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.95s [INFO] running `Command { std: "docker" "inspect" "a1572892ea4a59a0fac6f28aef33bb5445934184a535d74fd0d19a6f2c3f65aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1572892ea4a59a0fac6f28aef33bb5445934184a535d74fd0d19a6f2c3f65aa", kill_on_drop: false }` [INFO] [stdout] a1572892ea4a59a0fac6f28aef33bb5445934184a535d74fd0d19a6f2c3f65aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 7a3b17bc6a41c2733c12a307a586b23f77361268a1da89d9570e98d8e9f115a2 [INFO] running `Command { std: "docker" "start" "-a" "7a3b17bc6a41c2733c12a307a586b23f77361268a1da89d9570e98d8e9f115a2", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pale-96c67397ad2d217f) [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 pale [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/request.rs - request::Client::subscribe (line 68) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::Client::wait_for_connection (line 174) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::Client::connect (line 211) - compile ... FAILED [INFO] [stdout] test src/macros.rs - macros::params (line 7) - compile ... FAILED [INFO] [stdout] test src/../readme.md - (line 13) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::new (line 87) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::Client::new_without_connection (line 105) - compile ... FAILED [INFO] [stdout] test src/request.rs - request::Client::request (line 16) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/request.rs - request::Client::subscribe (line 68) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/request.rs:73:23 [INFO] [stdout] | [INFO] [stdout] 73 | Some(data) => println!("{data}"); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 73 - Some(data) => println!("{data}"); [INFO] [stdout] 73 + Some(data) => println!("{data}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/request.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | let subscription = client.subscribe::("method:notification/endpoint").await?; [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/request.rs:69:76 [INFO] [stdout] | [INFO] [stdout] 68 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_rs_68_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 69 | let subscription = client.subscribe::("method:notification/endpoint").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/request.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 68 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_rs_68_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 71 | while let Some(data) = subscription.next().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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/client.rs - client::Client::wait_for_connection (line 174) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | client.wait_for_connection(true).await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:179:1 [INFO] [stdout] | [INFO] [stdout] 179 | client.wait_for_connection(false).await; [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/client.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 174 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_174_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 175 | // waits for the underlying connection to be ready & connected [INFO] [stdout] 176 | client.wait_for_connection(true).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/client.rs:179:35 [INFO] [stdout] | [INFO] [stdout] 174 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_174_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 179 | client.wait_for_connection(false).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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/client.rs - client::Client::connect (line 211) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | client.close().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | client.wait_for_connection(false).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | client.connect().await?; [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/client.rs:213:16 [INFO] [stdout] | [INFO] [stdout] 211 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_211_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 212 | // the client is normally connected upon creation so we close it first. [INFO] [stdout] 213 | client.close().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/client.rs:214:35 [INFO] [stdout] | [INFO] [stdout] 211 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_211_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 214 | client.wait_for_connection(false).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/client.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 211 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_211_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 216 | client.connect().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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/macros.rs - macros::params (line 7) stdout ---- [INFO] [stdout] error: cannot find macro `params` in this scope [INFO] [stdout] --> src/macros.rs:9:54 [INFO] [stdout] | [INFO] [stdout] 9 | let data = client.request::("example/method", params![("filter", 81)]).await?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 7 + use pale::params; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/macros.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let client = Client::new("ws://localhost:5281", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use pale::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ClientConfig` in this scope [INFO] [stdout] --> src/macros.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | let client = Client::new("ws://localhost:5281", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ClientConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use pale::ClientConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/macros.rs:8:74 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_rs_7_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 8 | let client = Client::new("ws://localhost:5281", ClientConfig::default()).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/macros.rs:9:79 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_rs_7_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 8 | let client = Client::new("ws://localhost:5281", ClientConfig::default()).await?; [INFO] [stdout] 9 | let data = client.request::("example/method", params![("filter", 81)]).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../readme.md - (line 13) stdout ---- [INFO] [stdout] error: cannot find macro `params` in this scope [INFO] [stdout] --> src/../readme.md:18:57 [INFO] [stdout] | [INFO] [stdout] 18 | let data = client.request::>("example/method", params![("param_name", true)]).await?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 13 + use pale::params; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/../readme.md:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | let client = Client::new("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use pale::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ClientConfig` in this scope [INFO] [stdout] --> src/../readme.md:15:46 [INFO] [stdout] | [INFO] [stdout] 15 | let client = Client::new("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ClientConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use pale::ClientConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/../readme.md:15:71 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____readme_md_13_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 14 | // create & connect a client [INFO] [stdout] 15 | let client = Client::new("ws://example.com", ClientConfig::default()).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:18:88 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____readme_md_13_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | let data = client.request::>("example/method", params![("param_name", true)]).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:21:66 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____readme_md_13_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 21 | let mut sub = client.subscribe::("example/notification").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:22:35 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src____readme_md_13_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 22 | while let Some(data) = sub.next().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::new (line 87) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/client.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | let client = Client::new("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 87 + use pale::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ClientConfig` in this scope [INFO] [stdout] --> src/client.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 89 | let client = Client::new("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ClientConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 87 + use pale::ClientConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/client.rs:91:61 [INFO] [stdout] | [INFO] [stdout] 91 | let data = client.request::>("method/endpoint", HashMap::new()).await?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 87 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:89:71 [INFO] [stdout] | [INFO] [stdout] 87 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_87_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 88 | // Creates a new client [INFO] [stdout] 89 | let client = Client::new("ws://example.com", ClientConfig::default()).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/client.rs:91:77 [INFO] [stdout] | [INFO] [stdout] 87 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_87_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 91 | let data = client.request::>("method/endpoint", HashMap::new()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::new_without_connection (line 105) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/client.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | Client::new_without_connection("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 105 + use pale::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ClientConfig` in this scope [INFO] [stdout] --> src/client.rs:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | Client::new_without_connection("ws://example.com", ClientConfig::default()).await?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ClientConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 105 + use pale::ClientConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:106:77 [INFO] [stdout] | [INFO] [stdout] 105 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_105_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 106 | Client::new_without_connection("ws://example.com", ClientConfig::default()).await?; [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::Client::request (line 16) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/request.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | let data = client.request::("method/endpoint", None).await?; [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/request.rs:17:59 [INFO] [stdout] | [INFO] [stdout] 16 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_rs_16_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 17 | let data = client.request::("method/endpoint", None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] [INFO] [stdout] failures: [INFO] [stdout] src/../readme.md - (line 13) [INFO] [stdout] src/client.rs - client::Client::connect (line 211) [INFO] [stdout] src/client.rs - client::Client::new (line 87) [INFO] [stdout] src/client.rs - client::Client::new_without_connection (line 105) [INFO] [stdout] src/client.rs - client::Client::wait_for_connection (line 174) [INFO] [stdout] src/macros.rs - macros::params (line 7) [INFO] [stdout] src/request.rs - request::Client::request (line 16) [INFO] [stdout] src/request.rs - request::Client::subscribe (line 68) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.66s; merged doctests compilation took 0.13s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7a3b17bc6a41c2733c12a307a586b23f77361268a1da89d9570e98d8e9f115a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a3b17bc6a41c2733c12a307a586b23f77361268a1da89d9570e98d8e9f115a2", kill_on_drop: false }` [INFO] [stdout] 7a3b17bc6a41c2733c12a307a586b23f77361268a1da89d9570e98d8e9f115a2