[INFO] cloning repository https://github.com/dingdongg/tft-shared-pool
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dingdongg/tft-shared-pool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdingdongg%2Ftft-shared-pool", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdingdongg%2Ftft-shared-pool'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9dbf6a639dabec83810a8454910fe9dc9f4c919d
[INFO] checking dingdongg/tft-shared-pool against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdingdongg%2Ftft-shared-pool" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dingdongg/tft-shared-pool
[INFO] finished tweaking git repo https://github.com/dingdongg/tft-shared-pool
[INFO] tweaked toml for git repo https://github.com/dingdongg/tft-shared-pool written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dingdongg/tft-shared-pool on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dingdongg/tft-shared-pool 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded openssl v0.10.62
[INFO] [stderr]   Downloaded openssl-sys v0.9.98
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ba0948db82cbdcdbfafa3a28b37466e3d13bf59c637f7a765eea02c64bc4c58d
[INFO] running `Command { std: "docker" "start" "-a" "ba0948db82cbdcdbfafa3a28b37466e3d13bf59c637f7a765eea02c64bc4c58d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ba0948db82cbdcdbfafa3a28b37466e3d13bf59c637f7a765eea02c64bc4c58d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ba0948db82cbdcdbfafa3a28b37466e3d13bf59c637f7a765eea02c64bc4c58d", kill_on_drop: false }`
[INFO] [stdout] ba0948db82cbdcdbfafa3a28b37466e3d13bf59c637f7a765eea02c64bc4c58d
[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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 96c98a280d06d5ca1cea6cde7e087e60601c65fa0d9b8945e87d4a184efcc3b7
[INFO] running `Command { std: "docker" "start" "-a" "96c98a280d06d5ca1cea6cde7e087e60601c65fa0d9b8945e87d4a184efcc3b7", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.71
[INFO] [stderr]    Compiling pkg-config v0.3.28
[INFO] [stderr]    Compiling openssl v0.10.62
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]    Compiling serde_json v1.0.108
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling openssl-sys v0.9.98
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.43
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling darling_core v0.20.3
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]     Checking tokio v1.35.1
[INFO] [stderr]    Compiling darling_macro v0.20.3
[INFO] [stderr]    Compiling darling v0.20.3
[INFO] [stderr]    Compiling serde_with_macros v3.4.0
[INFO] [stderr]     Checking tokio-util v0.7.10
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.22
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_with v3.4.0
[INFO] [stderr]     Checking hyper v0.14.28
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.23
[INFO] [stderr]     Checking tft-shared-pool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |     sync::{mpsc, Arc, Mutex},
[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: `mpsc`
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |     sync::{mpsc, Arc, Mutex},
[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 variable: `unit_count`
[INFO] [stdout]   --> src/pool.rs:89:29
[INFO] [stdout]    |
[INFO] [stdout] 89 |             let (unit_name, unit_count) = self.pool.get_index(random_index).unwrap();
[INFO] [stdout]    |                             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_count`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `units_index` is never read
[INFO] [stdout]   --> src/pool.rs:27:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct UnitsStore {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] 26 |     pool: IndexMap<String, u32>,
[INFO] [stdout] 27 |     units_index: HashMap<String, Unit>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `check_pool`, `get_unit_info`, `roll_shop`, and `sell` are never used
[INFO] [stdout]    --> src/pool.rs:68:12
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl UnitsStore {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  68 |     pub fn check_pool(&self) -> () {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  72 |     pub fn get_unit_info(&self, name: &str) -> &Unit {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  82 |     pub fn roll_shop(&self) -> Vec<&Unit> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn sell(&mut self, unit: &Unit) -> () {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `workers` is never read
[INFO] [stdout]  --> src/bruh.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct ThreadPool {
[INFO] [stdout]   |            ---------- field in this struct
[INFO] [stdout] 8 |     workers: Vec<Worker>,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id` and `thread` are never read
[INFO] [stdout]   --> src/bruh.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct Worker {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 34 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 35 |     thread: thread::JoinHandle<()>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiName` should have a snake case name
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 |     apiName: String,
[INFO] [stdout]    |     ^^^^^^^ help: convert the identifier to snake case: `api_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiName` should have a snake case name
[INFO] [stdout]   --> src/main.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 47 |     apiName: String,
[INFO] [stdout]    |     ^^^^^^^ help: convert the identifier to snake case: `api_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit_count`
[INFO] [stdout]   --> src/pool.rs:89:29
[INFO] [stdout]    |
[INFO] [stdout] 89 |             let (unit_name, unit_count) = self.pool.get_index(random_index).unwrap();
[INFO] [stdout]    |                             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_count`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `units_index` is never read
[INFO] [stdout]   --> src/pool.rs:27:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct UnitsStore {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] 26 |     pool: IndexMap<String, u32>,
[INFO] [stdout] 27 |     units_index: HashMap<String, Unit>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `check_pool`, `get_unit_info`, `roll_shop`, and `sell` are never used
[INFO] [stdout]    --> src/pool.rs:68:12
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl UnitsStore {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  68 |     pub fn check_pool(&self) -> () {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  72 |     pub fn get_unit_info(&self, name: &str) -> &Unit {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  82 |     pub fn roll_shop(&self) -> Vec<&Unit> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn sell(&mut self, unit: &Unit) -> () {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `workers` is never read
[INFO] [stdout]  --> src/bruh.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct ThreadPool {
[INFO] [stdout]   |            ---------- field in this struct
[INFO] [stdout] 8 |     workers: Vec<Worker>,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id` and `thread` are never read
[INFO] [stdout]   --> src/bruh.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct Worker {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 34 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 35 |     thread: thread::JoinHandle<()>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiName` should have a snake case name
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 |     apiName: String,
[INFO] [stdout]    |     ^^^^^^^ help: convert the identifier to snake case: `api_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiName` should have a snake case name
[INFO] [stdout]   --> src/main.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 47 |     apiName: String,
[INFO] [stdout]    |     ^^^^^^^ help: convert the identifier to snake case: `api_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.12s
[INFO] running `Command { std: "docker" "inspect" "96c98a280d06d5ca1cea6cde7e087e60601c65fa0d9b8945e87d4a184efcc3b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "96c98a280d06d5ca1cea6cde7e087e60601c65fa0d9b8945e87d4a184efcc3b7", kill_on_drop: false }`
[INFO] [stdout] 96c98a280d06d5ca1cea6cde7e087e60601c65fa0d9b8945e87d4a184efcc3b7
