[INFO] fetching crate wx_pay 0.1.3...
[INFO] testing wx_pay-0.1.3 against 1.76.0 for beta-1.77-1
[INFO] extracting crate wx_pay 0.1.3 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate wx_pay 0.1.3 on toolchain 1.76.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate wx_pay 0.1.3
[INFO] finished tweaking crates.io crate wx_pay 0.1.3
[INFO] tweaked toml for crates.io crate wx_pay 0.1.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c5a17236461dc71773d710abbd6482fc9c4f6849be56e0fdc5e81d0ccf55e2da
[INFO] running `Command { std: "docker" "start" "-a" "c5a17236461dc71773d710abbd6482fc9c4f6849be56e0fdc5e81d0ccf55e2da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c5a17236461dc71773d710abbd6482fc9c4f6849be56e0fdc5e81d0ccf55e2da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c5a17236461dc71773d710abbd6482fc9c4f6849be56e0fdc5e81d0ccf55e2da", kill_on_drop: false }`
[INFO] [stdout] c5a17236461dc71773d710abbd6482fc9c4f6849be56e0fdc5e81d0ccf55e2da
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 29245a419102efbefbe9db8fe0a99527544bb3d600e40eae011ffd9a3b30d986
[INFO] running `Command { std: "docker" "start" "-a" "29245a419102efbefbe9db8fe0a99527544bb3d600e40eae011ffd9a3b30d986", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling smallvec v1.13.1
[INFO] [stderr]    Compiling pkg-config v0.3.29
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling subtle v2.5.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling cc v1.0.85
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling openssl v0.10.63
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling base64ct v1.6.0
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling serde v1.0.196
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling zeroize v1.7.0
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling pem-rfc7468 v0.3.1
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling bitflags v2.4.2
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling hashbrown v0.14.3
[INFO] [stderr]    Compiling http v0.2.11
[INFO] [stderr]    Compiling const-oid v0.7.1
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling getrandom v0.2.12
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling indexmap v2.2.3
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling openssl-sys v0.9.99
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling serde_json v1.0.113
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling ryu v1.0.16
[INFO] [stderr]    Compiling num-bigint-dig v0.8.4
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling time v0.1.45
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling inout v0.1.3
[INFO] [stderr]    Compiling crypto-bigint v0.3.2
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling polyval v0.6.1
[INFO] [stderr]    Compiling num-iter v0.1.44
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling ghash v0.5.0
[INFO] [stderr]    Compiling aes v0.8.3
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling blowfish v0.9.1
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling iana-time-zone v0.1.60
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling rustc-serialize v0.3.25
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling chrono v0.4.34
[INFO] [stderr]    Compiling der v0.5.1
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling bcrypt v0.13.0
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling spki v0.5.4
[INFO] [stderr]    Compiling pkcs8 v0.8.0
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.196
[INFO] [stderr]    Compiling pkcs1 v0.3.3
[INFO] [stderr]    Compiling rsa v0.6.1
[INFO] [stderr]    Compiling tokio v1.36.0
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.24
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.24
[INFO] [stderr]    Compiling wx_pay v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `GET` is never constructed
[INFO] [stdout]   --> src/wx_pay.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | enum Method {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 62 |     GET,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Method` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 19.81s
[INFO] running `Command { std: "docker" "inspect" "29245a419102efbefbe9db8fe0a99527544bb3d600e40eae011ffd9a3b30d986", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "29245a419102efbefbe9db8fe0a99527544bb3d600e40eae011ffd9a3b30d986", kill_on_drop: false }`
[INFO] [stdout] 29245a419102efbefbe9db8fe0a99527544bb3d600e40eae011ffd9a3b30d986
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b2d1e09a340ce8478eb92c954895cdbfa9e35cbe16d32e25cb650e64995abdbf
[INFO] running `Command { std: "docker" "start" "-a" "b2d1e09a340ce8478eb92c954895cdbfa9e35cbe16d32e25cb650e64995abdbf", kill_on_drop: false }`
[INFO] [stdout] warning: variant `GET` is never constructed
[INFO] [stdout]   --> src/wx_pay.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | enum Method {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 62 |     GET,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Method` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling wx_pay v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `GET` is never constructed
[INFO] [stdout]   --> src/wx_pay.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | enum Method {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 62 |     GET,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Method` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.93s
[INFO] running `Command { std: "docker" "inspect" "b2d1e09a340ce8478eb92c954895cdbfa9e35cbe16d32e25cb650e64995abdbf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b2d1e09a340ce8478eb92c954895cdbfa9e35cbe16d32e25cb650e64995abdbf", kill_on_drop: false }`
[INFO] [stdout] b2d1e09a340ce8478eb92c954895cdbfa9e35cbe16d32e25cb650e64995abdbf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 52d4c82d56ab84dc19e2d6a5aeb1c77a8ca02d2d0979e2ce3c1807a768f50019
[INFO] running `Command { std: "docker" "start" "-a" "52d4c82d56ab84dc19e2d6a5aeb1c77a8ca02d2d0979e2ce3c1807a768f50019", kill_on_drop: false }`
[INFO] [stderr] warning: variant `GET` is never constructed
[INFO] [stderr]   --> src/wx_pay.rs:62:5
[INFO] [stderr]    |
[INFO] [stderr] 61 | enum Method {
[INFO] [stderr]    |      ------ variant in this enum
[INFO] [stderr] 62 |     GET,
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Method` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `wx_pay` (lib) generated 1 warning
[INFO] [stderr] warning: `wx_pay` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wx_pay-41fefa457f379398)
[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 wx_pay
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test src/wx_pay.rs - wx_pay::WxPay<'a>::jsapi (line 140) ... FAILED
[INFO] [stdout] test src/random.rs - random::rand_string (line 10) ... FAILED
[INFO] [stdout] test src/wx_pay.rs - wx_pay::decode_wx (line 289) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/wx_pay.rs - wx_pay::WxPay<'a>::jsapi (line 140) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/wx_pay.rs:144:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     ...
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 |     ..
[INFO] [stdout]   |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 |     ..=
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `let` statement
[INFO] [stdout]  --> src/wx_pay.rs:146:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let wx_pay = WxPay {
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: only supported directly in conditions of `if` and `while` expressions
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_MINI_APP_ID` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:147:16
[INFO] [stdout]    |
[INFO] [stdout] 10 |         appid: WECHAT_MINI_APP_ID,
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PAY_MCH_ID` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:148:16
[INFO] [stdout]    |
[INFO] [stdout] 11 |         mchid: WECHAT_PAY_MCH_ID,
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PRIVATE_KEY` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:149:22
[INFO] [stdout]    |
[INFO] [stdout] 12 |         private_key: WECHAT_PRIVATE_KEY,
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PAY_SERIAL` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:150:20
[INFO] [stdout]    |
[INFO] [stdout] 13 |         serial_no: WECHAT_PAY_SERIAL,
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PAY_APIV3` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:151:28
[INFO] [stdout]    |
[INFO] [stdout] 14 |         apiv3_private_key: WECHAT_PAY_APIV3,
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PAY_NOTIFY_URL` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:152:21
[INFO] [stdout]    |
[INFO] [stdout] 15 |         notify_url: WECHAT_PAY_NOTIFY_URL,  // 支付回调地址
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `JsapiParams` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:156:29
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let data = wx_pay.jsapi(JsapiParams {
[INFO] [stdout]    |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wx_pay::JsapiParams;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Amount` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:159:17
[INFO] [stdout]    |
[INFO] [stdout] 22 |         amount: Amount { total: 1 },
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wx_pay::Amount;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Payer` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:160:16
[INFO] [stdout]    |
[INFO] [stdout] 23 |         payer: Payer { openid: openid}
[INFO] [stdout]    |                ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wx_pay::Payer;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `openid` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:160:32
[INFO] [stdout]    |
[INFO] [stdout] 23 |         payer: Payer { openid: openid}
[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/wx_pay.rs:161:8
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_wx_pay_rs_140_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 24 |     }).await.unwrap();
[INFO] [stdout]    |        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `rand_string` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:158:23
[INFO] [stdout]    |
[INFO] [stdout] 21 |         out_trade_no: rand_string(16),  // 随机字符串
[INFO] [stdout]    |                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/random.rs - random::rand_string (line 10) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `rand_string` in this scope
[INFO] [stdout]  --> src/random.rs:11:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | let ran_1 = rand_string(12);
[INFO] [stdout]   |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `rand_string` in this scope
[INFO] [stdout]  --> src/random.rs:13:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | let ran_2 = rand_string(32);
[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/wx_pay.rs - wx_pay::decode_wx (line 289) stdout ----
[INFO] [stdout] error: cannot find attribute `post` in this scope
[INFO] [stdout]  --> src/wx_pay.rs:293:3
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[post("/pay/notify_url/action")]
[INFO] [stdout]   |   ^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `Responder` in this scope
[INFO] [stdout]  --> src/wx_pay.rs:294:83
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn pay_notify_url_action(params: web::Json<WxPayNotify>) -> Result<impl Responder> {
[INFO] [stdout]   |                                                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WECHAT_PAY_APIV3` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:298:26
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let data = decode_wx(WECHAT_PAY_APIV3, t_params).unwrap();
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ResultStatus` in this scope
[INFO] [stdout]   --> src/wx_pay.rs:301:18
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Ok(web::Json(ResultStatus {status: 2, message: "成功".into()}))
[INFO] [stdout]    |                  ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]  --> src/wx_pay.rs:294:71
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn pay_notify_url_action(params: web::Json<WxPayNotify>) -> Result<impl Responder> {
[INFO] [stdout]   |                                                                       ^^^^^^ -------------- supplied 1 generic argument
[INFO] [stdout]   |                                                                       |
[INFO] [stdout]   |                                                                       expected 2 generic arguments
[INFO] [stdout]   |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn pay_notify_url_action(params: web::Json<WxPayNotify>) -> Result<impl Responder, E> {
[INFO] [stdout]   |                                                                                            +++
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web`
[INFO] [stdout]  --> src/wx_pay.rs:294:44
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn pay_notify_url_action(params: web::Json<WxPayNotify>) -> Result<impl Responder> {
[INFO] [stdout]   |                                            ^^^ use of undeclared crate or module `web`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web`
[INFO] [stdout]   --> src/wx_pay.rs:301:8
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Ok(web::Json(ResultStatus {status: 2, message: "成功".into()}))
[INFO] [stdout]    |        ^^^ use of undeclared crate or module `web`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0405, E0422, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/random.rs - random::rand_string (line 10)
[INFO] [stdout]     src/wx_pay.rs - wx_pay::WxPay<'a>::jsapi (line 140)
[INFO] [stdout]     src/wx_pay.rs - wx_pay::decode_wx (line 289)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "52d4c82d56ab84dc19e2d6a5aeb1c77a8ca02d2d0979e2ce3c1807a768f50019", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "52d4c82d56ab84dc19e2d6a5aeb1c77a8ca02d2d0979e2ce3c1807a768f50019", kill_on_drop: false }`
[INFO] [stdout] 52d4c82d56ab84dc19e2d6a5aeb1c77a8ca02d2d0979e2ce3c1807a768f50019
