[INFO] fetching crate wx_pay 0.1.3...
[INFO] testing wx_pay-0.1.3 against 1.75.0 for beta-1.76-1
[INFO] extracting crate wx_pay 0.1.3 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate wx_pay 0.1.3 on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.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-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.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.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cef39d6b28e62abb3501e94f13203f8c7b4c013293857653aee25db4255902f6
[INFO] running `Command { std: "docker" "start" "-a" "cef39d6b28e62abb3501e94f13203f8c7b4c013293857653aee25db4255902f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cef39d6b28e62abb3501e94f13203f8c7b4c013293857653aee25db4255902f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cef39d6b28e62abb3501e94f13203f8c7b4c013293857653aee25db4255902f6", kill_on_drop: false }`
[INFO] [stdout] cef39d6b28e62abb3501e94f13203f8c7b4c013293857653aee25db4255902f6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8b11be570b4def5337b6dd3af1e64aef4f4b9c0b52dca63e4aab73c0f22a056d
[INFO] running `Command { std: "docker" "start" "-a" "8b11be570b4def5337b6dd3af1e64aef4f4b9c0b52dca63e4aab73c0f22a056d", kill_on_drop: false }`
[INFO] [stderr]    Compiling subtle v2.5.0
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling getrandom v0.2.11
[INFO] [stderr]    Compiling base64ct v1.6.0
[INFO] [stderr]    Compiling openssl-sys v0.9.98
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling serde v1.0.194
[INFO] [stderr]    Compiling zeroize v1.7.0
[INFO] [stderr]    Compiling const-oid v0.7.1
[INFO] [stderr]    Compiling serde_derive v1.0.194
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling num-bigint-dig v0.8.4
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling pem-rfc7468 v0.3.1
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling unicode-bidi v0.3.14
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling time v0.1.45
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rustc-serialize v0.3.25
[INFO] [stderr]    Compiling iana-time-zone v0.1.59
[INFO] [stderr]    Compiling base64 v0.21.5
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling openssl v0.10.62
[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 native-tls v0.2.11
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling polyval v0.6.1
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling ghash v0.5.0
[INFO] [stderr]    Compiling aes v0.8.3
[INFO] [stderr]    Compiling blowfish v0.9.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling bcrypt v0.13.0
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling der v0.5.1
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling chrono v0.4.31
[INFO] [stderr]    Compiling url v2.5.0
[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 pkcs1 v0.3.3
[INFO] [stderr]    Compiling rsa v0.6.1
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling serde_json v1.0.111
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling reqwest v0.11.23
[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 7.86s
[INFO] running `Command { std: "docker" "inspect" "8b11be570b4def5337b6dd3af1e64aef4f4b9c0b52dca63e4aab73c0f22a056d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8b11be570b4def5337b6dd3af1e64aef4f4b9c0b52dca63e4aab73c0f22a056d", kill_on_drop: false }`
[INFO] [stdout] 8b11be570b4def5337b6dd3af1e64aef4f4b9c0b52dca63e4aab73c0f22a056d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a88cbe71b20ae4b79403f08b4dfe336cffcbbf9761053d19fefd23ca50b2b814
[INFO] running `Command { std: "docker" "start" "-a" "a88cbe71b20ae4b79403f08b4dfe336cffcbbf9761053d19fefd23ca50b2b814", kill_on_drop: false }`
[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] [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.58s
[INFO] running `Command { std: "docker" "inspect" "a88cbe71b20ae4b79403f08b4dfe336cffcbbf9761053d19fefd23ca50b2b814", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a88cbe71b20ae4b79403f08b4dfe336cffcbbf9761053d19fefd23ca50b2b814", kill_on_drop: false }`
[INFO] [stdout] a88cbe71b20ae4b79403f08b4dfe336cffcbbf9761053d19fefd23ca50b2b814
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 5fbd5d965aece5b6a1152b76b78fb0428e86d8bc1d404f2684b603832e9571fd
[INFO] running `Command { std: "docker" "start" "-a" "5fbd5d965aece5b6a1152b76b78fb0428e86d8bc1d404f2684b603832e9571fd", 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.08s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wx_pay-66c3288c84d3702a)
[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::decode_wx (line 289) ... FAILED
[INFO] [stdout] test src/random.rs - random::rand_string (line 10) ... FAILED
[INFO] [stdout] test src/wx_pay.rs - wx_pay::WxPay<'a>::jsapi (line 140) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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] ---- 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::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] 
[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.09s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "5fbd5d965aece5b6a1152b76b78fb0428e86d8bc1d404f2684b603832e9571fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5fbd5d965aece5b6a1152b76b78fb0428e86d8bc1d404f2684b603832e9571fd", kill_on_drop: false }`
[INFO] [stdout] 5fbd5d965aece5b6a1152b76b78fb0428e86d8bc1d404f2684b603832e9571fd
