[INFO] fetching crate xmu-health-report-rust-sdk 0.1.8... [INFO] testing xmu-health-report-rust-sdk-0.1.8 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate xmu-health-report-rust-sdk 0.1.8 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate xmu-health-report-rust-sdk 0.1.8 [INFO] finished tweaking crates.io crate xmu-health-report-rust-sdk 0.1.8 [INFO] tweaked toml for crates.io crate xmu-health-report-rust-sdk 0.1.8 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate xmu-health-report-rust-sdk 0.1.8 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate xmu-health-report-rust-sdk 0.1.8 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 310c062d64499e652c6621e7a9a7a119e54245a2e3dace56c51174cfe93dba4a [INFO] running `Command { std: "docker" "start" "-a" "310c062d64499e652c6621e7a9a7a119e54245a2e3dace56c51174cfe93dba4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "310c062d64499e652c6621e7a9a7a119e54245a2e3dace56c51174cfe93dba4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "310c062d64499e652c6621e7a9a7a119e54245a2e3dace56c51174cfe93dba4a", kill_on_drop: false }` [INFO] [stdout] 310c062d64499e652c6621e7a9a7a119e54245a2e3dace56c51174cfe93dba4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ff377cf21012ef28d4bdd9b0e1e4279a316cfaf02d88f4088cca71bd3b129d0 [INFO] running `Command { std: "docker" "start" "-a" "7ff377cf21012ef28d4bdd9b0e1e4279a316cfaf02d88f4088cca71bd3b129d0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling pkg-config v0.3.20 [INFO] [stderr] Compiling instant v0.1.11 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling tokio v1.12.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec v1.5.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling openssl-sys v0.9.67 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling half v2.1.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling png v0.17.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling publicsuffix v1.5.6 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling os_str_bytes v3.1.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling jpeg-decoder v0.2.6 [INFO] [stderr] Compiling bytemuck v1.12.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling tiff v0.7.3 [INFO] [stderr] Compiling tokio-macros v1.4.1 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.4 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling clap v3.0.0-beta.4 [INFO] [stderr] Compiling exr v1.5.2 [INFO] [stderr] Compiling image v0.24.4 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling cookie_store v0.12.0 [INFO] [stderr] Compiling hyper v0.14.13 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.5 [INFO] [stderr] Compiling xmu-health-report-rust-sdk v0.1.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.45s [INFO] running `Command { std: "docker" "inspect" "7ff377cf21012ef28d4bdd9b0e1e4279a316cfaf02d88f4088cca71bd3b129d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ff377cf21012ef28d4bdd9b0e1e4279a316cfaf02d88f4088cca71bd3b129d0", kill_on_drop: false }` [INFO] [stdout] 7ff377cf21012ef28d4bdd9b0e1e4279a316cfaf02d88f4088cca71bd3b129d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e12f5fa6dc2102239607c2454fb3d3641a2c8d69f3f80814d68343009510295a [INFO] running `Command { std: "docker" "start" "-a" "e12f5fa6dc2102239607c2454fb3d3641a2c8d69f3f80814d68343009510295a", kill_on_drop: false }` [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling tokio-test v0.4.2 [INFO] [stderr] Compiling xmu-health-report-rust-sdk v0.1.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.70s [INFO] running `Command { std: "docker" "inspect" "e12f5fa6dc2102239607c2454fb3d3641a2c8d69f3f80814d68343009510295a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e12f5fa6dc2102239607c2454fb3d3641a2c8d69f3f80814d68343009510295a", kill_on_drop: false }` [INFO] [stdout] e12f5fa6dc2102239607c2454fb3d3641a2c8d69f3f80814d68343009510295a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 318db41fcf963a27a4253aa749212e1e848e787023f9bd590bb9417a01965d71 [INFO] running `Command { std: "docker" "start" "-a" "318db41fcf963a27a4253aa749212e1e848e787023f9bd590bb9417a01965d71", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/xmu_health_report_rust_sdk-58960e49fed63324) [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/xmu_health_report_rust_sdk-71362bd3e2a74303) [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 xmu_health_report_rust_sdk [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/reporter/login.rs - reporter::login::login (line 25) ... FAILED [INFO] [stdout] test src/reporter/captcha.rs - reporter::captcha::bypass_captcha (line 14) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/reporter/login.rs - reporter::login::login (line 25) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `create_client` in this scope [INFO] [stdout] --> src/reporter/login.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = create_client().await?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use xmu_health_report_rust_sdk::create_client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `login` in this scope [INFO] [stdout] --> src/reporter/login.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 4 | login(client, username, password).await?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use xmu_health_report_rust_sdk::login; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `username` in this scope [INFO] [stdout] --> src/reporter/login.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 4 | login(client, username, password).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `password` in this scope [INFO] [stdout] --> src/reporter/login.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 4 | login(client, username, password).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/reporter/login.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reporter_login_rs_25_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] 3 | let client = create_client().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/reporter/login.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reporter_login_rs_25_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] 3 | let client = create_client().await?; [INFO] [stdout] 4 | login(client, username, password).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/reporter/captcha.rs - reporter::captcha::bypass_captcha (line 14) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `create_client` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = create_client().await?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use xmu_health_report_rust_sdk::create_client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bypass_captcha` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 4 | bypass_captcha(&client, username, password).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use xmu_health_report_rust_sdk::bypass_captcha; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `username` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 4 | bypass_captcha(&client, username, password).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `password` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 4 | bypass_captcha(&client, username, password).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `login` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 5 | login(&client, username, password).await?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use xmu_health_report_rust_sdk::login; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `username` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 5 | login(&client, username, password).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `password` in this scope [INFO] [stdout] --> src/reporter/captcha.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 5 | login(&client, username, password).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/reporter/captcha.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reporter_captcha_rs_14_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 3 | let client = create_client().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/reporter/captcha.rs:16:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reporter_captcha_rs_14_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 3 | let client = create_client().await?; [INFO] [stdout] 4 | bypass_captcha(&client, username, password).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/reporter/captcha.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reporter_captcha_rs_14_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | login(&client, username, password).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 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/reporter/captcha.rs - reporter::captcha::bypass_captcha (line 14) [INFO] [stdout] src/reporter/login.rs - reporter::login::login (line 25) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "318db41fcf963a27a4253aa749212e1e848e787023f9bd590bb9417a01965d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318db41fcf963a27a4253aa749212e1e848e787023f9bd590bb9417a01965d71", kill_on_drop: false }` [INFO] [stdout] 318db41fcf963a27a4253aa749212e1e848e787023f9bd590bb9417a01965d71