[INFO] cloning repository https://github.com/HypenZou/wechat-bot-core
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HypenZou/wechat-bot-core" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHypenZou%2Fwechat-bot-core", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHypenZou%2Fwechat-bot-core'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5f457613903e4ad2a8a55580d558f11e40b0a63c
[INFO] testing HypenZou/wechat-bot-core against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHypenZou%2Fwechat-bot-core" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/HypenZou/wechat-bot-core
[INFO] finished tweaking git repo https://github.com/HypenZou/wechat-bot-core
[INFO] tweaked toml for git repo https://github.com/HypenZou/wechat-bot-core written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HypenZou/wechat-bot-core on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/HypenZou/wechat-bot-core 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9228fb8b50fdc726d63c6c100347e85c7872973672e74706123e519530d446f2
[INFO] running `Command { std: "docker" "start" "-a" "9228fb8b50fdc726d63c6c100347e85c7872973672e74706123e519530d446f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9228fb8b50fdc726d63c6c100347e85c7872973672e74706123e519530d446f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9228fb8b50fdc726d63c6c100347e85c7872973672e74706123e519530d446f2", kill_on_drop: false }`
[INFO] [stdout] 9228fb8b50fdc726d63c6c100347e85c7872973672e74706123e519530d446f2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c0bd90521c59c8584297cc0b66cb96f8c35c702fed6f98fe596aad184b431b89
[INFO] running `Command { std: "docker" "start" "-a" "c0bd90521c59c8584297cc0b66cb96f8c35c702fed6f98fe596aad184b431b89", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.94
[INFO] [stderr]    Compiling libc v0.2.171
[INFO] [stderr]    Compiling syn v1.0.92
[INFO] [stderr]    Compiling smallvec v1.14.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling http v1.3.1
[INFO] [stderr]    Compiling tracing-core v0.1.33
[INFO] [stderr]    Compiling anyhow v1.0.57
[INFO] [stderr]    Compiling phf_shared v0.8.0
[INFO] [stderr]    Compiling indexmap v2.8.0
[INFO] [stderr]    Compiling cc v1.2.17
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling slab v0.4.6
[INFO] [stderr]    Compiling siphasher v1.0.1
[INFO] [stderr]    Compiling proc-macro-hack v0.5.20+deprecated
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling itertools v0.10.3
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling matches v0.1.10
[INFO] [stderr]    Compiling phf_shared v0.11.3
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]    Compiling phf_generator v0.11.3
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling prettyplease v0.2.31
[INFO] [stderr]    Compiling openssl v0.10.71
[INFO] [stderr]    Compiling httpdate v1.0.2
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling regex-syntax v0.7.5
[INFO] [stderr]    Compiling getrandom v0.3.2
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling fastrand v1.7.0
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]    Compiling fixedbitset v0.4.1
[INFO] [stderr]    Compiling mac v0.1.1
[INFO] [stderr]    Compiling object v0.36.7
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling bitflags v2.9.0
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling futf v0.1.5
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling mime v0.3.16
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling string_cache_codegen v0.5.4
[INFO] [stderr]    Compiling multimap v0.8.3
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling dtoa v1.0.10
[INFO] [stderr]    Compiling anstyle-parse v0.2.6
[INFO] [stderr]    Compiling dtoa-short v0.3.5
[INFO] [stderr]    Compiling tendril v0.4.3
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling miniz_oxide v0.8.5
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling petgraph v0.6.0
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling tempfile v3.3.0
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand_pcg v0.2.1
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling regex-automata v0.3.7
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling destructure_traitobject v0.2.0
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling nodrop v0.1.14
[INFO] [stderr]    Compiling itoa v0.4.8
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling anstyle v1.0.10
[INFO] [stderr]    Compiling anstyle-query v1.1.2
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling colorchoice v1.0.3
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling fxhash v0.2.1
[INFO] [stderr]    Compiling openssl-sys v0.9.106
[INFO] [stderr]    Compiling servo_arc v0.1.1
[INFO] [stderr]    Compiling anstream v0.6.18
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling unsafe-any-ors v1.0.0
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling axum-core v0.5.2
[INFO] [stderr]    Compiling ordered-float v2.10.1
[INFO] [stderr]    Compiling clap_lex v0.7.4
[INFO] [stderr]    Compiling thin-slice v0.1.1
[INFO] [stderr]    Compiling matchit v0.8.4
[INFO] [stderr]    Compiling rustls-pki-types v1.11.0
[INFO] [stderr]    Compiling phf_generator v0.8.0
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling clap_builder v4.5.35
[INFO] [stderr]    Compiling phf_codegen v0.8.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling markup5ever v0.10.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling selectors v0.22.0
[INFO] [stderr]    Compiling rustls-pemfile v2.2.0
[INFO] [stderr]    Compiling url v2.3.0
[INFO] [stderr]    Compiling typemap-ors v1.0.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling regex v1.9.4
[INFO] [stderr]    Compiling thread-id v4.2.2
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling log-mdc v0.1.0
[INFO] [stderr]    Compiling humantime v2.2.0
[INFO] [stderr]    Compiling arc-swap v1.7.1
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling rand v0.9.0
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling phf_macros v0.8.0
[INFO] [stderr]    Compiling cssparser v0.27.2
[INFO] [stderr]    Compiling html5ever v0.25.2
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling backtrace v0.3.74
[INFO] [stderr]    Compiling phf v0.8.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling prost-derive v0.13.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling cssparser-macros v0.6.1
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling derive_more v0.99.19
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling tokio v1.44.1
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling prost v0.13.5
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling prost-types v0.13.5
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling clap v4.5.35
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling serde_with_macros v3.12.0
[INFO] [stderr]    Compiling prost-build v0.13.5
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling tonic-build v0.13.0
[INFO] [stderr]    Compiling wechat-bot-core v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling tokio-util v0.7.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling h2 v0.4.8
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling string_cache v0.8.9
[INFO] [stderr]    Compiling serde-value v0.7.0
[INFO] [stderr]    Compiling chrono v0.4.40
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling axum v0.8.3
[INFO] [stderr]    Compiling serde_with v3.12.0
[INFO] [stderr]    Compiling log4rs v1.3.0
[INFO] [stderr]    Compiling nipper v0.1.9
[INFO] [stderr]    Compiling hyper v1.6.0
[INFO] [stderr]    Compiling hyper-util v0.1.11
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling hyper-timeout v0.5.2
[INFO] [stderr]    Compiling tonic v0.13.0
[INFO] [stderr]    Compiling reqwest v0.12.4
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/gpt.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tonic::async_trait`
[INFO] [stdout]  --> src/gpt.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tonic::async_trait;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/error.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/basic_market_info.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::{Rng, seq::IndexedRandom};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `proxy::Message`
[INFO] [stdout]  --> src/basic_market_info.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::{config::get_config, error::Error, handler::Handler, proxy::Message};
[INFO] [stdout]   |                                                                 ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/gamble.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/gamble.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GPTProxy`
[INFO] [stdout]   --> src/gamble.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 |     gpt::{self, GPTProxy},
[INFO] [stdout]    |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:80:29
[INFO] [stdout]    |
[INFO] [stdout] 80 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:84:29
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token`
[INFO] [stdout]   --> src/gpt.rs:21:38
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/huangli.rs:39:23
[INFO] [stdout]    |
[INFO] [stdout] 39 |             .map_err(|e| Error::JsonError(String::from("failed to parse to json value")))?
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `USER_ID` is never used
[INFO] [stdout]   --> src/gamble.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Gamble {
[INFO] [stdout]    | ----------- associated constant in this implementation
[INFO] [stdout] 24 |     const USER_ID: &'static str = "26485810-436e-4b7f-8eff-6c771d4efdcc";
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `queryGPT` should have a snake case name
[INFO] [stdout]   --> src/gpt.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |              ^^^^^^^^ help: convert the identifier to snake case: `query_gpt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `good_prompt_arrary` should have an upper case name
[INFO] [stdout]  --> src/basic_market_info.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 8 - static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout] 8 + static GOOD_PROMPT_ARRARY: [&'static str; 4] = [
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `bad_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 15 - static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout] 15 + static BAD_PROMPT_ARRARY: [&'static str; 5] = [
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `normal_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 23 - static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout] 23 + static NORMAL_PROMPT_ARRARY: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `prompt` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 |     const prompt: &'static str = "算命";
[INFO] [stdout]    |           ^^^^^^ help: convert the identifier to upper case: `PROMPT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `url` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 |     const url: &'static str = "http://v.juhe.cn/laohuangli/d";
[INFO] [stdout]    |           ^^^ help: convert the identifier to upper case: `URL`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fs::File`
[INFO] [stdout]  --> src/server.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::{fs::File, sync::Arc};
[INFO] [stdout]   |           ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log4rs::append::file::FileAppender`
[INFO] [stdout]  --> src/server.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use log4rs::append::file::FileAppender;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request` and `Status`
[INFO] [stdout]   --> src/server.rs:16:13
[INFO] [stdout]    |
[INFO] [stdout] 16 | use tonic::{Request, Response, Status, transport::Server};
[INFO] [stdout]    |             ^^^^^^^            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/server.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 15s
[INFO] running `Command { std: "docker" "inspect" "c0bd90521c59c8584297cc0b66cb96f8c35c702fed6f98fe596aad184b431b89", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c0bd90521c59c8584297cc0b66cb96f8c35c702fed6f98fe596aad184b431b89", kill_on_drop: false }`
[INFO] [stdout] c0bd90521c59c8584297cc0b66cb96f8c35c702fed6f98fe596aad184b431b89
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 120b264f6881cec0cfcf65af2c837e3cdf3b92f887d660b5371dbc851acad800
[INFO] running `Command { std: "docker" "start" "-a" "120b264f6881cec0cfcf65af2c837e3cdf3b92f887d660b5371dbc851acad800", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/gpt.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tonic::async_trait`
[INFO] [stdout]  --> src/gpt.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tonic::async_trait;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/error.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/basic_market_info.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::{Rng, seq::IndexedRandom};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `proxy::Message`
[INFO] [stdout]  --> src/basic_market_info.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::{config::get_config, error::Error, handler::Handler, proxy::Message};
[INFO] [stdout]   |                                                                 ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/gamble.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/gamble.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GPTProxy`
[INFO] [stdout]   --> src/gamble.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 |     gpt::{self, GPTProxy},
[INFO] [stdout]    |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:80:29
[INFO] [stdout]    |
[INFO] [stdout] 80 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:84:29
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token`
[INFO] [stdout]   --> src/gpt.rs:21:38
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/huangli.rs:39:23
[INFO] [stdout]    |
[INFO] [stdout] 39 |             .map_err(|e| Error::JsonError(String::from("failed to parse to json value")))?
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `USER_ID` is never used
[INFO] [stdout]   --> src/gamble.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Gamble {
[INFO] [stdout]    | ----------- associated constant in this implementation
[INFO] [stdout] 24 |     const USER_ID: &'static str = "26485810-436e-4b7f-8eff-6c771d4efdcc";
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `queryGPT` should have a snake case name
[INFO] [stdout]   --> src/gpt.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |              ^^^^^^^^ help: convert the identifier to snake case: `query_gpt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `good_prompt_arrary` should have an upper case name
[INFO] [stdout]  --> src/basic_market_info.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 8 - static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout] 8 + static GOOD_PROMPT_ARRARY: [&'static str; 4] = [
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling wechat-bot-core v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: static variable `bad_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 15 - static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout] 15 + static BAD_PROMPT_ARRARY: [&'static str; 5] = [
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `normal_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 23 - static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout] 23 + static NORMAL_PROMPT_ARRARY: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `prompt` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 |     const prompt: &'static str = "算命";
[INFO] [stdout]    |           ^^^^^^ help: convert the identifier to upper case: `PROMPT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `url` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 |     const url: &'static str = "http://v.juhe.cn/laohuangli/d";
[INFO] [stdout]    |           ^^^ help: convert the identifier to upper case: `URL`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/gpt.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tonic::async_trait`
[INFO] [stdout]  --> src/gpt.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tonic::async_trait;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/error.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use anyhow::{Context, Result};
[INFO] [stdout]   |              ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/basic_market_info.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::{Rng, seq::IndexedRandom};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `proxy::Message`
[INFO] [stdout]  --> src/basic_market_info.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::{config::get_config, error::Error, handler::Handler, proxy::Message};
[INFO] [stdout]   |                                                                 ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/gamble.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/gamble.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GPTProxy`
[INFO] [stdout]   --> src/gamble.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 |     gpt::{self, GPTProxy},
[INFO] [stdout]    |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:80:29
[INFO] [stdout]    |
[INFO] [stdout] 80 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stdout]   --> src/basic_market_info.rs:84:29
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fs::File`
[INFO] [stdout]  --> src/server.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::{fs::File, sync::Arc};
[INFO] [stdout]   |           ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log4rs::append::file::FileAppender`
[INFO] [stdout]  --> src/server.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use log4rs::append::file::FileAppender;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request` and `Status`
[INFO] [stdout]   --> src/server.rs:16:13
[INFO] [stdout]    |
[INFO] [stdout] 16 | use tonic::{Request, Response, Status, transport::Server};
[INFO] [stdout]    |             ^^^^^^^            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/server.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token`
[INFO] [stdout]   --> src/gpt.rs:21:38
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/huangli.rs:39:23
[INFO] [stdout]    |
[INFO] [stdout] 39 |             .map_err(|e| Error::JsonError(String::from("failed to parse to json value")))?
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `USER_ID` is never used
[INFO] [stdout]   --> src/gamble.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Gamble {
[INFO] [stdout]    | ----------- associated constant in this implementation
[INFO] [stdout] 24 |     const USER_ID: &'static str = "26485810-436e-4b7f-8eff-6c771d4efdcc";
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `queryGPT` should have a snake case name
[INFO] [stdout]   --> src/gpt.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stdout]    |              ^^^^^^^^ help: convert the identifier to snake case: `query_gpt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `good_prompt_arrary` should have an upper case name
[INFO] [stdout]  --> src/basic_market_info.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 8 - static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stdout] 8 + static GOOD_PROMPT_ARRARY: [&'static str; 4] = [
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `bad_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 15 - static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stdout] 15 + static BAD_PROMPT_ARRARY: [&'static str; 5] = [
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `normal_prompt_arrary` should have an upper case name
[INFO] [stdout]   --> src/basic_market_info.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 23 - static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stdout] 23 + static NORMAL_PROMPT_ARRARY: [&'static str; 1] = ["沉淀"];
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `prompt` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 |     const prompt: &'static str = "算命";
[INFO] [stdout]    |           ^^^^^^ help: convert the identifier to upper case: `PROMPT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `url` should have an upper case name
[INFO] [stdout]   --> src/huangli.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 |     const url: &'static str = "http://v.juhe.cn/laohuangli/d";
[INFO] [stdout]    |           ^^^ help: convert the identifier to upper case: `URL`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.00s
[INFO] running `Command { std: "docker" "inspect" "120b264f6881cec0cfcf65af2c837e3cdf3b92f887d660b5371dbc851acad800", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "120b264f6881cec0cfcf65af2c837e3cdf3b92f887d660b5371dbc851acad800", kill_on_drop: false }`
[INFO] [stdout] 120b264f6881cec0cfcf65af2c837e3cdf3b92f887d660b5371dbc851acad800
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] a1e218fd41d6a556ff2c62971d56e974d15c7a1ab04c115727aefce6494bc7ea
[INFO] running `Command { std: "docker" "start" "-a" "a1e218fd41d6a556ff2c62971d56e974d15c7a1ab04c115727aefce6494bc7ea", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `Context`
[INFO] [stderr]  --> src/gpt.rs:5:14
[INFO] [stderr]   |
[INFO] [stderr] 5 | use anyhow::{Context, Result};
[INFO] [stderr]   |              ^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `tonic::async_trait`
[INFO] [stderr]  --> src/gpt.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use tonic::async_trait;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Context` and `Result`
[INFO] [stderr]  --> src/error.rs:3:14
[INFO] [stderr]   |
[INFO] [stderr] 3 | use anyhow::{Context, Result};
[INFO] [stderr]   |              ^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Rng`
[INFO] [stderr]  --> src/basic_market_info.rs:4:12
[INFO] [stderr]   |
[INFO] [stderr] 4 | use rand::{Rng, seq::IndexedRandom};
[INFO] [stderr]   |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `proxy::Message`
[INFO] [stderr]  --> src/basic_market_info.rs:6:65
[INFO] [stderr]   |
[INFO] [stderr] 6 | use crate::{config::get_config, error::Error, handler::Handler, proxy::Message};
[INFO] [stderr]   |                                                                 ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::sync::Arc`
[INFO] [stderr]  --> src/gamble.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::sync::Arc;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `log::info`
[INFO] [stderr]  --> src/gamble.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use log::info;
[INFO] [stderr]   |     ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `GPTProxy`
[INFO] [stderr]   --> src/gamble.rs:10:17
[INFO] [stderr]    |
[INFO] [stderr] 10 |     gpt::{self, GPTProxy},
[INFO] [stderr]    |                 ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stderr]   --> src/basic_market_info.rs:76:29
[INFO] [stderr]    |
[INFO] [stderr] 76 |         let mut rng = rand::thread_rng();
[INFO] [stderr]    |                             ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stderr]   --> src/basic_market_info.rs:80:29
[INFO] [stderr]    |
[INFO] [stderr] 80 |         let mut rng = rand::thread_rng();
[INFO] [stderr]    |                             ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: renamed to `rng`
[INFO] [stderr]   --> src/basic_market_info.rs:84:29
[INFO] [stderr]    |
[INFO] [stderr] 84 |         let mut rng = rand::thread_rng();
[INFO] [stderr]    |                             ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `token`
[INFO] [stderr]   --> src/gpt.rs:21:38
[INFO] [stderr]    |
[INFO] [stderr] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stderr]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/huangli.rs:39:23
[INFO] [stderr]    |
[INFO] [stderr] 39 |             .map_err(|e| Error::JsonError(String::from("failed to parse to json value")))?
[INFO] [stderr]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: associated constant `USER_ID` is never used
[INFO] [stderr]   --> src/gamble.rs:24:11
[INFO] [stderr]    |
[INFO] [stderr] 23 | impl Gamble {
[INFO] [stderr]    | ----------- associated constant in this implementation
[INFO] [stderr] 24 |     const USER_ID: &'static str = "26485810-436e-4b7f-8eff-6c771d4efdcc";
[INFO] [stderr]    |           ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `queryGPT` should have a snake case name
[INFO] [stderr]   --> src/gpt.rs:21:14
[INFO] [stderr]    |
[INFO] [stderr] 21 | pub async fn queryGPT(model: String, token: String, content: String) -> Result<String> {
[INFO] [stderr]    |              ^^^^^^^^ help: convert the identifier to snake case: `query_gpt`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `good_prompt_arrary` should have an upper case name
[INFO] [stderr]  --> src/basic_market_info.rs:8:8
[INFO] [stderr]   |
[INFO] [stderr] 8 | static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stderr]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]   |
[INFO] [stderr] 8 - static good_prompt_arrary: [&'static str; 4] = [
[INFO] [stderr] 8 + static GOOD_PROMPT_ARRARY: [&'static str; 4] = [
[INFO] [stderr]   |
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `bad_prompt_arrary` should have an upper case name
[INFO] [stderr]   --> src/basic_market_info.rs:15:8
[INFO] [stderr]    |
[INFO] [stderr] 15 | static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]    |
[INFO] [stderr] 15 - static bad_prompt_arrary: [&'static str; 5] = [
[INFO] [stderr] 15 + static BAD_PROMPT_ARRARY: [&'static str; 5] = [
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `normal_prompt_arrary` should have an upper case name
[INFO] [stderr]   --> src/basic_market_info.rs:23:8
[INFO] [stderr]    |
[INFO] [stderr] 23 | static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]    |
[INFO] [stderr] 23 - static normal_prompt_arrary: [&'static str; 1] = ["沉淀"];
[INFO] [stderr] 23 + static NORMAL_PROMPT_ARRARY: [&'static str; 1] = ["沉淀"];
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: associated constant `prompt` should have an upper case name
[INFO] [stderr]   --> src/huangli.rs:12:11
[INFO] [stderr]    |
[INFO] [stderr] 12 |     const prompt: &'static str = "算命";
[INFO] [stderr]    |           ^^^^^^ help: convert the identifier to upper case: `PROMPT`
[INFO] [stderr] 
[INFO] [stderr] warning: associated constant `url` should have an upper case name
[INFO] [stderr]   --> src/huangli.rs:13:11
[INFO] [stderr]    |
[INFO] [stderr] 13 |     const url: &'static str = "http://v.juhe.cn/laohuangli/d";
[INFO] [stderr]    |           ^^^ help: convert the identifier to upper case: `URL`
[INFO] [stderr] 
[INFO] [stderr] warning: `wechat-bot-core` (lib) generated 20 warnings (run `cargo fix --lib -p wechat-bot-core` to apply 13 suggestions)
[INFO] [stderr] warning: `wechat-bot-core` (lib test) generated 20 warnings (20 duplicates)
[INFO] [stderr] warning: unused import: `fs::File`
[INFO] [stderr]  --> src/server.rs:5:11
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::{fs::File, sync::Arc};
[INFO] [stderr]   |           ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `log4rs::append::file::FileAppender`
[INFO] [stderr]  --> src/server.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use log4rs::append::file::FileAppender;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Request` and `Status`
[INFO] [stderr]   --> src/server.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use tonic::{Request, Response, Status, transport::Server};
[INFO] [stderr]    |             ^^^^^^^            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/server.rs:107:17
[INFO] [stderr]     |
[INFO] [stderr] 107 |             Err(e) => {
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `wechat-bot-core` (bin "wechat-bot-core" test) generated 4 warnings (run `cargo fix --bin "wechat-bot-core" -p wechat-bot-core --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wechat_bot_core-496bf1e733b9cf0c)
[INFO] [stdout] 
[INFO] [stdout] running 7 tests
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/deps/wechat_bot_core-496bf1e733b9cf0c` (exit status: 1)
[INFO] [stderr] note: test exited abnormally; to see the full output pass --no-capture to the harness.
[INFO] running `Command { std: "docker" "inspect" "a1e218fd41d6a556ff2c62971d56e974d15c7a1ab04c115727aefce6494bc7ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1e218fd41d6a556ff2c62971d56e974d15c7a1ab04c115727aefce6494bc7ea", kill_on_drop: false }`
[INFO] [stdout] a1e218fd41d6a556ff2c62971d56e974d15c7a1ab04c115727aefce6494bc7ea
