[INFO] fetching crate labrador 0.2.2... [INFO] testing labrador-0.2.2 against master#159ba8a92c9e2fa4121f106176309521f4af87e9+rustflags=-Copt-level=3 for pr-107051 [INFO] extracting crate labrador 0.2.2 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate labrador 0.2.2 on toolchain 159ba8a92c9e2fa4121f106176309521f4af87e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate labrador 0.2.2 [INFO] finished tweaking crates.io crate labrador 0.2.2 [INFO] tweaked toml for crates.io crate labrador 0.2.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded peresil v0.3.0 [INFO] [stderr] Downloaded sxd-xpath v0.2.1 [INFO] [stderr] Downloaded sxd-document v0.2.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0c9f8cccfc1cd5eaf47dde0032465af09eafe9512741dbaf2b1f819a62faa65 [INFO] running `Command { std: "docker" "start" "-a" "e0c9f8cccfc1cd5eaf47dde0032465af09eafe9512741dbaf2b1f819a62faa65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0c9f8cccfc1cd5eaf47dde0032465af09eafe9512741dbaf2b1f819a62faa65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0c9f8cccfc1cd5eaf47dde0032465af09eafe9512741dbaf2b1f819a62faa65", kill_on_drop: false }` [INFO] [stdout] e0c9f8cccfc1cd5eaf47dde0032465af09eafe9512741dbaf2b1f819a62faa65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 317eb55d7c9d60275ea768909fd71684c94424fc34ec3ba7ec55d61b7678063d [INFO] running `Command { std: "docker" "start" "-a" "317eb55d7c9d60275ea768909fd71684c94424fc34ec3ba7ec55d61b7678063d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling libm v0.2.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tokio v1.24.2 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling base64ct v1.5.3 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling pem-rfc7468 v0.3.1 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling crypto-bigint v0.3.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling const-oid v0.7.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling der v0.5.1 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling zeroize v1.5.7 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling spki v0.5.4 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling async-trait v0.1.62 [INFO] [stderr] Compiling num-bigint-dig v0.8.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling oid-registry v0.6.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pkcs8 v0.8.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.6 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.2 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling pkcs1 v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling data-encoding v2.3.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rsa v0.6.1 [INFO] [stderr] Compiling dashmap v5.4.0 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling urlencoding v2.1.2 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling asn1-rs-derive v0.4.0 [INFO] [stderr] Compiling asn1-rs-impl v0.1.0 [INFO] [stderr] Compiling displaydoc v0.2.3 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling asn1-rs v0.5.1 [INFO] [stderr] Compiling der-parser v8.1.0 [INFO] [stderr] Compiling x509-parser v0.14.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde-xml-rs v0.6.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling combine v4.6.6 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling redis v0.21.7 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling hyper-rustls v0.23.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.14 [INFO] [stderr] Compiling labrador v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 07s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "317eb55d7c9d60275ea768909fd71684c94424fc34ec3ba7ec55d61b7678063d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "317eb55d7c9d60275ea768909fd71684c94424fc34ec3ba7ec55d61b7678063d", kill_on_drop: false }` [INFO] [stdout] 317eb55d7c9d60275ea768909fd71684c94424fc34ec3ba7ec55d61b7678063d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 811f2544d7393d9a219ae9c3d8fef6f13177c3ce828bf192135fcd0422b4ac0b [INFO] running `Command { std: "docker" "start" "-a" "811f2544d7393d9a219ae9c3d8fef6f13177c3ce828bf192135fcd0422b4ac0b", kill_on_drop: false }` [INFO] [stderr] Compiling labrador v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 12.23s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "811f2544d7393d9a219ae9c3d8fef6f13177c3ce828bf192135fcd0422b4ac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "811f2544d7393d9a219ae9c3d8fef6f13177c3ce828bf192135fcd0422b4ac0b", kill_on_drop: false }` [INFO] [stdout] 811f2544d7393d9a219ae9c3d8fef6f13177c3ce828bf192135fcd0422b4ac0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 34ae9aa2d05e7d9a2ae269e1f082c9627fe8cc911d242ba02ac6641ffbd6d352 [INFO] running `Command { std: "docker" "start" "-a" "34ae9aa2d05e7d9a2ae269e1f082c9627fe8cc911d242ba02ac6641ffbd6d352", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/labrador-3ec523f6a64376c0) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test util::md5::test_md5 ... ok [INFO] [stdout] test util::test ... ok [INFO] [stdout] test session::test_simple ... ok [INFO] [stdout] test util::prp::tests::test_prpcrypto_encrypt ... ok [INFO] [stdout] test util::prp::tests::test_prpcrypto_decrypt_v3 ... ok [INFO] [stdout] test util::prp::tests::test_check_decrypted_data_should_ok ... ok [INFO] [stdout] test util::prp::tests::test_prpcrypto_decrypt ... ok [INFO] [stdout] test util::prp::tests::test_aes_128_ecb ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests labrador [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/client.rs - client::APIClient (line 19) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 37) ... FAILED [INFO] [stdout] test src/lib.rs - (line 96) ... FAILED [INFO] [stdout] test src/lib.rs - (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - (line 120) ... FAILED [INFO] [stdout] test src/request.rs - request::LabraRequest (line 159) - compile ... FAILED [INFO] [stdout] test src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_sign (line 266) ... FAILED [INFO] [stdout] test src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_verify (line 401) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/client.rs - client::APIClient::request (line 65) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::APIClient (line 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `api_client` in this scope [INFO] [stdout] --> src/client.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 9 | api_client.request() [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 37) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `labrador::WechatPayClient`, `labrador::TradeType`, `labrador::WechatPayRequestV3`, `labrador::Amount`, `labrador::Payer` [INFO] [stdout] --> src/lib.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 3 | use labrador::{WechatPayClient, SimpleStorage, TradeType, WechatPayRequestV3, Amount, Payer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ no `Payer` in the root [INFO] [stdout] | | | | | [INFO] [stdout] | | | | no `Amount` in the root [INFO] [stdout] | | | no `WechatPayRequestV3` in the root [INFO] [stdout] | | no `TradeType` in the root [INFO] [stdout] | no `WechatPayClient` in the root [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 96) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `labrador::TbItemDetailRequest`, `labrador::TaobaoClient` [INFO] [stdout] --> src/lib.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 3 | use labrador::{TbItemDetailRequest, TaobaoClient, SimpleStorage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `TaobaoClient` in the root [INFO] [stdout] | | [INFO] [stdout] | no `TbItemDetailRequest` in the root [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 76) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `labrador::AlipayTradeWapPayRequest`, `labrador::AlipayClient` [INFO] [stdout] --> src/lib.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 3 | use labrador::{AlipayTradeWapPayRequest, AlipayClient}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `AlipayClient` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AlipayTradeWapPayRequest` in the root [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `result` in this scope [INFO] [stdout] --> src/lib.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 13 | match result.await { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 120) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `labrador::JDClient`, `labrador::JdOrderRawQueryParam` [INFO] [stdout] --> src/lib.rs:121:16 [INFO] [stdout] | [INFO] [stdout] 3 | use labrador::{JDClient, JdOrderRawQueryParam, SimpleStorage}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ no `JdOrderRawQueryParam` in the root [INFO] [stdout] | | [INFO] [stdout] | no `JDClient` in the root [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::LabraRequest (line 159) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `request_type` in this scope [INFO] [stdout] --> src/request.rs:171:76 [INFO] [stdout] | [INFO] [stdout] 14 | let req = LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params); [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:172:26 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let _ = req.request().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:173:35 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | let _ = req.request_blocking().await?; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/request.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> LabradorResult<(), dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn std::error::Error + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/request.rs:165:14 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn std::error::Error + 'static)` [INFO] [stdout] note: required by a bound in `Result` [INFO] [stdout] --> /rustc/159ba8a92c9e2fa4121f106176309521f4af87e9/library/core/src/result.rs:503:1 [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_sign (line 266) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `rsa_sign` in this scope [INFO] [stdout] --> src/util/prp.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 5 | let sign = rsa_sign(content, private_key); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_verify (line 401) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `sign` in this scope [INFO] [stdout] --> src/util/prp.rs:404:42 [INFO] [stdout] | [INFO] [stdout] 5 | let sign = rsa_sign(public_key, content, sign); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `rsa_sign` in this scope [INFO] [stdout] --> src/util/prp.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 5 | let sign = rsa_sign(public_key, content, sign); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::APIClient::request (line 65) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `request_type` in this scope [INFO] [stdout] --> src/client.rs:77:78 [INFO] [stdout] | [INFO] [stdout] 14 | api.request(LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params)).await?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> LabradorResult<(), dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `data` found for struct `LabraRequest` in the current scope [INFO] [stdout] --> src/client.rs:77:58 [INFO] [stdout] | [INFO] [stdout] 14 | api.request(LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params)).await?; [INFO] [stdout] | ^^^^ method not found in `LabraRequest<_>` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `dyn std::error::Error` [INFO] [stdout] --> src/client.rs:77:113 [INFO] [stdout] | [INFO] [stdout] 14 | api.request(LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params)).await?; [INFO] [stdout] | ^ the trait `From` is not implemented for `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] = note: required for `Result<(), dyn std::error::Error>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 9 | | let api = APIClient::new("appkey", "secret", "http_url"); [INFO] [stdout] 10 | | let params = vec![(String::from("key"), String::from("value"))]; [INFO] [stdout] 11 | | let data = json!({ [INFO] [stdout] ... | [INFO] [stdout] 14 | | api.request(LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params)).await?; [INFO] [stdout] 15 | | } [INFO] [stdout] | |_^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), (dyn std::error::Error + 'static)>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn std::error::Error + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/client.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 9 | | let api = APIClient::new("appkey", "secret", "http_url"); [INFO] [stdout] 10 | | let params = vec![(String::from("key"), String::from("value"))]; [INFO] [stdout] 11 | | let data = json!({ [INFO] [stdout] ... | [INFO] [stdout] 14 | | api.request(LabraRequest::new().method(Method::Post).data(data).req_type(request_type).params(params)).await?; [INFO] [stdout] 15 | | } [INFO] [stdout] | |_^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn std::error::Error + 'static)` [INFO] [stdout] note: required by a bound in `Result` [INFO] [stdout] --> /rustc/159ba8a92c9e2fa4121f106176309521f4af87e9/library/core/src/result.rs:503:1 [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> LabradorResult<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0752. [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::APIClient (line 19) [INFO] [stdout] src/client.rs - client::APIClient::request (line 65) [INFO] [stdout] src/lib.rs - (line 120) [INFO] [stdout] src/lib.rs - (line 37) [INFO] [stdout] src/lib.rs - (line 76) [INFO] [stdout] src/lib.rs - (line 96) [INFO] [stdout] src/request.rs - request::LabraRequest (line 159) [INFO] [stdout] src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_sign (line 266) [INFO] [stdout] src/util/prp.rs - util::prp::PrpCrypto::rsa_sha256_verify (line 401) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.55s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "34ae9aa2d05e7d9a2ae269e1f082c9627fe8cc911d242ba02ac6641ffbd6d352", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34ae9aa2d05e7d9a2ae269e1f082c9627fe8cc911d242ba02ac6641ffbd6d352", kill_on_drop: false }` [INFO] [stdout] 34ae9aa2d05e7d9a2ae269e1f082c9627fe8cc911d242ba02ac6641ffbd6d352